This repository was archived by the owner on Mar 13, 2018. It is now read-only.
server: autoscale JVM heap options#39
Open
igalic wants to merge 2 commits intograylog-labs:masterfrom
igalic:jvm_opts
Open
server: autoscale JVM heap options#39igalic wants to merge 2 commits intograylog-labs:masterfrom igalic:jvm_opts
igalic wants to merge 2 commits intograylog-labs:masterfrom
igalic:jvm_opts
Conversation
rationale: the jvm settings for graylog server can be automatically scaled based on the available memory. We set min & max heap to memory/2, capping it at below 32G, to ensure the JVM will be able to use -XX:+UseCompressedOops (see https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html) By default, PermSize and MaxPermSize is also set to the same value. We leave the GC settings alone, since they are very sensible values for Graylog2. However, we allow to provide additional java options, such as -javaagent, or jmx options, which are useful for monitoring. While we try hard to preserve backwards compatibility in the defaults files, but this will cause restarts in *default* installations.
Contributor
|
@igalic Could you please file that PR against the new Puppet modules at https://github.com/Graylog2/puppet-graylog? |
Author
|
yesno. of course this doesn't give us auto-scaling, but at least it enables us to… do things… But the other issue is that we still use this module, and more importantly, we still use graylog 1.x because we haven't had time and resources to upgrade yet. |
PermSize is now set to 1/20 of the Heap size, with a lower bound of 256m and a max of 1G. we also clarify that m here, since by efault memory options passed to the jvm are kB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rationale: the jvm settings for graylog server can be automatically
scaled based on the available memory. We set min & max heap to memory/2,
capping it at below 32G, to ensure the JVM will be able to use
-XX:+UseCompressedOops (see
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html)
By default, PermSize and MaxPermSize is also set to the same value.
We leave the GC settings alone, since they are very sensible values for
Graylog2. However, we allow to provide additional java options, such as
-javaagent, or jmx options, which are useful for monitoring.
While we try hard to preserve backwards compatibility in the defaults
files, but this will cause restarts in default installations.