Install OpenSearch under debian11

  • List item

Prepare in advance

Basic environment:
OS: Debian11
vCPU: 8
vRAM: 32G
vHDD: 500G

For the production environment, it is strongly recommended to complete this part of the setup content.

vm.max_map_count setting
Make sure the Linux setting is set to vm.max_map_countat least 262144. Set this value on the host even if you use a Docker image

cat /proc/sys/vm/max_map_count
65530

Here, memory swapping is permanently disabled by /etc/sysctl.confadding kernel parameters in , and the setting can be quickly completed by the following command;vm.max_map_count=262144

sudo bash -c 'echo "vm.max_map_count=262144" >> /etc/sysctl.conf'
sudo sysctl -p

Disable system memory swapping

Here, memory swapping is permanently disabled by /etc/sysctl.confadding kernel parameters in , and the setting can be quickly completed by the following command;vm.swappiness = 0

 

Guess you like

Origin blog.csdn.net/weixin_43846408/article/details/129808341