处理配置文件
This commit is contained in:
parent
d65755b890
commit
037eb775b4
@ -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
|
||||
|
||||
17
env.file
Normal file
17
env.file
Normal 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/"
|
||||
Loading…
x
Reference in New Issue
Block a user