ยง2023-08-07
So far, we configured one config server repliSetName: configServer and two individual shards repliSetName are SharA, ShardB.
- replication.replSetName: "ConfigServer", sharding.clusterRole: "configsvr"
ConfigServer [primary] admin> rs.status().members.forEach(member => print(member.name))
orgpi5jammy.yushei.net:27997
n2mnjaro.yushei.net:27997
hc4lunar.yushei.net:27997
- replication.replSetName: "ShardA", sharding.clusterRole: "shardsvr"
ShardA [primary] admin> rs.status().members.forEach(member => print(member.name))
n2Mnjaro-01.yushei.net:27995
hc4Bookworm.yushei.net:27995
hc4Lunar.yushei.net:27995
- replication.replSetName: "ShardB", sharding.clusterRole: "shardsvr"
ShardB [direct: secondary] admin> db.auth("siteRootAdmin", "b23258585")
{ ok: 1 }
ShardB [direct: secondary] admin> rs.status().members.forEach(member => print(member.name))
n2Mnjaro-01.yushei.net:27993
hc4Bookworm.yushei.net:27993
hc4Lunar.yushei.net:27993
Please tell me how the run mongos using the above setups?
mongos
--tlsMode requireTLS
--bind_ip_all
--tlsCAFile /opt/xfs/mongodb/x.509/mongoCA.crt
--tlsCertificateKeyFile /opt/xfs/mongodb/x.509/hc4lunar.yushei.net.pem
--configdb "configServer/orgpi5jammy.yushei.net:27997,n2mnjaro.yushei.net:27997,hc4lunar.yushei.net:27997"
lexlai@hc4Lunar:~$ mongos --tlsMode requireTLS --bind_ip_all --tlsCAFile /opt/xfs/mongodb/x.509/mongoCA.crt --tlsCertificateKeyFile /opt/xfs/mongodb/x.509/hc4lunar.yushei.net.pem --configdb "configServer/orgpi5jammy.yushei.net:27997,n2mnjaro.yushei.net:27997,hc4lunar.yushei.net:27997" --port 27991
{"t":{"$date":"2023-08-07T20:21:44.431+08:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2023-08-07T20:21:44.457+08:00"},"s":"I", "c":"NETWORK", "id":4913010, "ctx":"main","msg":"Certificate information","attr":{"subject":"CN=hc4lunar.yushei.net,OU=ComputerDepartment,O=yushei.net,L=Taichung,ST=Taiwan,C=Tw","issuer":"emailAddress=alexlai@munetaka.me,CN=yushei.net,OU=Computer Department,O=YuShei Ltd.\\,,L=Taichung,ST=Taiwan,C=TW","thumbprint":"D73022F0F26647E69FAA7A7A999CCBC6CC766655","notValidBefore":{"$date":"2023-08-05T11:43:49.000Z"},"notValidAfter":{"$date":"2024-09-03T11:43:49.000Z"},"keyFile":"/opt/xfs/mongodb/x.509/hc4lunar.yushei.net.pem","type":"Server"}}
{"t":{"$date":"2023-08-07T20:21:44.463+08:00"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":21,"maxWireVersion":21},"isInternalClient":true}}}
{"t":{"$date":"2023-08-07T20:21:44.464+08:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2023-08-07T20:21:44.472+08:00"},"s":"I", "c":"HEALTH", "id":5936503, "ctx":"main","msg":"Fault manager changed state ","attr":{"state":"StartupCheck"}}
{"t":{"$date":"2023-08-07T20:21:44.475+08:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"main","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2023-08-07T20:21:44.476+08:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"mongosMain","msg":"Build Info","attr":{"buildInfo":{"version":"7.0.0-rc8","gitVersion":"27da922959c12df48ae2ecf8aad0f37f42f71451","openSSLVersion":"OpenSSL 3.0.8 7 Feb 2023","modules":[],"allocator":"tcmalloc","environment":{"distarch":"aarch64","target_arch":"aarch64"}}}}
{"t":{"$date":"2023-08-07T20:21:44.476+08:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"mongosMain","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"23.04"}}}
{"t":{"$date":"2023-08-07T20:21:44.476+08:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"mongosMain","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*","port":27991,"tls":{"CAFile":"/opt/xfs/mongodb/x.509/mongoCA.crt","certificateKeyFile":"/opt/xfs/mongodb/x.509/hc4lunar.yushei.net.pem","mode":"requireTLS"}},"sharding":{"configDB":"configServer/orgpi5jammy.yushei.net:27997,n2mnjaro.yushei.net:27997,hc4lunar.yushei.net:27997"}}}}
{"t":{"$date":"2023-08-07T20:21:44.494+08:00"},"s":"I", "c":"NETWORK", "id":4603701, "ctx":"mongosMain","msg":"Starting Replica Set Monitor","attr":{"protocol":"streamable","uri":"configServer/hc4lunar.yushei.net:27997,n2mnjaro.yushei.net:27997,orgpi5jammy.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.494+08:00"},"s":"I", "c":"-", "id":4333223, "ctx":"mongosMain","msg":"RSM now monitoring replica set","attr":{"replicaSet":"configServer","nReplicaSetMembers":3}}
{"t":{"$date":"2023-08-07T20:21:44.495+08:00"},"s":"I", "c":"-", "id":4333226, "ctx":"mongosMain","msg":"RSM host was added to the topology","attr":{"replicaSet":"configServer","host":"hc4lunar.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.495+08:00"},"s":"I", "c":"-", "id":4333226, "ctx":"mongosMain","msg":"RSM host was added to the topology","attr":{"replicaSet":"configServer","host":"n2mnjaro.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.495+08:00"},"s":"I", "c":"-", "id":4333226, "ctx":"mongosMain","msg":"RSM host was added to the topology","attr":{"replicaSet":"configServer","host":"orgpi5jammy.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.495+08:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Connecting","attr":{"hostAndPort":"hc4lunar.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.496+08:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Connecting","attr":{"hostAndPort":"n2mnjaro.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.496+08:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Connecting","attr":{"hostAndPort":"orgpi5jammy.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.600+08:00"},"s":"I", "c":"NETWORK", "id":6723801, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Accepted TLS connection from peer","attr":{"peerSubject":"CN=hc4lunar.yushei.net,OU=ComputerDepartment,O=yushei.net,L=Taichung,ST=Taiwan,C=Tw","cipher":"TLS_AES_256_GCM_SHA384"}}
{"t":{"$date":"2023-08-07T20:21:44.647+08:00"},"s":"I", "c":"NETWORK", "id":6723801, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Accepted TLS connection from peer","attr":{"peerSubject":"CN=n2mnjaro.yushei.net,OU=ComputerDepartment,O=yushei.net,L=Taichung,ST=Taiwan,C=Tw","cipher":"TLS_AES_256_GCM_SHA384"}}
{"t":{"$date":"2023-08-07T20:21:44.694+08:00"},"s":"I", "c":"NETWORK", "id":6723801, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Accepted TLS connection from peer","attr":{"peerSubject":"CN=orgpi5jammy.yushei.net,OU=ComputerDepartment,O=yushei.net,L=Taichung,ST=Taiwan,C=Tw","cipher":"TLS_AES_256_GCM_SHA384"}}
{"t":{"$date":"2023-08-07T20:21:44.695+08:00"},"s":"I", "c":"NETWORK", "id":20220, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Server was removed from the topology","attr":{"serverAddress":"hc4lunar.yushei.net:27997","topologyDescription":{"id":"1a14c2b1-33f6-4055-9092-d2a219a2fbe4","topologyType":"ReplicaSetWithPrimary","servers":{"n2mnjaro.yushei.net:27997":{"address":"n2mnjaro.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}},"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true}}}
{"t":{"$date":"2023-08-07T20:21:44.695+08:00"},"s":"I", "c":"NETWORK", "id":23729, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"ServerPingMonitor is now monitoring host","attr":{"host":"hc4lunar.yushei.net:27997","replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.695+08:00"},"s":"I", "c":"NETWORK", "id":4333213, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM Topology Change","attr":{"replicaSet":"configServer","newTopologyDescription":{"id":"1a14c2b1-33f6-4055-9092-d2a219a2fbe4","topologyType":"ReplicaSetNoPrimary","servers":{"n2mnjaro.yushei.net:27997":{"address":"n2mnjaro.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}},"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true},"previousTopologyDescription":{"id":"af678c27-6142-40f6-9f0f-b14e41c76dff","topologyType":"ReplicaSetNoPrimary","servers":{"hc4lunar.yushei.net:27997":{"address":"hc4lunar.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}},"n2mnjaro.yushei.net:27997":{"address":"n2mnjaro.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}},"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"setName":"configServer","compatible":true}}}
{"t":{"$date":"2023-08-07T20:21:44.695+08:00"},"s":"I", "c":"NETWORK", "id":462899, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"ServerPingMonitor for host was removed from being monitored","attr":{"host":"hc4lunar.yushei.net:27997","replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.695+08:00"},"s":"I", "c":"-", "id":4333225, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host was removed from the topology","attr":{"replicaSet":"configServer","addr":"hc4lunar.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.695+08:00"},"s":"I", "c":"-", "id":4333219, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM not processing response","attr":{"error":{"code":90,"codeName":"CallbackCanceled","errmsg":"Command canceled; original request was: RemoteCommand 1 -- target:[hc4lunar.yushei.net:27997] db:admin expDate:2023-08-07T20:21:54.495+08:00 cmd:{ hello: 1, internalClient: { minWireVersion: 21, maxWireVersion: 21 } }"},"replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"NETWORK", "id":20220, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Server was removed from the topology","attr":{"serverAddress":"n2mnjaro.yushei.net:27997","topologyDescription":{"id":"ed72cfc4-b0a7-455a-97a7-bd75a6be1f9f","topologyType":"ReplicaSetNoPrimary","servers":{"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true}}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"NETWORK", "id":23729, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"ServerPingMonitor is now monitoring host","attr":{"host":"n2mnjaro.yushei.net:27997","replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"NETWORK", "id":4333213, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM Topology Change","attr":{"replicaSet":"configServer","newTopologyDescription":{"id":"ed72cfc4-b0a7-455a-97a7-bd75a6be1f9f","topologyType":"ReplicaSetNoPrimary","servers":{"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true},"previousTopologyDescription":{"id":"1a14c2b1-33f6-4055-9092-d2a219a2fbe4","topologyType":"ReplicaSetNoPrimary","servers":{"n2mnjaro.yushei.net:27997":{"address":"n2mnjaro.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}},"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true}}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"NETWORK", "id":462899, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"ServerPingMonitor for host was removed from being monitored","attr":{"host":"n2mnjaro.yushei.net:27997","replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"-", "id":4333225, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host was removed from the topology","attr":{"replicaSet":"configServer","addr":"n2mnjaro.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"-", "id":4333219, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM not processing response","attr":{"error":{"code":90,"codeName":"CallbackCanceled","errmsg":"Command canceled; original request was: RemoteCommand 2 -- target:[n2mnjaro.yushei.net:27997] db:admin expDate:2023-08-07T20:21:54.495+08:00 cmd:{ hello: 1, internalClient: { minWireVersion: 21, maxWireVersion: 21 } }"},"replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.696+08:00"},"s":"I", "c":"ASIO", "id":6496400, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Slow connection establishment","attr":{"hostAndPort":"hc4lunar.yushei.net:27997","dnsResolutionTimeMillis":2,"tcpConnectionTimeMillis":2,"tlsHandshakeTimeMillis":101,"authTimeMillis":96,"hookTime":null,"totalTimeMillis":201}}
{"t":{"$date":"2023-08-07T20:21:44.697+08:00"},"s":"I", "c":"ASIO", "id":6496400, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Slow connection establishment","attr":{"hostAndPort":"n2mnjaro.yushei.net:27997","dnsResolutionTimeMillis":6,"tcpConnectionTimeMillis":1,"tlsHandshakeTimeMillis":144,"authTimeMillis":49,"hookTime":null,"totalTimeMillis":200}}
{"t":{"$date":"2023-08-07T20:21:44.709+08:00"},"s":"I", "c":"NETWORK", "id":20220, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Server was removed from the topology","attr":{"serverAddress":"orgpi5jammy.yushei.net:27997","topologyDescription":{"id":"7c9bedba-8fbd-47d4-96e8-07a2586b0561","topologyType":"ReplicaSetNoPrimary","servers":{},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true}}}
{"t":{"$date":"2023-08-07T20:21:44.709+08:00"},"s":"I", "c":"NETWORK", "id":23729, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"ServerPingMonitor is now monitoring host","attr":{"host":"orgpi5jammy.yushei.net:27997","replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.709+08:00"},"s":"I", "c":"NETWORK", "id":4333213, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM Topology Change","attr":{"replicaSet":"configServer","newTopologyDescription":{"id":"7c9bedba-8fbd-47d4-96e8-07a2586b0561","topologyType":"ReplicaSetNoPrimary","servers":{},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true},"previousTopologyDescription":{"id":"ed72cfc4-b0a7-455a-97a7-bd75a6be1f9f","topologyType":"ReplicaSetNoPrimary","servers":{"orgpi5jammy.yushei.net:27997":{"address":"orgpi5jammy.yushei.net:27997","type":"Unknown","minWireVersion":0,"maxWireVersion":0,"lastUpdateTime":{"$date":{"$numberLong":"-9223372036854775808"}},"hosts":{},"arbiters":{},"passives":{}}},"logicalSessionTimeoutMinutes":30,"setName":"configServer","compatible":true}}}
{"t":{"$date":"2023-08-07T20:21:44.709+08:00"},"s":"I", "c":"NETWORK", "id":462899, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"ServerPingMonitor for host was removed from being monitored","attr":{"host":"orgpi5jammy.yushei.net:27997","replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.710+08:00"},"s":"I", "c":"-", "id":4333225, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host was removed from the topology","attr":{"replicaSet":"configServer","addr":"orgpi5jammy.yushei.net:27997"}}
{"t":{"$date":"2023-08-07T20:21:44.710+08:00"},"s":"I", "c":"-", "id":4333219, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM not processing response","attr":{"error":{"code":90,"codeName":"CallbackCanceled","errmsg":"Command canceled; original request was: RemoteCommand 3 -- target:[orgpi5jammy.yushei.net:27997] db:admin expDate:2023-08-07T20:21:54.495+08:00 cmd:{ hello: 1, internalClient: { minWireVersion: 21, maxWireVersion: 21 } }"},"replicaSet":"configServer"}}
{"t":{"$date":"2023-08-07T20:21:44.710+08:00"},"s":"I", "c":"ASIO", "id":6496400, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Slow connection establishment","attr":{"hostAndPort":"orgpi5jammy.yushei.net:27997","dnsResolutionTimeMillis":8,"tcpConnectionTimeMillis":1,"tlsHandshakeTimeMillis":189,"authTimeMillis":16,"hookTime":null,"totalTimeMillis":214}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"-", "id":4939300, "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer","nextWakeupMillis":200}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"SHARDING", "id":6973904, "ctx":"QueryAnalysisConfigurationsRefresher","msg":"Failed to refresh query analysis configurations, will try again at the next refresh interval","attr":{"error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"W", "c":"SHARDING", "id":23834, "ctx":"mongosMain","msg":"Error loading global settings from config server. Sleeping for 2 seconds and retrying","attr":{"error":{"code":133,"codeName":"FailedToSatisfyReadPreference","errmsg":"Error loading clusterID :: caused by :: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}}
{"t":{"$date":"2023-08-07T20:21:59.496+08:00"},"s":"I", "c":"SHARDING", "id":22727, "ctx":"ShardRegistryUpdater","msg":"Error running periodic reload of shard registry","attr":{"error":"FailedToSatisfyReadPreference: could not get updated shard list from config server :: caused by :: Could not find host matching read preference { mode: \"nearest\" } for set configServer","shardRegistryReloadIntervalSeconds":30}}
{"t":{"$date":"2023-08-07T20:22:14.496+08:00"},"s":"I", "c":"SHARDING", "id":6973904, "ctx":"QueryAnalysisConfigurationsRefresher","msg":"Failed to refresh query analysis configurations, will try again at the next refresh interval","attr":{"error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:14.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:14.696+08:00"},"s":"I", "c":"-", "id":4939300, "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer","nextWakeupMillis":400}}
{"t":{"$date":"2023-08-07T20:22:14.696+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:16.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:16.496+08:00"},"s":"W", "c":"SHARDING", "id":23834, "ctx":"mongosMain","msg":"Error loading global settings from config server. Sleeping for 2 seconds and retrying","attr":{"error":{"code":133,"codeName":"FailedToSatisfyReadPreference","errmsg":"Error loading clusterID :: caused by :: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}}
{"t":{"$date":"2023-08-07T20:22:29.496+08:00"},"s":"I", "c":"SHARDING", "id":6973904, "ctx":"QueryAnalysisConfigurationsRefresher","msg":"Failed to refresh query analysis configurations, will try again at the next refresh interval","attr":{"error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:29.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:30.097+08:00"},"s":"I", "c":"-", "id":4939300, "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer","nextWakeupMillis":600}}
{"t":{"$date":"2023-08-07T20:22:30.097+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:33.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}
{"t":{"$date":"2023-08-07T20:22:33.496+08:00"},"s":"W", "c":"SHARDING", "id":23834, "ctx":"mongosMain","msg":"Error loading global settings from config server. Sleeping for 2 seconds and retrying","attr":{"error":{"code":133,"codeName":"FailedToSatisfyReadPreference","errmsg":"Error loading clusterID :: caused by :: Could not find host matching read preference { mode: \"nearest\" } for set configServer"}}}
{"t":{"$date":"2023-08-07T20:22:44.496+08:00"},"s":"I", "c":"NETWORK", "id":4333208, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM host selection timeout","attr":{"replicaSet":"configServer","error":"FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \"primary\" } for set c
mongos --configdb