[SERVER-1413] Should replSetInitiate be optional? Created: 13/Jul/10 Updated: 12/Jul/16 Resolved: 14/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.5 |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Michael Dirolf | Assignee: | Dwight Merriman |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Seems unnecessary and unfriendly to make users configure the nodes in a replica set first from the command line, and again in replSetInitiate. Any reason we can't just use the nodes configured at the command line to auto-initiate? Could still do an initiate (or other commands) if setting options, etc. |
| Comments |
| Comment by Kristina Chodorow (Inactive) [ 14/Jul/10 ] |
|
Do you mean configuration data? I guess whoever has the latest entry in their oplog. |
| Comment by Dwight Merriman [ 14/Jul/10 ] |
|
@kristina which server's initial data is used? |
| Comment by Kristina Chodorow (Inactive) [ 14/Jul/10 ] |
|
Why should you have to call it at all, though? Couldn't it be like replica pairs, where you just start up the servers and you're good to go? |
| Comment by Michael Dirolf [ 14/Jul/10 ] |
|
much better. |
| Comment by Dwight Merriman [ 14/Jul/10 ] |
|
you can now do replSetinitiate with no parms and it will do what you want rs.initiate() helper in the shell |
| Comment by Dwight Merriman [ 14/Jul/10 ] |
|
hard to make automatic but can make better |