diff options
author | href <href@random.sh> | 2020-07-07 21:39:10 +0200 |
---|---|---|
committer | href <href@random.sh> | 2020-07-07 21:39:51 +0200 |
commit | d6ee134a5957e299c3ad59011df320b3c41e6e61 (patch) | |
tree | 29567e6635466f8a3415a935b3cc8a777019f5bc /rel | |
parent | bleh (diff) |
pouet
Diffstat (limited to 'rel')
-rw-r--r-- | rel/env.bat.eex | 6 | ||||
-rw-r--r-- | rel/env.sh.eex | 21 | ||||
-rw-r--r-- | rel/vm.args.eex | 11 |
3 files changed, 38 insertions, 0 deletions
diff --git a/rel/env.bat.eex b/rel/env.bat.eex new file mode 100644 index 0000000..22be280 --- /dev/null +++ b/rel/env.bat.eex @@ -0,0 +1,6 @@ +@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. Must be "sname", "name" or "none". +rem set RELEASE_DISTRIBUTION=name +rem set RELEASE_NODE=<%= @release.name %>@127.0.0.1 diff --git a/rel/env.sh.eex b/rel/env.sh.eex new file mode 100644 index 0000000..1e468bb --- /dev/null +++ b/rel/env.sh.eex @@ -0,0 +1,21 @@ +#!/bin/sh + +# Sets and enables heart (recommended only in daemon mode) +# case $RELEASE_COMMAND in +# daemon*) +# HEART_COMMAND="$RELEASE_ROOT/bin/$RELEASE_NAME $RELEASE_COMMAND" +# export HEART_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. Must be "sname", "name" or "none". +# export RELEASE_DISTRIBUTION=name +# export RELEASE_NODE=<%= @release.name %>@127.0.0.1 +export RUN_ERL_LOG_GENERATIONS=20 +export RUN_ERL_LOG_MAXSIZE=100000000 + diff --git a/rel/vm.args.eex b/rel/vm.args.eex new file mode 100644 index 0000000..957d983 --- /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, and others) +##+SDio 5 + +## Increase number of concurrent ports/sockets +##+Q 65536 + +## Tweak GC to run more often +##-env ERL_FULLSWEEP_AFTER 10 |