LoginSignup
2
3

More than 5 years have passed since last update.

Mongodbのコネクション数の設定とlimits.confの関係

Last updated at Posted at 2013-11-13

あとでかく

supervisor配下で動かしているmongodbのプロセスのlimitsがプロセスを再起動しても変わらなかったので、調査メモ。

$ ulimit -u
1024
/etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     1024

mongodb.confのmaxConnsのデフォルト値は20000

現状は設定されていない。但しサーバの設定(ulimit)により制限される

20000以上は無理っぽい
http://docs.mongodb.org/manual/reference/configuration-options/#maxConns

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3