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

Add section about jvm heap size to Elasticsearch doc #1348

Merged
merged 4 commits into from
Jul 26, 2019
Merged
Changes from 2 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
23 changes: 23 additions & 0 deletions docs/elasticsearch-spec.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,29 @@ Advanced settings
- Pod disruption budget
- Change budget (maxUnavailable, maxSurge)

[id="{p}-jvm-heap-size"]
=== JVM heap size

By default, JVM heap used by Elasticsearch has minimum and maximum size set to 1 GB. Since it's not recommended for heap size to exceed 50% of RAM size, ECK will default to requesting 2Gi of memory. You can change JVM heap size by using `ES_JAVA_OPTS` environment variable. You can adjust pod memory accordingly by setting the resource requests. Both changes are shown below. For more information on setting the heap size, see link:https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html[Setting the heap size].
david-kow marked this conversation as resolved.
Show resolved Hide resolved

david-kow marked this conversation as resolved.
Show resolved Hide resolved
[source,yaml]
----
spec:
nodes:
- podTemplate:
spec:
containers:
- name: elasticsearch
env:
- name: ES_JAVA_OPTS
value: -Xms2g -Xmx2g
david-kow marked this conversation as resolved.
Show resolved Hide resolved
resources:
requests:
memory: 4Gi
limits:
memory: 4Gi
----

[id="{p}-node-configuration"]
=== Node configuration

Expand Down