gpt4 book ai didi

elasticsearch - vm.max_map_count太低

转载 作者:行者123 更新时间:2023-12-05 01:18:54 25 4
gpt4 key购买 nike

我正在从elasticsearch 2.x迁移到5.x,并在启动时遇到了这个问题。

[2017-02-28T14:38:24,490][INFO ][o.e.b.BootstrapChecks    ] [node1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-02-28T14:38:24,494][ERROR][o.e.b.Bootstrap ] [node1] node validation exception
bootstrap checks failed
max file descriptors [8192] for elasticsearch process is too low, increase to at least [65536]
max size virtual memory [52729364480] for user [elastic] is too low, increase to [unlimited]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

我的yml看起来如下
node.name:  node1
network.host: _global_

我已经下载了Elasticsearch tarball,操作系统是SLES11Sp4

Elasticsearch引导检查已定义为 here。但是在玩完/etc/security/limits.conf和/etc/sysctl.conf之后,我仍然无法提出它。

在rpm安装中,据说这些东西会自动处理。

最佳答案

这是最终起作用的设置。

/etc/security/limits.conf

* hard memlock unlimited
* soft memlock unlimited
* hard nofile 65536
* soft nofile 65536
* - as unlimited

/etc/sysctl.conf
fs.file-max = 2097152
vm.max_map_count = 262144
vm.swappiness = 1

elasticsearch.yml
cluster.name: atul-es-kerberos
node.name: node1
network.host: _eth0:ipv4_
discovery.zen.ping.unicast.hosts: ["atul.labs.com"]
discovery.zen.minimum_master_nodes: 1

关于elasticsearch - vm.max_map_count太低,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42510873/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com