one of the Cassandra 2.0 node crashed with "TOO many open files" message. currently we have set nofile limit to 32768 as specified in http://www.datastax.com/docs/1.0/install/recommended_settings.
其中一个Cassandra 2.0节点崩溃了“TOO many open files”消息。目前我们已按照http://www.datastax.com/docs/1.0/install/recommended_settings中的规定将nofile限制设置为32768。
As we are still seeing the error should we increase it more? what is the production recommended value? any side effects of increase this nofile limit? what causes the open files to grow?
我们仍然看到错误应该增加它吗?什么是生产推荐值?增加这个nofile限制的任何副作用?是什么导致打开的文件增长?
Thanks in advance.
提前致谢。
4
You are looking at an old document. The current doc (for version 2.x) from DataStax Recommended Production Settings indicates that the nofile
value should be set to 100,000.
你正在看一个旧文件。 DataStax推荐生产设置中的当前doc(对于版本2.x)表示nofile值应设置为100,000。
Packaged installs: Ensure that the following settings are included in the /etc/security/limits.d/cassandra.conf file:
打包安装:确保/etc/security/limits.d/cassandra.conf文件中包含以下设置:
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:
Tarball安装:确保/etc/security/limits.conf文件中包含以下设置:
* - 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身份运行Cassandra,某些Linux发行版(如Ubuntu)需要显式设置root限制而不是使用*:
root - memlock unlimited root - nofile 100000 root - nproc 32768 root - as unlimited
Try that, and see if it helps.
试试看,看看是否有帮助。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2014/11/05/7880cd3be9974e9f52b6f3683834be60.html。