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

[DOCS] Update reference documentation that mentions CMS #50542

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

ebadyano
Copy link
Contributor

Relates to #46973

@ebadyano ebadyano added >docs General docs changes :Core/Infra/Settings Settings infrastructure and APIs labels Dec 31, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Settings)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

Thanks! Left a suggestion for rephrasing in case it makes things clearer.

@@ -187,7 +187,7 @@ you must not start Elasticsearch with the serial collector (whether it's
from the defaults for the JVM that you're using, or you've explicitly
specified it with `-XX:+UseSerialGC`). Note that the default JVM
configuration that ships with Elasticsearch configures Elasticsearch to
use the CMS collector.
use the CMS collector prior to JDK 14 and to use the G1GC collector with JDK 14+.
Copy link
Contributor

Choose a reason for hiding this comment

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

how about:

use the G1GC collector starting with JDK 14 onwards and defaults to the CMS collection for older JDK versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree that we should reorder this so that G1GC comes first. However, I think we should probably break this into two sentences for better clarity.

use the G1GC garbage collector with JDK14 and later versions. For earlier JDK versions, the configuration defaults to the CMS collector.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review @jrodewig and @dliappis. I updated the doc according to your comments.

@dliappis dliappis requested a review from jrodewig January 2, 2020 13:09
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

I left a suggestion that might help with clarity a bit. Please let me know if you have any questions.

Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @ebadyano.

@ebadyano ebadyano merged commit bb736f7 into elastic:master Jan 7, 2020
@ebadyano
Copy link
Contributor Author

ebadyano commented Jan 7, 2020

Thank you for the review @jrodewig!

SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
@kostasb
Copy link

kostasb commented Dec 2, 2020

@jrodewig This PR has not been backported to 7.x

Our current documentation in https://www.elastic.co/guide/en/elasticsearch/reference/current/_use_serial_collector_check.html still mentions

Note that the default JVM configuration that ships with Elasticsearch configures Elasticsearch to use the CMS collector.

which is incorrect for versions 7.7 or above and needs to be updated with the content of this PR.

Please, could you help address this?

@jrodewig
Copy link
Contributor

jrodewig commented Dec 2, 2020

Thanks @kostasb. I've backported these changes.

@tsouza
Copy link

tsouza commented Dec 2, 2020

Cloud documentation also refers to CMS. It also mentions the 75% threshold which, according to Jason, doesn't holds true for G1GC. Here is a list of where I could spot this:

@jrodewig
Copy link
Contributor

jrodewig commented Dec 2, 2020

Thanks @tsouza. I've created an issue to address this in our cloud docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Settings Settings infrastructure and APIs >docs General docs changes v7.10.2 v7.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants