-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Monitoring emits many scary log messages on a freshly-installed cluster #40898
Comments
Pinging @elastic/es-core-features |
@DaveCTurner Any thought on how much time is considered "an unreasonably long time"? I can work on this ticket, if that's ok with you :) |
Great! Let's default to 30 seconds, starting from the cluster forming (i.e. the first call to |
Hey @kiawin are you still interested in this issue? If not, I could work on this. |
@mariaral thanks for your interest. please proceed 😄 |
Hello @DaveCTurner , |
@MariaL I think it'd be simpler to record the time at which the cluster forms (i.e. the first time that The current (relative) time is available in this class from |
@DaveCTurner thank you for taking a look. I initially tried your suggestion but since the |
That's not unreasonable, although in practice there'll always be more cluster state updates. Maybe |
Great suggestion @DaveCTurner! It seems to solve the issue. I will prepare a PR asap. |
Currently, when monitoring is enabled in a freshly-installed cluster, the non-master nodes log a warning message indicating that master may not have x-pack installed. The message is often printed even when the master does have x-pack installed but takes some time to setup the local exporter for monitoring. This commit adds the local exporter setting `wait_master.timeout` which defaults to 30 seconds. The setting configures the time that the non-master nodes should wait for master to setup monitoring. After the time elapses, they log a message to the user about possible missing x-pack installation on master. The logging of this warning was moved from `resolveBulk()` to `openBulk()` since `resolveBulk()` is called only on cluster updates and the message might not be logged until a new cluster update occurs. Closes elastic#40898
@DaveCTurner I just created a PR. Please take a look. |
Currently, when monitoring is enabled in a freshly-installed cluster, the non-master nodes log a warning message indicating that master may not have x-pack installed. The message is often printed even when the master does have x-pack installed but takes some time to setup the local exporter for monitoring. This commit adds the local exporter setting `wait_master.timeout` which defaults to 30 seconds. The setting configures the time that the non-master nodes should wait for master to setup monitoring. After the time elapses, they log a message to the user about possible missing x-pack installation on master. The logging of this warning was moved from `resolveBulk()` to `openBulk()` since `resolveBulk()` is called only on cluster updates and the message might not be logged until a new cluster update occurs. Closes #40898 Co-authored-by: Elastic Machine <[email protected]>
Thanks @mariaral and @danhermann for closing this 😁 |
Currently, when monitoring is enabled in a freshly-installed cluster, the non-master nodes log a warning message indicating that master may not have x-pack installed. The message is often printed even when the master does have x-pack installed but takes some time to setup the local exporter for monitoring. This commit adds the local exporter setting `wait_master.timeout` which defaults to 30 seconds. The setting configures the time that the non-master nodes should wait for master to setup monitoring. After the time elapses, they log a message to the user about possible missing x-pack installation on master. The logging of this warning was moved from `resolveBulk()` to `openBulk()` since `resolveBulk()` is called only on cluster updates and the message might not be logged until a new cluster update occurs. Closes elastic#40898 Co-authored-by: Elastic Machine <[email protected]>
* Delay warning about missing x-pack (#54265) Currently, when monitoring is enabled in a freshly-installed cluster, the non-master nodes log a warning message indicating that master may not have x-pack installed. The message is often printed even when the master does have x-pack installed but takes some time to setup the local exporter for monitoring. This commit adds the local exporter setting `wait_master.timeout` which defaults to 30 seconds. The setting configures the time that the non-master nodes should wait for master to setup monitoring. After the time elapses, they log a message to the user about possible missing x-pack installation on master. The logging of this warning was moved from `resolveBulk()` to `openBulk()` since `resolveBulk()` is called only on cluster updates and the message might not be logged until a new cluster update occurs. Closes #40898
When a new cluster starts up with monitoring enabled it emits multiple messages of the following form:
waiting for elected master node ... to setup local exporter [default_local] (does it have x-pack installed?)
This message is shown on nodes other than the elected master each time (except the first) they receive a cluster state update from the elected master in which monitoring is not completely set up (i.e. a template or an ingest pipeline is missing).
One explanation for this is that the elected master is not configured to set up monitoring, perhaps because it does not have X-pack installed (hence the
does it have x-pack installed?
). However when a cluster is first forming the master has quite a few things to do, and may not get around to setting up monitoring for some time.I think we should not emit this message until the node has been waiting an unreasonably long time for the master to set these things up.
I'm moving this comment from #28974 into its own issue because that issue appears to be about docs rather than about suppressing this warning.
The text was updated successfully, but these errors were encountered: