question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing "vm.max_map_count" sysctl conf in a node does not work

See original GitHub issue

To 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcosnilscommented, Jan 24, 2018

@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

1reaction
marcosnilscommented, Jan 13, 2018

@jangaraj fixed!.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found