Changing "vm.max_map_count" sysctl conf in a node does not work
See original GitHub issueTo launch an ELK stack, the “vm.max_map_count” (/etc/sysctl.conf) parameter must be set to at least “262144” as mentionned in the documentation. But the command to change it does not seem to work in PWD nodes :
[node1] (local) root@192.168.0.53 ~/swarm-elk
$ sysctl -w vm.max_map_count=262144
[node1] (local) root@192.168.0.53 ~/swarm-elk
$ sysctl vm.max_map_count
vm.max_map_count = 65530
Without this parameter set to 262144, elastic container does not start and logs the following error :
ERROR: [1] bootstrap checks failed
myself_elasticsearch.1.zbqincb3vovv@node1 | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increaseto at least [262144]
I think it must have been worked before because some tutorial indicates so. For example : http://collabnix.com/test-drive-elasticsearch-logstash-kibana-on-pwd-platform-running-docker-17-06-ce-swarm-mode-in-5-minutes/
Is it a regression or it this another way to change this option ?
Thank you for your help
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to increase vm.max_map_count? - Stack Overflow
Run vim sysctl.conf · Add vm.max_map_count=262144 to the end of the file and save · Finally run sudo sysctl -w vm.max_map_count=262144 this command...
Read more >the kernal parameter vm.max_map_count in /etc/sysctl.conf is ...
conf is a configuration file that gets loaded on startup that sets certain kernel parameters. The problem is that in the version you're...
Read more >Virtual memory | Elasticsearch Guide [8.5] | Elastic
To set this value permanently, update the vm.max_map_count setting in /etc/sysctl.conf . To verify after rebooting, run sysctl vm.max_map_count . The RPM and ......
Read more >Unable to change vm.max_map_count for elasticsearch
Problem. The problem is that vm.max_map_count seems unchangeable: Changing under root sudo sysctl -w vm.max_map_count=262144.
Read more >Changing required node settings - IBM
conf file from a worker node. For example, run the following command, replacing $node with one of the worker nodes. You can obtain...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@yogeek fixed. I haven’t applied the change in the base PWD image and the server got recycled recently. That’s why changes got discarded. I’ll try to make it permanently soon.
Apologize for the inconvenience
@jangaraj fixed!.