[Ingest Manager] Rate limit agent config update#70871
[Ingest Manager] Rate limit agent config update#70871nchaulet merged 4 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
jfsiii
left a comment
There was a problem hiding this comment.
LGTM, but I'm not experienced with rxjs specifically.
I think the improvements are reason enough to merge. We can benchmark, and improve further later.
|
@elasticmachine merge upstream |
💚 Build SucceededBuild metricsSaved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
|
Excited to try this out! I see have both I think the user doesn't mind too much what the |
Summary
Resolve #70250
Currently in a scenario with a lot of agents, updating an agent config cause Kibana to be not responsive.
Rate limit the creation of new agent config action to not block Kibana.
The rate limit is configurable using
fleet.agentConfigRollupRateLimitIntervalMsandfleet.agentConfigRollupRateLimitRequestPerIntervalconfig variables.Tests
Locally I enrolled 2000 agents and triggered a config change, it's still causing a spike in the event loop, but Kibana is usable.
Before
Kibana was not responsive (not able to switch between kibana)

After