[SERVER-4836] Making replica set sync ups faster will speed up development of drivers Created: 01/Feb/12  Updated: 11/Jul/16  Resolved: 26/Mar/13

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

Type: Improvement Priority: Minor - P4
Reporter: Gustavo Niemeyer Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-9020 Speed up replica set startup Closed
Related
is related to SERVER-9311 replsetprio1.js failing consistently ... Closed
Participants:

 Description   

Synchronization of servers in a replica set takes quite a while to
accomplish in normal circumstances, which is hurting for test suites
that go over the trouble of shutting down servers mid-way through,
and then have to wait for the replica set to stabilize again before
continuing to run.

Reducing this delay, even if it requires a flag and burning down the
CPU a bit more, will speed up the testing and development of drivers,
and consequently will also encourage better test suites to be
developed.

As a reference, there was an exchange in mongodb-dev about an year ago:

https://groups.google.com/forum/#!topic/mongodb-dev/EUQ2jyTzu-0



 Comments   
Comment by Tyler Brock [ 23/Apr/13 ]

Milkie, you are the best. This cut down out total test time by 15% which is massive, thank you for looking at this.

Comment by Eric Milkie [ 22/Apr/13 ]

It didn't make 2.4.3 but maybe in 2.4.4.

Comment by Tyler Brock [ 22/Apr/13 ]

This is great! Any chance for a back port?

Comment by Gustavo Niemeyer [ 26/Mar/13 ]

Way to go! Thanks Eric.

Comment by Eric Milkie [ 26/Mar/13 ]

Went from ~1:18 to ~1:00 to run the replica set suite on a Linux builder; saved 18 minutes

Comment by auto [ 19/Mar/13 ]

Author:

{u'date': u'2013-03-19T17:51:07Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4836 increase poll frequency for new config of a replica set member
Branch: master
https://github.com/mongodb/mongo/commit/5312dbd53b72e856e7237df8fb6094120a875b27

Comment by Daniel Pasette (Inactive) [ 18/Mar/13 ]

milkie is looking at replacing sleep()'s with condition variables for this.

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