Add candlepin tuning - #695
Conversation
|
+1 |
f735a0a to
5216fa8
Compare
| candlepin_database_ssl_ca_path: /etc/candlepin/certs/db-ca.crt | ||
|
|
||
| candlepin_xms: 1g | ||
| candlepin_xmx: 4g |
There was a problem hiding this comment.
How about including java_opts?
| candlepin_xmx: 4g | |
| candlepin_java_opts_xmx: 4g |
There was a problem hiding this comment.
Done! Renamed to candlepin_java_opts_xms / candlepin_java_opts_xmx.
Thanks @ehelms
|
In My Tomcat knowledge is super rusty, so maybe @Imaanpreet and @pablomh know better: what are the odds that you want to alter only ms or only mx values (looking at this PR and the tuning in foreman-installer: high?)? and do we ever recommend adding any other options? I only could find https://access.redhat.com/solutions/6999123 which adds |
Thanks for raising this, @evgeni ! The separate variables work well for our use case since tuning profiles only need to adjust heap sizes — for example, XL and XXL just override xmx to 8g while keeping the default xms. The other JAVA_OPTS flags (-Dcom.redhat.fips=false, --enable-native-access=ALL-UNNAMED) are fixed in the template and don't change across profiles. I don't think there's a current need for passing additional JVM options through tuning profiles. The GC tuning example you found looks like it was specific to Satellite 6.9/EL7. But if that need comes up in the future, we could always add something like candlepin_java_opts_extra without changing the existing setup. Happy to hear what you and @pablomh think! |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5216fa8 to
24bdfc2
Compare
Why are you introducing these changes? (Problem description, related links)
Candlepin JVM heap is hardcoded in tomcat.conf. It should scale with the tuning profile like other components (httpd, PostgreSQL).
What are the changes introduced in this pull request?
(https://github.com/theforeman/foreman-installer/blob/0448d5d/config/foreman.hiera/tuning/sizes/extra-extra-large.yaml#L5))
How to test this pull request
Steps to reproduce:
Checklist