Ubuntu 20.04 Multi Node

Hi Team,

on the Ubuntu 20.04 Multi Node playground we don’t have permission to modify the value of vm.max_map_count as root.

sysctl -w vm.max_map_count=2097152

kindly to check

Br

hi @Tej-Singh-Rana and @Inderpreet kindly your support.

Hi @fethi.amari ,
Thanks for pointing out this. I forwarded your request to one of our team members.

Regards,
KodeKloud Support

May I know what are you trying to do with this?

Hi,

I want to try install Elasticsearch for testing and the service won’t start if I don’t set the value of
vm.max_map_count to 2097152 .

Hi @fethi.amari ,

Please try the below steps, let me know if this works.

{
sudo apt-get update 
sudo apt-get install -y gnupg gnupg2 ca-certificates
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
# install elastic search
sudo apt-get update && sudo apt-get install elasticsearch kibana
# for kibana access
sed -i '/server.host/a server.host: "0.0.0.0"' /etc/kibana/kibana.yml
systemctl enable elasticsearch.service
systemctl enable kibana.service
}

Hi @Dinesh_Kodekloud

Thank you for the steps,

the Elasticsearch Service won’t start when I configured as a cluster as shown by the below error.

Please give us the permission to modify this parameter.

2022-05-05T11:02:50,571][ERROR][o.e.b.Bootstrap          ] [node01] node validation exception
[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Hi @fethi.amari ,

Our apologies for the inconvenience. It seems we can’t change such kernel parameters of the DevOps playgrounds as of now. Please consider using the cloud playgrounds ( AWS or Azure).

Let us know if we can help you in any way.

Regards,
Kodekloud Support

Hi @Dinesh_Kodekloud ,

Thank you for your support.

Br

1 Like