Skip to content
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

[Heartbeat] Adjust State loader timeout to reasonable value #36676

Closed
vigneshshanmugam opened this issue Sep 25, 2023 · 1 comment · Fixed by #37028
Closed

[Heartbeat] Adjust State loader timeout to reasonable value #36676

vigneshshanmugam opened this issue Sep 25, 2023 · 1 comment · Fixed by #37028
Labels
bug good first issue Indicates a good issue for first-time contributors Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v8.11.0

Comments

@vigneshshanmugam
Copy link
Member

Summary

Heartbeat uses state loader to get the last status from the ES cluster and loads the current monitor state after the monitor has been successfully ran. The ES loader has a backoff of 3 retries with a 90 second Default Request timeout which in case of connection failures extend the duration of a monitor run leading to skipped executions.

Proposal

These higher values of timeouts cannot be applied on the SAAS Service where we are running in tight loops and want the next successive check to be run for a given monitor within the next scheduled interval which could be 1 or 3m. To overview these scenarios, we have to adjust the ES default transport timeout to the reasonable timeout that is similar to the State loader connection establishment timeouts.

I proposed, we keep the search timeout to less than 3 seconds and keep the 3 retries as we have currently. Thoughts?

@vigneshshanmugam vigneshshanmugam added bug Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v8.11.0 labels Sep 25, 2023
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (Team:Uptime)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Indicates a good issue for first-time contributors Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v8.11.0
Projects
None yet
3 participants