Logger options in riak.conf #2
martinsumner
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current riak.conf schema allows the log format to modified within loggeer, as well as the destination.
The logger configuraiton that gets produced is not, though, backwards compatible with previous releases - i.e. crash.log etc.
There exists riak_logger which will allow for a backwards compatible configuration to be provided. So it would be good if it were possible to produce this output from the default riak.conf (and for it to be the default).
There is also the issue of backend logging, which can be relatively verbose when LSM trees are used. For eleveldb this logs to a file within the database itself, however the leveled backend prints to the erlang.log (using
io:format/2
). As part of release 3.4, leveled will log via logger - however, it should be configurable where it should log to i.e. there should be two options:There will be a
backend.policy
for selecting these options.Likewise, TictacAAE exchanges are relatively verbose - this was a conscious decision prompted by a frustration with the lack of logging within the old AAE system. So likewise these should support
log
/divert
options.A number of long-lived process have been added to Riak in the past few years, where these processes heartbeat into logs metrics on a regular basis. This was to fit-in with an observability policy at the customer funding the changes, but is not to everyone's liking. So there should also be a
metric.policy
- that supports the log and divert options, but also anignore
option to not log heartbeat metrics at all.The WIP for changing riak_logger to support this is here.
This can then be added to riak.conf as here.
The basic approach is to add a
log_type
element to the log metadata, and use thatlog_type
to include/exclude these logs from different handlers.There are some outstanding questions:
ignore
backend and tictcaaae logs.Beta Was this translation helpful? Give feedback.
All reactions