diff options
author | Joan Touzet <joant@atypical.net> | 2017-07-30 17:15:08 -0400 |
---|---|---|
committer | Joan Touzet <joant@atypical.net> | 2017-07-30 17:15:08 -0400 |
commit | 9fd7f448065b4eb29910c9e14d1ac89af589e3c1 (patch) | |
tree | 4e1aa0ec50c35f979cf9729903c0e81d099e610d | |
parent | 4d9bd589fe68d6108021ef8417f3e5d91e4d113e (diff) | |
parent | 68545afed1000d69cdebbe36c4b7962e6305473b (diff) | |
download | couchdb-9fd7f448065b4eb29910c9e14d1ac89af589e3c1.tar.gz |
Merge branch 'fix/node-count' of https://github.com/apache/couchdb-setup
-rw-r--r-- | src/setup.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/setup.erl b/src/setup.erl index d0ecd2cd9..943318675 100644 --- a/src/setup.erl +++ b/src/setup.erl @@ -169,7 +169,9 @@ setup_node(NewCredentials, NewBindAddress, NodeCount, Port) -> config:set("chttpd", "bind_address", binary_to_list(NewBindAddress)) end, - config:set_integer("cluster", "n", NodeCount), + % for single node setups, set n=1, for larger setups, don’t + % exceed n=3 as a default + config:set_integer("cluster", "n", min(NodeCount, 3)), case Port of undefined -> |