On 16 Jul 2010, at 02:22, Chris Stockton wrote: > […] > For a quick test just to make sure the environmental variables being > passed to erlang fix my issue, I changed the following in that script: > command="/usr/bin/erl +P 65536 -env ERL_MAX_ETS_TABLES 60000 -env > ERL_MAX_PORTS 60000 $interactive_option -sasl errlog_type erro > r +K true \ > -env ERL_LIBS > /var/lib/mysql_data/couchdb-0.11.1-test/lib/couchdb/erlang/lib > -couch_ini $start_arguments -s couch" > if test "$BACKGROUND" = "true" -a "$RECURSED" = "false"; then > > Now I am happily replicating a few thousand db's. Thanks for the > helping hands. I will modify my init script accordingly to work with > couchdb shell script.
Hooray! :) — You should be able to pass in the env vars in the traditional way: ERL_MAX_PORTS=60000 couchdb or if you are in a sh script: ERL_MAX_PORTS=60000 export ERL_MAX_PORTS couchdb I'd avoid modifying the `couchdb` script itself. But it's great to see that the quick test works :) Cheers Jan --
