Skip to content

Commit

Permalink
Update elasticsearch-spec.asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
artemnikitin committed Jul 15, 2019
1 parent cc96e67 commit c80a652
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/elasticsearch-spec.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ $ kubectl create secret tls my-cert --cert tls.crt --key tls.key
[id="{p}-virtual-memory"]
=== Virtual memory

By default, Elasticsearch is using memory mapping (mmap) to efficiently access indexes. Usually, default values for virtual address space on Linux distributions are too low for Elasticsearch to work properly, which may result in out of memory exceptions. To increase virtual memory ECK sets the recommended value by default. This requires that the kubelet is allowed to run privileged containers.
You may disable it by explicitly setting value to `false`.
By default, Elasticsearch is using memory mapping (mmap) to efficiently access indices. Usually, default values for virtual address space on Linux distributions are too low for Elasticsearch to work properly, which may result in out of memory exceptions. To increase virtual memory ECK sets the recommended value by default.

A dedicated init container will set the kernel setting `vm.max_map_count=262144` on the host.
This requires the init container to be privileged.
This kernel setting can also be set on the host directly.
In such case, you may disable the init container explicitly in the Elasticsearch specification:
[source,yaml]
----
spec:
Expand Down

0 comments on commit c80a652

Please sign in to comment.