-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queue stats logging refinements #1875
base: develop-2.9
Are you sure you want to change the base?
queue stats logging refinements #1875
Conversation
this, to enable filtering specific queues into a separate lager sink
An example configuration with filtering:
|
Some comments, but no strong opinion against merging this as-is. I think there are issues if you upgrade riak, but have config items that are not included in the next riak release. So if we introduce this schema element in 2.9, anyone upgrading to 3.0 will need to remove it from riak.conf. I haven't verified this, working from memory. It probably makes sense to make the name more general (i.e. I'm happy for empty queues to be In general, looks fine to me. |
I have renamed the log frequency tunable as you suggested, and reverted separate log levels for zero/non-zero stats, in favor of it being controlled by another tunable, I'm going to create similar PRs for 3.0 and 3.2 branches. Indeed, adding a new parameter to riak.conf will cause a slight hiccup in the upgrade procedure, but once we add these tunables to the upcoming releases of 3.0 and 3.2 lines, we should be good. |
This PR has a few refinements to logging for 2.9.x users:
replrtq_logfrequency
in riak.conf. This tunable was already consulted but wasn't present in riak_kv.schema, resulting inapplication:get_value
on that key always returning the default value of 30 sec.queue_name
, to the periodic queue stats logging, to enable selective logging into separate lager sinks.