[SERVER-6836] Allow index builds on secondaries with a "force" option. Created: 23/Aug/12 Updated: 06/Dec/22 Resolved: 04/Mar/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Richard Kreuter (Inactive) | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Storage Execution
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Even after So maybe createIndex could have a force option analogous to compact's, that would make the index get built even if the node is a secondary (and I think, when a node that gets a force instruction is secondary, not registering the index build in the oplog). This way, people could more conveniently deploy their indexes one node at a time without requiring the restart-without-replSet option that's needed today. (Presumably, while building indexes this way, a secondary should go into recovering mode and/or do whatever else a secondary does during compact to arrange things so that clients don't route reads to it.) |
| Comments |
| Comment by Sara Williamson [ 04/Mar/19 ] |
|
Rolling index builds are now automated in Atlas; this is now the recommended way to do this. |
| Comment by Asya Kamsky [ 11/Apr/13 ] |
|
Customer is asking for just this exact feature - they are having trouble automating adding indexes to existing clusters since it currently involves stopping mongod and restarting with a non-standard config. They specifically asked for offline/maintenance mode for index builds on secondaries. |
| Comment by Richard Kreuter (Inactive) [ 03/Dec/12 ] |
|
Andy asked me to link requests of the form "command C should put node into maintenanceMode" to the maintenanceMode issue. If this issue gets implemented, then the command should put the secondary into maintenanceMode. |
| Comment by Richard Kreuter (Inactive) [ 23/Aug/12 ] |
|
Also has to do with index builds on secondaries, though this issue is kind of an alternative feature. |