Skip to content

Commit e285a57

Browse files
committed
feat(nsq): adding config file and changing log-level
1 parent d20a759 commit e285a57

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

rootfs/opt/nsq/bin/start-nsqd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ set -eo pipefail
33

44
export MAX_READY_COUNT=${MAX_READY_COUNT:-10000}
55
export DATA_PATH=${DATA_PATH:-/opt/nsq/data}
6-
exec nsqd -max-rdy-count "${MAX_READY_COUNT}" --data-path "${DATA_PATH}"
6+
export CONFIG_PATH=${CONFIG_PATH:-/opt/nsq/conf/nsqd.cfg}
7+
exec nsqd -config "${CONFIG_PATH}"

rootfs/opt/nsq/conf/nsqd.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## log verbosity level: debug, info, warn, error, or fatal
2+
log-level = "warn"
3+
verbose = false
4+
5+
## path to store disk-backed messages
6+
# data_path = "/opt/nsq/data"
7+
8+
## maximum RDY count for a client
9+
max_rdy_count = 10000

0 commit comments

Comments
 (0)