我经常看到这些,很多:
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