-
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
[Ingest Manager] Rate limit agent config update #70871
[Ingest Manager] Rate limit agent config update #70871
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
x-pack/plugins/ingest_manager/server/services/agents/checkin/rxjs_utils.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/ingest_manager/server/services/agents/checkin/rxjs_utils.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/ingest_manager/server/services/agents/checkin/rxjs_utils.ts
Outdated
Show resolved
Hide resolved
@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.agentConfigRollupRateLimitIntervalMs
andfleet.agentConfigRollupRateLimitRequestPerInterval
config 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