gpt4 book ai didi

unix - Cassandra 打开的文件太多。港口死了

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

Cassandra 2.0 节点之一因“打开的文件太多”消息而崩溃。目前我们已按照 http://www.datastax.com/docs/1.0/install/recommended_settings 中的规定将 nofile 限制设置为 32768 .

由于我们仍然看到错误,我们应该增加它吗?生产推荐值是多少?增加这个 nofile 限制有什么副作用吗?是什么导致打开的文件增长?

提前致谢。

最佳答案

您正在查看旧文档。来自 DataStax Recommended Production Settings 的当前文档(适用于 2.x 版)表示 nofile值应设置为 100,000。

Packaged installs: Ensure that the following settings are included in the /etc/security/limits.d/cassandra.conf file:

cassandra - memlock unlimited
cassandra - nofile 100000
cassandra - nproc 32768
cassandra - as unlimited

Tarball installs: Ensure that the following settings are included in the /etc/security/limits.conf file:

* - memlock unlimited
* - nofile 100000
* - nproc 32768
* - as unlimited

If you run Cassandra as root, some Linux distributions such as Ubuntu, require setting the limits for root explicitly instead of using *:

root - memlock unlimited
root - nofile 100000
root - nproc 32768
root - as unlimited


试试看,看看它是否有帮助。

关于unix - Cassandra 打开的文件太多。港口死了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26762142/

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