Conversation
do not warn on db creation if the user runs a "single-node-cluster". given the suggestions i got on IRC currently the best way is not to modify N and just let it default to three, also for a cluster-of-one. This closes COUCHDB-2594
|
I worry about the following: that warning existed with some meaning, for some reason. In fact, it could notice that cluster is in "incomplete" state what may explain various errors and failures. If so, may be add special clause for NodeCount=1, but keep the warning for else? If my worries are false - go ahead (: |
|
that's a really cool idea, i can do that on monday if no one else objects |
|
The error exists because To quote @rnewson's comment in the related ticket, which I still believe is definitive here:
IMO removing the error is all fine and good - it's not really the crux of the interest here. If there's a "Single Node Mode", that should set |
|
The problem with changing N is forgetting to change back up when adding nodes. Silently making N=1 dbs when you have one node is infinitely preferable to making N=1 dbs when you have three nodes or more. The reason we log is so that the observant admin can notice that they didn't join their multi-node cluster up properly, but I don't think it's a very good mechanism. Of all the options, the best one is to leave things as they are. Someone with a single node 'cluster' will see warnings for this and learn to ignore them (since they don't apply to them). For everyone else, it helps them avoid a data loss scenario, if they read their logs. The second best option is to remove the warning, which is what I advocate for given the number of voices that dislike the warning. All other options involve more work and just change one compromise into another one. |
|
How about this for a compromise?
|
|
+1 |
Closes COUCHDB-2594 Supercedes #11
|
See #20 for new PR |
do not warn on db creation if the user runs a
"single-node-cluster". given the suggestions i got on IRC
currently the best way is not to modify N and just let it default
to three, also for a cluster-of-one.
This closes COUCHDB-2594
This superseeds apache/couchdb-setup#4