From 037eb775b453129f65d571ce52d905004d7ab582 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sat, 30 May 2026 16:16:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/vm.args.src | 16 ++++++++-------- env.file | 17 +++++++++++++++++ 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 env.file 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/"