Hi,
What is the recommended way of Removing a Mongos Instance? I didn’t find anything on the documentation.
Thank You!
Hi,
What is the recommended way of Removing a Mongos Instance? I didn’t find anything on the documentation.
Thank You!
Here is the doc for start and stop a mongodb
https://docs.mongodb.com/manual/tutorial/manage-mongodb-processes/
And here are the docs to remove a replica set member
Hope this helps
Hi,
I tried the shutdown
command to remove mongos router node. But the mongos
collection in config
database still contains the entry of the removed node. Is that a normal behavior?
Thank you!
Yes. Don’t worry about it. Just shut it down and you’re fine.
Internal MongoDB Metadata
The config database is internal: applications and administrators should not modify or depend upon its content in the course of normal operation.
The
mongos
collection stores a document for eachmongos
instance affiliated with the cluster.mongos
instances send pings to all members of the cluster every 30 seconds so the cluster can verify that themongos
is active. Theping
field shows the time of the last ping, while theup
field reports the uptime of themongos
as of the last ping. The cluster maintains this collection for reporting purposes.