Skip to content
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

tuning: note wrt db pool preference #451

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Oct 25, 2024

@rohityadavcloud rohityadavcloud added this to the 4.20 milestone Oct 25, 2024
@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants