Posted: 6 Aug 2020 10:06 EDT Last activity: 6 Aug 2020 19:14 EDT
Impossible to set set-max-map-count variable for pod pega-search
We deploy PEGA 8.3 on our private cloud.
Sometimes our peagasearch pods don't start. On log we can see
[2020-08-04T13:08:10,196][INFO ][o.e.b.BootstrapChecks ] [MWNgsmz] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR:  bootstrap checks failed
: max virtual memory areas vm.max_map_count  is too low, increase to at least 
For information we work on privileged access system that mean I can't modify the init container to change the value.
After reading the documentation I try to set-max-map-count directly on the pod with this command
The Pega Platform search service uses Elasticsearch, which uses an mmapfs directory by default for 64-bit systems to store its indices (for more information, see the Elastic document, Virtual Memory. To increase the mmap count on your environment, do one of the following:
Update the vm.max_map_count setting in /etc/sysctl.conf on your nodes and set the value vm.max_map_count=262144.
Utilize the set-max-map-count initContainer in the example yaml file to automatically configure the setting. If you choose this method, note that the init container runs in privileged mode, so you must verify that your environment allows privileged containers.