From b75716b3071bd39265b99843be70e7d09bbad66c Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Mon, 25 Jan 2021 11:28:11 -0800 Subject: [PATCH] Fixing for docker --- .../templates/simmonitor.args.template.docker | 33 +++++++++++++++++++ .../simmonitor.config.template.docker | 20 +++++++++++ 2 files changed, 53 insertions(+) create mode 100644 priv/templates/simmonitor.args.template.docker create mode 100644 priv/templates/simmonitor.config.template.docker diff --git a/priv/templates/simmonitor.args.template.docker b/priv/templates/simmonitor.args.template.docker new file mode 100644 index 0000000..9ca5bc4 --- /dev/null +++ b/priv/templates/simmonitor.args.template.docker @@ -0,0 +1,33 @@ +## Name of the node + +## Cookie for distributed erlang +-setcookie $$COOKIE$$ +-s owls_app +-boot start_clean + +## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive +## (Disabled by default..use with caution!) +-heart + +## Enable kernel poll and a few async threads ++K true ++A 5 + +## Increase number of concurrent ports/sockets +-env ERL_MAX_PORTS 4096 + +## Tweak GC to run more often +##-env ERL_FULLSWEEP_AFTER 10 + +# +B [c | d | i] +# Option c makes Ctrl-C interrupt the current shell instead of invoking the emulator break +# handler. Option d (same as specifying +B without an extra option) disables the break handler. # Option i makes the emulator ignore any break signal. +# If option c is used with oldshell on Unix, Ctrl-C will restart the shell process rather than +# interrupt it. +# Disable the emulator break handler +# it easy to accidentally type ctrl-c when trying +# to reach for ctrl-d. ctrl-c on a live node can +# have very undesirable results +##+Bi + + diff --git a/priv/templates/simmonitor.config.template.docker b/priv/templates/simmonitor.config.template.docker new file mode 100644 index 0000000..9c22a47 --- /dev/null +++ b/priv/templates/simmonitor.config.template.docker @@ -0,0 +1,20 @@ +[ { + owls , + [ + { role , pseudo } + ]} + , + {lager, + [ + {log_root, "/app_data/logs"}, + {colored,true}, + {handlers, + [ + {lager_console_backend, [{level,error}]}, + {lager_file_backend, [{file, "error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5}]}, + {lager_file_backend, [{file, "info.log"}, {level, info}, {size, 10485760}, {date, "$D0"}, {count, 5}]}, + {lager_file_backend, [{file, "warning.log"}, {level, warning}, {size, 10485760}, {date, "$D0"}, {count, 5}]} + ]} + ] } +]. +