|
|
@ -77,7 +77,8 @@ function update_script() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function ask_extend_mmap() { |
|
|
|
function ask_extend_mmap() { |
|
|
|
echo "Elasticsearch recommends extending the vm.max_map_count \n(https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html)?" |
|
|
|
echo "Elasticsearch recommends extending the vm.max_map_count" |
|
|
|
|
|
|
|
echo "(https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html)" |
|
|
|
read -r -p "Would you like to extend mmap count? <y/N>" prompt |
|
|
|
read -r -p "Would you like to extend mmap count? <y/N>" prompt |
|
|
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then |
|
|
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then |
|
|
|
msg_info "Extending mmap count" |
|
|
|
msg_info "Extending mmap count" |
|
|
|