diff options
Diffstat (limited to 'rel')
| -rw-r--r-- | rel/env.bat.eex | 7 | ||||
| -rw-r--r-- | rel/env.sh.eex | 18 | ||||
| -rw-r--r-- | rel/vm.args.eex | 11 |
3 files changed, 36 insertions, 0 deletions
diff --git a/rel/env.bat.eex b/rel/env.bat.eex new file mode 100644 index 0000000..2ecd77f --- /dev/null +++ b/rel/env.bat.eex @@ -0,0 +1,7 @@ +@echo off +rem Set the release to work across nodes. If using the long name format like +rem the one below (my_app@127.0.0.1), you need to also uncomment the +rem RELEASE_DISTRIBUTION variable below. + +set RELEASE_DISTRIBUTION=name +set RELEASE_NODE=<%= @release.name %>@0.0.0.0 diff --git a/rel/env.sh.eex b/rel/env.sh.eex new file mode 100644 index 0000000..365fa18 --- /dev/null +++ b/rel/env.sh.eex @@ -0,0 +1,18 @@ +#!/bin/sh + +# Sets and enables heart (recommended only in daemon mode) +case $RELEASE_COMMAND in + daemon*) + export HEART_COMMAND="$RELEASE_ROOT/bin/$RELEASE_NAME $RELEASE_COMMAND" + export ELIXIR_ERL_OPTIONS="-heart" + ;; + + *) + ;; +esac + +# Set the release to work across nodes. If using the long name format like +# the one below (my_app@127.0.0.1), you need to also uncomment the +# RELEASE_DISTRIBUTION variable below. +export RELEASE_DISTRIBUTION=name +export RELEASE_NODE="<%= @release.name %>@0.0.0.0" diff --git a/rel/vm.args.eex b/rel/vm.args.eex new file mode 100644 index 0000000..71e8032 --- /dev/null +++ b/rel/vm.args.eex @@ -0,0 +1,11 @@ +## Customize flags given to the VM: http://erlang.org/doc/man/erl.html +## -mode/-name/-sname/-setcookie are configured via env vars, do not set them here + +## Number of dirty schedulers doing IO work (file, sockets, etc) +##+SDio 5 + +## Increase number of concurrent ports/sockets +##+Q 65536 + +## Tweak GC to run more often +##-env ERL_FULLSWEEP_AFTER 10 |
