diff --git a/config/vm.args.src b/config/vm.args.src index 772c97a..a243af6 100644 --- a/config/vm.args.src +++ b/config/vm.args.src @@ -1,15 +1,15 @@ --sname ${IOT_NODE_NAME:-iot} +-sname iot --setcookie ${IOT_COOKIE:-iot_cookie} +-setcookie iot_cookie +K true -+A ${IOT_ASYNC_THREADS:-128} ++A 128 -mnesia dir '"${IOT_MNESIA_DIR:-/var/lib/iot/mnesia/}"' --mnesia dump_log_write_threshold ${IOT_MNESIA_DUMP_LOG_WRITE_THRESHOLD:-50000} --mnesia dc_dump_limit ${IOT_MNESIA_DC_DUMP_LIMIT:-40} +-mnesia dump_log_write_threshold 50000 +-mnesia dc_dump_limit 40 --sbt ${IOT_SCHEDULER_BIND_TYPE:-db} +-sbt db -+P ${IOT_PROCESS_LIMIT:-1048576} -+t ${IOT_ATOM_LIMIT:-10485760} ++P 1048576 ++t 10485760 diff --git a/env.file b/env.file new file mode 100644 index 0000000..18e8599 --- /dev/null +++ b/env.file @@ -0,0 +1,17 @@ +[dev] +IOT_API_URL="http://127.0.0.1:18090/simulator" +ENDPOINT_ROOT_DIR="/usr/local/code/database/" +ENDPOINT_LOG_PATH="/usr/local/code/database/endpoint_log/unmatched_publish.log" +IOT_MNESIA_DIR="/var/lib/iot/mnesia/" + +[test] +IOT_API_URL="http://127.0.0.1/api/v1" +ENDPOINT_ROOT_DIR="/usr/local/code/database/" +ENDPOINT_LOG_PATH="/usr/local/code/database/endpoint_log/unmatched_publish.log" +IOT_MNESIA_DIR="/var/lib/iot/mnesia/" + +[prod] +IOT_API_URL="https://lgsiot.njau.edu.cn/api/v1/taskLog" +ENDPOINT_ROOT_DIR="/var/lib/endpoint/database/" +ENDPOINT_LOG_PATH="/var/lib/endpoint/endpoint_log/unmatched_publish.log" +IOT_MNESIA_DIR="/var/lib/iot/mnesia/"