2.0 - move rel/ to emqttd-relx project
This commit is contained in:
parent
55097d9aa9
commit
c84598dae9
|
@ -1,38 +0,0 @@
|
||||||
% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
||||||
%% ex: ft=erlang ts=4 sw=4 et
|
|
||||||
[{kernel, [
|
|
||||||
{start_timer, true},
|
|
||||||
{start_pg2, true}
|
|
||||||
]},
|
|
||||||
{sasl, [
|
|
||||||
{sasl_error_logger, {file, "log/emqttd_sasl.log"}}
|
|
||||||
]},
|
|
||||||
{ssl, [
|
|
||||||
%{versions, ['tlsv1.2', 'tlsv1.1']}
|
|
||||||
]},
|
|
||||||
{esockd, [
|
|
||||||
{logger, {lager, error}}
|
|
||||||
]},
|
|
||||||
{lager, [
|
|
||||||
{colored, true},
|
|
||||||
{async_threshold, 5000},
|
|
||||||
{error_logger_redirect, false},
|
|
||||||
{crash_log, "log/emqttd_crash.log"},
|
|
||||||
{handlers, [
|
|
||||||
{lager_console_backend, error},
|
|
||||||
%%NOTICE: Level >= error
|
|
||||||
%%{lager_emqtt_backend, error},
|
|
||||||
{lager_file_backend, [
|
|
||||||
{formatter_config, [time, " ", pid, " [",severity,"] ", message, "\n"]},
|
|
||||||
{file, "log/emqttd_error.log"},
|
|
||||||
{level, error},
|
|
||||||
{size, 104857600},
|
|
||||||
{date, "$D0"},
|
|
||||||
{count, 30}
|
|
||||||
]}
|
|
||||||
]}
|
|
||||||
]},
|
|
||||||
{emqttd, [
|
|
||||||
{gen_conf, "etc/emqttd.conf"}
|
|
||||||
]}
|
|
||||||
].
|
|
|
@ -1,19 +0,0 @@
|
||||||
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
||||||
%% ex: ft=erlang ts=4 sw=4 et
|
|
||||||
|
|
||||||
%% Platform-specific installation paths
|
|
||||||
{platform_bin_dir, "./bin"}.
|
|
||||||
{platform_data_dir, "./data"}.
|
|
||||||
{platform_etc_dir, "./etc"}.
|
|
||||||
{platform_lib_dir, "./lib"}.
|
|
||||||
{platform_log_dir, "./log"}.
|
|
||||||
|
|
||||||
%%
|
|
||||||
%% bin/emqttd
|
|
||||||
%%
|
|
||||||
%% {runner_script_dir, "$(cd ${0%/*} && pwd)"}.
|
|
||||||
{runner_base_dir, "${RUNNER_SCRIPT_DIR%/*}"}.
|
|
||||||
{runner_etc_dir, "$RUNNER_BASE_DIR/etc"}.
|
|
||||||
{runner_log_dir, "$RUNNER_BASE_DIR/log"}.
|
|
||||||
{pipe_dir, "/tmp/$RUNNER_SCRIPT/"}.
|
|
||||||
{runner_user, ""}.
|
|
61
rel/vm.args
61
rel/vm.args
|
@ -1,61 +0,0 @@
|
||||||
##-------------------------------------------------------------------------
|
|
||||||
## Name of the emqttd node: Name@Host
|
|
||||||
##
|
|
||||||
## NOTICE: The Host should be IP address or the fully qualified host name.
|
|
||||||
## The short hostname cannot work!
|
|
||||||
##-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
-name emqttd@127.0.0.1
|
|
||||||
# or
|
|
||||||
#-name emqttd@localhost.
|
|
||||||
|
|
||||||
## Cookie for distributed erlang
|
|
||||||
-setcookie emqttdsecretcookie
|
|
||||||
|
|
||||||
##-------------------------------------------------------------------------
|
|
||||||
## Flags
|
|
||||||
##-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
|
|
||||||
## (Disabled by default..use with caution!)
|
|
||||||
##-heart
|
|
||||||
-smp true
|
|
||||||
|
|
||||||
## Enable kernel poll and a few async threads
|
|
||||||
+K true
|
|
||||||
|
|
||||||
## 12 threads/core.
|
|
||||||
+A 48
|
|
||||||
|
|
||||||
## max process numbers
|
|
||||||
+P 8192
|
|
||||||
|
|
||||||
## Sets the maximum number of simultaneously existing ports for this system
|
|
||||||
+Q 8192
|
|
||||||
|
|
||||||
## max atom number
|
|
||||||
## +t
|
|
||||||
|
|
||||||
## Set the distribution buffer busy limit (dist_buf_busy_limit) in kilobytes.
|
|
||||||
## Valid range is 1-2097151. Default is 1024.
|
|
||||||
## +zdbbl 8192
|
|
||||||
|
|
||||||
## Set scheduler bind type.
|
|
||||||
## +sbt db
|
|
||||||
|
|
||||||
##-------------------------------------------------------------------------
|
|
||||||
## Env
|
|
||||||
##-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Increase number of concurrent ports/sockets, deprecated in R17
|
|
||||||
-env ERL_MAX_PORTS 8192
|
|
||||||
|
|
||||||
-env ERTS_MAX_PORTS 8192
|
|
||||||
|
|
||||||
## Mnesia and SSL will create temporary ets tables.
|
|
||||||
-env ERL_MAX_ETS_TABLES 1024
|
|
||||||
|
|
||||||
## Tweak GC to run more often
|
|
||||||
-env ERL_FULLSWEEP_AFTER 1000
|
|
||||||
|
|
||||||
-env ERL_CRASH_DUMP log/emqttd_crash.dump
|
|
Loading…
Reference in New Issue