2016-02-05 22:16:36 +01:00
|
|
|
[Unit]
|
|
|
|
Description=High-performance, schema-free document-oriented database
|
|
|
|
After=network.target
|
|
|
|
Documentation=https://docs.mongodb.org/manual
|
|
|
|
|
|
|
|
[Service]
|
2016-02-09 21:43:10 +01:00
|
|
|
User=mongodb
|
|
|
|
Group=mongodb
|
2017-05-30 05:22:31 +02:00
|
|
|
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
|
2016-10-18 20:13:14 +02:00
|
|
|
# file size
|
|
|
|
LimitFSIZE=infinity
|
|
|
|
# cpu time
|
|
|
|
LimitCPU=infinity
|
|
|
|
# virtual memory size
|
|
|
|
LimitAS=infinity
|
|
|
|
# open files
|
|
|
|
LimitNOFILE=64000
|
|
|
|
# processes/threads
|
|
|
|
LimitNPROC=64000
|
2017-09-12 19:14:39 +02:00
|
|
|
# locked memory
|
|
|
|
LimitMEMLOCK=infinity
|
2016-10-18 20:13:14 +02:00
|
|
|
# total threads (user+kernel)
|
|
|
|
TasksMax=infinity
|
2016-08-23 21:29:27 +02:00
|
|
|
TasksAccounting=false
|
2016-10-18 20:13:14 +02:00
|
|
|
|
2016-08-23 21:29:27 +02:00
|
|
|
# Recommended limits for for mongod as specified in
|
|
|
|
# http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings
|
2016-02-05 22:16:36 +01:00
|
|
|
|
|
|
|
[Install]
|
2016-10-18 20:13:14 +02:00
|
|
|
WantedBy=multi-user.target
|