[SERVER-17300] Balancer tries to create config.tags index multiple times Created: 17/Feb/15 Updated: 25/Jan/17 Resolved: 27/Feb/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 2.6.13, 3.0.1, 3.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Pulo | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Completed: | |||||||||||||||||
| Steps To Reproduce: |
then watch 100 messages like this
flow past every 5-6 seconds, each at most a few millis apart. |
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Currently the balancer ensures the { ns: 1, min: 1 } index on the config.tags collection many times each balancer round — once per sharded collection. Each time this happens, the config servers are first fsync'd, which is expensive and causes a high volume of fsync messages in the config server logs (e.g. as observed on The solution is to move lines 428 – 438 of s/balance.cpp to be before the start of the loop over sharded collections. |
| Comments |
| Comment by Githook User [ 05/Apr/16 ] |
|
Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}Message: Conflicts: Cherry-picked from e75edbf8b668a7b2a48c8d495769ebaf83e91bba |
| Comment by Githook User [ 04/Mar/15 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: (cherry picked from commit e75edbf8b668a7b2a48c8d495769ebaf83e91bba) |
| Comment by Githook User [ 27/Feb/15 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: |