I’m running Elasticsearch container. One of the Elastic configurations suggest to limit the size of the Elasticsearch JVM to no more than 50% of physical memory. This is in order to leave enough RAM for Lucene and the Filesystem cache (https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html#heap-size).
How should I treat this rule when running under Docker? What will happen in the container, is it using Filesystem cache inside the container, or is it utilizing the host?
If I limit the container RAM should it be enough?
Or eventually, with respect to this:
https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html#heap-size
What is the best approach to configure my container RAM and JVM settings?
Doron