为什么我的mongoid服务器描述始终从主要变为主要?

时间:2017-06-22 00:10:36

标签: mongodb mongoid

我经常看到这些,很多:

MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.
MONGODB | Server description for localhost:27017 changed from 'primary' to 'primary'.

是否存在导致此问题的特定错误配置,或者这是否是正常操作的一部分?

我的/etc/mongodb.conf:

storage:
  dbPath: /var/lib/mongodb
  journal:
    enabled: true

systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

net:
  port: 27017
  bindIp: 127.0.0.1

replication:
  replSetName: something

0 个答案:

没有答案