Elasticsearch Container增加vm.max_map_count [英] Elasticsearch Container increase vm.max_map_count

查看:324
本文介绍了Elasticsearch Container增加vm.max_map_count的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将elasticsearch设置为容器实例.不幸的是,容器的启动因en错误而停止:

i want to setup elasticsearch as container instance. Unfortunately the launch of the container stops with en error:

最大虚拟内存区域vm. max_map_count [65530]太低,请增加到至少[262144]

如何增加此属性或成功启动elasticsearch作为容器实例?我的这个属性没有问题 本地计算机.

How can i increase this property or launch elasticsearch as container instance successfully? I have no problem with this property on my local machine.

非常感谢您.

推荐答案

您好,

Hi uucly,

之所以发生此问题,是因为容器的最大映射数少于Elasticsearch的期望.

This issue is happening because the containers max map count is less that what Elasticsearch is expecting.

Elasticsearch对生产环境进行引导检查. 最大地图计数检查就是其中之一.

Elasticsearch runs bootstrap checks for production environment.  max map count check is one of them.

您可以通过显式设置最大地图计数来解决此问题.

You can solve this issue by setting the max map count explicitly.

看看这个 Elasticsearch doc,建议设置最小虚拟内存设置.  

Take a look at this Elasticsearch doc which suggests to set the minimum virtual memory setting.  

我认为默认值为65530.在虚拟机中,我们可以轻松地轻松更改此值.在容器实例中,我们无权访问基础虚拟机.我会检查并更新您.

I think the default value is 65530. In virtual machines we can easily change this value easliy. In container instances, we don't have access to the underlying VM. I will check and update you.


这篇关于Elasticsearch Container增加vm.max_map_count的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆