[SERVER-6376] Tag replica set nodes without election or reconnections Created: 10/Jul/12  Updated: 11/Jul/16  Resolved: 03/Sep/13

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Improvement Priority: Major - P3
Reporter: Sean Laurent Assignee: Matt Dannenberg
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-6752 Do not close all connections on repli... Closed
is related to SERVER-10823 isMaster does not contain tags in som... Closed
Participants:

 Description   

I'd like to add tags to existing nodes in our replica sets (mostly to identify the Amazon Availability Zone), but it looks like the easiest way to do that is to modify the config and run rs.reconfig(cfg). Since running rs.reconfig() has the potential to trigger an election, it would be fantastic to have a way to modify tags for replica set nodes without the chance of an election or the nodes dropping existing connections.



 Comments   
Comment by auto [ 24/Sep/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-10823 update member configs properly on tags-only reconfigs

fixes problems caused by SERVER-6376
Branch: master
https://github.com/mongodb/mongo/commit/0be5ade7cdccccaef2f11b31819fd671c7476c71

Comment by auto [ 04/Sep/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-6376 small refactor to eliminate redundant code
Branch: master
https://github.com/mongodb/mongo/commit/3e89164820991245a14f7902dc5f988e6434f192

Comment by auto [ 03/Sep/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-6376 no longer trigger elections or reconnections for replica set reconfigs consisting only of tag changes
Branch: master
https://github.com/mongodb/mongo/commit/2f0c929ee17921cf122a3f3fb73f826841126a0c

Comment by Scott Hernandez (Inactive) [ 13/Aug/12 ]

Sean, I updated this a little to indicate you want a way to add/change tags where there is no chance for elections nor should connections be reset.

We should also do this for many other config changes with replica sets, like hiding nodes.

Comment by Eliot Horowitz (Inactive) [ 11/Jul/12 ]

I think what we really want is for a reconfig just not to trigger an election if it isn't needed.

Generated at Thu Feb 08 03:11:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.