-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Log all index settings updates at INFO level #52871
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
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Settings) |
For example, in 7.6.0 the following commands ...
... yield the following logs ...
|
We discussed this today and agreed that consistency is good, and therefore we should log all index settings updates. We also discussed whether we should demote these to |
++ Log index setting updates at INFO level. Here is one scenario that such logging would be helpful for troubleshooting.
|
If the master logged |
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Most updates to index settings are handled by a settings update consumer registered via
IndexScopedSettings#addSettingsUpdateConsumer
. In contrast, the settings defined inIndexMetaData
(index.blocks.*
,index.priority
, etc.) are consumed directly from theSettings
object instead. Changes to index settings that are consumed via a settings update consumer result in anINFO
-level log message (see e.g. #49969). Changes to directly-consumed settings do not automatically result in any log messages, and we explicitly handle some special cases likeindex.number_of_replicas
elsewhere.I think this is confusing since from a user's perspective there's no way to distinguish these two classes of index settings. A user seeing that some settings updates are logged may wrongly infer that the lack of logging of other settings updates means that those other settings were not updated.
Should we make this consistent? Consistency is good, but noisier logs are bad.
The text was updated successfully, but these errors were encountered: