What activities write to a config server?

25 views
Skip to first unread message

MARK CALLAGHAN

unread,
Apr 25, 2015, 8:44:49 PM4/25/15
to mongod...@googlegroups.com
I am watching less for week 6 of M102. The content is excellent. The manual states that the only activities that write to a config server are splits & migrates, but in one of the videos this sequence is done after connecting to a mongo process and it returns the hostnames+ports used for shard servers. Does this mean that adding a shard initially or after replacing a failed server also writes to a config server.
use config

Asya Kamsky

unread,
Apr 25, 2015, 9:50:54 PM4/25/15
to mongodb-user
I think by activities it must be talking about the changelog collection.

Metadata that's relevant in long term is saved in other collections (shards, databases, collections, etc).

Replacing a failed server should be a no-op from the config server POV unless you have renamed the server and reconfigured the replica set, but then that's just discoverable info.

Our docs have a pretty comprehensive description of the config DB contents.

Asya


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAFbpF8M1h8FW7-OLrJNGyqcRCn%3DnX8Wrd%3DgZP_xj%2B0Sfg-S7VA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
MongoDB World is back! June 1-2 in NYC. Use code ASYA for 25% off!

MARK CALLAGHAN

unread,
Apr 25, 2015, 10:48:15 PM4/25/15
to mongod...@googlegroups.com
Quoting the manual, as it was less vague than what I wrote above. I also assume that most replacements of a failed shard server do not use the same hostname, so if the config server stores hostnames for shard servers then that must be updated on a replacement.
 
"MongoDB only writes data to the config server in the following cases:
  • To create splits in existing chunks. For more information, see chunk splitting.
  • To migrate a chunk between shards. For more information, see chunk migration."


For more options, visit https://groups.google.com/d/optout.



--
Mark Callaghan
mdca...@gmail.com

Asya Kamsky

unread,
Apr 26, 2015, 2:52:24 AM4/26/15
to mongodb-user

"Only writes data ..."

Yeah, that's terrible phrase to use since immediately after it says " MongoDB also uses the config server to manage distributed locks." And immediately before it says that the config DB is where the shard metadata is kept.

I can only imagine that maybe initially some wording made it clear that these are the only writes that happen without admin intervention (I.e. all other instances of writing is because it's reflecting actions of DBA - but even that's strictly not complete).

I'll get it fixed.

Asya

Reply all
Reply to author
Forward
0 new messages