场景:恢复一个22TB数据的mongodb实例的时候.
加入mongodb集群中,自动恢复数据实例的过程中。mongodb的系统日志报了如下错误:
修改linux操作系统的limit的参数文件,如下:
-
[root@ClbMongo01 home]# cat /etc/security/limits.conf
-
......
-
-
* - nproc 102400
-
* - nofile 102400
-
......
保证打开连接数,不是瓶颈。
-
[root@ClbMongo01 home]# ulimit -a
-
core file size (blocks, -c) 0
-
data seg size (kbytes, -d) unlimited
-
scheduling priority (-e) 0
-
file size (blocks, -f) unlimited
-
pending signals (-i) 514844
-
max locked memory (kbytes, -l) 64
-
max memory size (kbytes, -m) unlimited
-
open files (-n) 102400 //打开文件大小为:102400
-
pipe size (512 bytes, -p) 8
-
POSIX message queues (bytes, -q) 819200
-
real-time priority (-r) 0
-
stack size (kbytes, -s) 10240
-
cpu time (seconds, -t) unlimited
-
max user processes (-u) 102400
-
virtual memory (kbytes, -v) unlimited
-
file locks (-x) unlimited
阅读(5288) | 评论(0) | 转发(0) |