Skip to content

Commit

Permalink
Set ERL_MAX_PORTS on Mac OS X in cluster_run.
Browse files Browse the repository at this point in the history
Default ERL_MAX_PORTS seems to be 1024. Set it to the same value as
NOFILE limit.

Change-Id: Id4183524fde22c9abb9453ca08f192bc632e9b7b
Reviewed-on: http://review.couchbase.org/12906
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information
aartamonau authored and alk committed Feb 2, 2012
1 parent 2abf3d3 commit ab40dd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster_run
Expand Up @@ -72,7 +72,8 @@ def os_specific(args, params):
## Also, we build stuff in kind of dumb ways, so fix the path.
dypath = ("%(pwd)s/../install/lib/memcached:"
"%(pwd)s/../install/lib:/usr/local/lib") % {'pwd': os.getcwd()}
params['env'] = {"DYLD_LIBRARY_PATH": dypath}
params['env'] = {"DYLD_LIBRARY_PATH": dypath,
"ERL_MAX_PORTS": "2048"}
params['env'].update(os.environ)

def start_cluster(num_nodes, start_index, host, extra_args):
Expand Down

0 comments on commit ab40dd2

Please sign in to comment.