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

Agent status timeout configurable #1306

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

alesnovak-s1
Copy link
Collaborator

Introducing a a new config key “agent_status_timeout” and setting it to 30s by default.

When the agent is under a heavier load it can take more than 5 seconds to generate status.
It's caused by thread switching. I've noticed such a switch is usually triggered by IO operations. Reading a 4 byte file can take 3 seconds in wall time.
Unfortunatelly there's no way in python to prioritize a thread.

Copy link

github-actions bot commented Oct 30, 2024

Test Results

     20 files  ±0       20 suites  ±0   31m 13s ⏱️ +16s
1 497 tests ±0  1 477 ✔️ ±0    20 💤 ±0  0 ±0 
7 156 runs  ±0  6 929 ✔️ ±0  227 💤 ±0  0 ±0 

Results for commit 27cb2d5. ± Comparison against base commit 0894391.

♻️ This comment has been updated with latest results.

@alesnovak-s1 alesnovak-s1 merged commit 86a478f into master Nov 1, 2024
110 checks passed
@alesnovak-s1 alesnovak-s1 deleted the DTIN-4769-agent-status-timeout branch November 1, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants