Scale Preset should prevent Thundering Herd issue with many Agents #4469
Labels
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team
Describe the enhancement:
The scale preset introduced in elastic/kibana#166870 and #3797 is a great start to make agent ingestion more scalable. However, assuming one wants to ingest using thousand of agents, there is a high risk of a thundering herd problem. If Elastic starts choking the the agents reconnect and retry logic further increases the load on the cluster. This might kick the entire system over the edge.
This should be addressed with further options being tuned by the preset.
Describe a specific use case for the enhancement or feature:
The scale preset should adjust the following additional options:
backoff.init
andbackoff.max
should use a higher default and leverage a jitter. There is currently no jitter in the backoff which leads to a synchronized retry across all agents.max_retries
should be reduced for metric data sets (but not logs). It is better to focus on delivering recent data then retrying the delivery of outdated scrapes. This will act as a form of back pressure to ensure a single failure does not lead to further increased load on the server side.What is the definition of done?
Better defaults with no actions needed by users.
Implementation tasks
The text was updated successfully, but these errors were encountered: