Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions kubernetes/samples/scripts/elasticsearch-and-kibana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ It runs the Elastic Stack on the same host and port that the operator's Helm cha
to, therefore, you only need to set `elkIntegrationEnabled` to `true` in your
`values.yaml` file.

To control Elasticsearch memory parameters (Heap allocation and Enabling/Disabling swapping) please open the file `elasticsearch_and_kibana.yaml`, search for env variables of the elasticsearch container and change the values of the following.

* ES_JAVA_OPTS: value may contain for example -Xms512m -Xmx512m to lower the default memory usage (please be aware that this value is only applicable for demo purpose and it is not the one recommended by Elasticsearch itself)
* bootstrap.memory_lock: value may contain true (enables the usage of mlockall to try to lock the process address space into RAM, preventing any Elasticsearch memory from being swapped out) or false (disables the usage of mlockall to try to lock the process address space into RAM, preventing any Elasticsearch memory from being swapped out).

To install Elasticsearch and Kibana, use:
```
$ kubectl apply -f kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ spec:
ports:
- containerPort: 9200
- containerPort: 9300
env:
- name: ES_JAVA_OPTS
value: -Xms2014m -Xmx1024m
- name: bootstrap.memory_lock
value: "true"

---
kind: "Service"
Expand Down