Skip to content

Commit

Permalink
feat(nsq): adding config file and changing log-level
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptophobia committed May 16, 2018
1 parent d20a759 commit e285a57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/opt/nsq/bin/start-nsqd
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ set -eo pipefail

export MAX_READY_COUNT=${MAX_READY_COUNT:-10000}
export DATA_PATH=${DATA_PATH:-/opt/nsq/data}
exec nsqd -max-rdy-count "${MAX_READY_COUNT}" --data-path "${DATA_PATH}"
export CONFIG_PATH=${CONFIG_PATH:-/opt/nsq/conf/nsqd.cfg}
exec nsqd -config "${CONFIG_PATH}"
9 changes: 9 additions & 0 deletions rootfs/opt/nsq/conf/nsqd.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## log verbosity level: debug, info, warn, error, or fatal
log-level = "warn"
verbose = false

## path to store disk-backed messages
# data_path = "/opt/nsq/data"

## maximum RDY count for a client
max_rdy_count = 10000

0 comments on commit e285a57

Please sign in to comment.