-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Investigate Kibana Alerting amount of configuration pulls #161382
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
Instead of doing 5 GETs, could we merge those into a single MGET? |
It's not clear to me who's making these calls. I believe that I think we're going to have to step through the code in alerting, with some instrumentation on those ES GET calls (I guess somewhere in UI settings) to see if we can figure out where these are coming from. It's not clear to me that we realized this was a UI Settings thing - which seems very odd to me - my first thought that this was related to all the other seemingly duplicate calls we make. These ones? Dunno. So, I'm going to put this back into the triage bucket, for our next session. I think someone should do some time-boxed investigation to try to find out why these calls are being made - we can then try to figure out how to fix this as the next work item. |
Similar comment as #161229 (comment)
It seems to be a pattern whenever loading the config SO that a has privilege check occurs right before. Perhaps we're in a sufficient state now to close this GitHub issue? |
Kibana: 8.8.1
When looking at the instrumentation of Kibana Node.JS I can see what is happening behind the scenes when a simple Kibana ES Query alert is run.
I observe a total of 5 calls to
Elasticsearch: GET /.kibana_8.8.1/_doc/strava%3Aconfig%3A8.8.1
which don't make that much sense, especially as it seems those are always wrapped withhas_privileges
calls. Shouldn't that be handled by single call? It's a bit related to this discussion: #161229When looking at all spans that are part of this the 5x config pull might still seem insignificant, but that is only because it is an unused and bored cluster. Imagine a cluster that is under heavy load and needs to provide 5 times the same data, accompanied with the has_privileges calls.
The text was updated successfully, but these errors were encountered: