-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Problem Description
The /healthz endpoint in tee-worker currently uses a fixed window for error counting, resetting every 10 minutes. This leads to potential inaccuracies in health status reporting.
Acceptance Criteria
- Replace the fixed window logic with a rolling window (e.g., last 10 minutes).
- Ensure the
/healthzendpoint correctly accumulates errors over the rolling window. - Document the new logic in the codebase.
- Verify that the
/readyzendpoint behaves as expected post-implementation.
Relevant Code References
- Fixed window logic: health.go#L26
- Error count reset: health.go#L51
Additional Notes
- This issue overlaps with the
/readyzendpoint's behavior. Clarify if the same logic applies to both endpoints. - Consider revisiting the overall healthcheck architecture for simplicity and reliability.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels