Skip to content

tuning: note wrt db pool preference #451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/adminguide/tuning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ db.simulator.connectionPoolLib
To use DBCP 2, the value for the configuration must be set to 'dbcp'. An
empty value or 'hikaricp' will allow using HikariCP.

For large-scale environments, HikariCP should perform better. For environments
Copy link
Member

@rohityadavcloud rohityadavcloud Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also mention, minimum RAM/requirements when running mgmt server with either of the two?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohityadavcloud while both work fine 2GB JVM heap size (the current default we use) but with HikariCP I've seen failures when the system memory is constrained such as a 4GB system running a management server, usage server and MySQL server. Same failure has been there with DBCP2 as well but very rare. At lower end I've found HikariCP resulting in slightly higher memory usage for management server and MySQL server, a couple of hundreds of MB.
Based on this I'm not sure how I phrase minimum requirements

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we test & you had found 5GB to be a sweet spot?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohityadavcloud yes 5GB is sweet spot for HikariCP when running all 3 - management server, usage server and MySQL server on same machine but when running DB server separately even 3-4 GB may be enough.
Does this sound okay then?

Minimum requirements when running management server, usage server and MySQL server on the same system:
- HikariCP: 2 CPU, 5GB RAM
- DBCP2: 2 CPU, 4GB RAM

running management server with constrained memory resources, using DBCP may
work better in terms of memory usage.


Monitor the Database Load
-------------------------
Expand Down
Loading