我在 OVH 上有一个 ubuntu 16.04 服务器。我像这样在服务器上运行 mongodmongod -f /etc/mongod.conf &
它每天都会宕机,我找不到原因。我尝试检查日志,但文件太大了,我找不到任何有用的信息。
也许你能帮助我吗?
这是mongo --version
MongoDB shell version v3.4.10
git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1604
distarch: x86_64
target_arch: x86_64
以下是服务器详细信息
CPU
Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
Cores : 8
Cache : 8192KB
RAM
2x 8192MB
Disks
2 x 240 GB
Motherboard
P8B-M Series
这是mongod.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /home/mongodb_data
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1,10.17.0.10
#processManagement:
#security:
# authorization: enabled
#operationProfiling:
#replication:
replication:
replSetName: incredo
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
答案1
也许您的备份脚本不合理且占用大量资源,导致备份运行时服务器的其余服务每晚都陷入瘫痪。