How to retrieve currently applied node configuration from Riak v2.0+ -
showing applied configuration values
in v2.0+ of riak there new command option: riak config effective
which read tell current running values of riak.
at time, can snapshot of applied configurations through command line. listing of of configs applied in node
config changes applied on start of each node?
in multiple locations in riak documentation there reference like:
remember must stop , re-start each node when change storage backends or modify other configuration
problem:
however when made change setting (i've tested in both riak.conf , advanced.conf), see newest value when running: riak config effective
ie:
- start node:
riak start
- view current setting log level:
riak config effective | grep log.console.level
log.console.level = info
- change level debug (something output lot console.log)
- re-run:
riak config effective | grep log.console.level
, get:
log.console.level = debug
- checking console log file debug:
cat /var/log/riak/console.log | grep debug
give no results (indicating config change has not been applied)
so question is, how can retrieve , verify config setting each riak node running under?
when riak starts, creates 2 files: 'app..config' , 'vm..config'. default location in 'generated.configs' directory under platform data directory (usually /var/lib/riak).
these files contain settings in place when riak started. command riak config effective
processes current riak.conf , advanced.config files.
Comments
Post a Comment