[SERVER-27304] Create setParameter to make all aggregations which require merging select the primary shard as the merger Created: 06/Dec/16 Updated: 05/Apr/17 Resolved: 06/Dec/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Querying |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.12, 3.4.2, 3.5.1 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Storch | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Backport Requested: |
v3.4, v3.2
|
||||||||||||||||
| Sprint: | Query 2016-12-12 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Starting with MongoDB 3.2.0, aggregations which require a merging shard randomly select a merger amongst the shards participating in the query. This behavior was introduced under The parameter can be set on the command line when starting mongos or via a config file. To set it using the shell, connect to mongos and run the following:
Note that this parameter is for mongos only; attempting to set it against a mongod will result in an error:
|
| Comments |
| Comment by Githook User [ 21/Dec/16 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: When set to true on a mongos, aggregation queries routed to (cherry picked from commit 3f54fef03fdd7bd787a57387b84d298c9dd0222d) Conflicts: |
| Comment by Githook User [ 21/Dec/16 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: When set to true on a mongos, aggregation queries routed to (cherry picked from commit 3f54fef03fdd7bd787a57387b84d298c9dd0222d) |
| Comment by Githook User [ 06/Dec/16 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: When set to true on a mongos, aggregation queries routed to |