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
mongoscollection stores a document for eachmongosinstance affiliated with the cluster.mongosinstances send pings to all members of the cluster every 30 seconds so the cluster can verify that themongosis active. Thepingfield shows the time of the last ping, while theupfield reports the uptime of themongosas of the last ping. The cluster maintains this collection for reporting purposes.