Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge branch 'fix/node-count' of https://github.com/apache/couchdb-setup
  • Loading branch information
wohali committed Jul 30, 2017
2 parents 4d9bd58 + 68545af commit 9fd7f448065b4eb29910c9e14d1ac89af589e3c1
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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 ->

0 comments on commit 9fd7f44

Please sign in to comment.