Skip to content

fix: increase SPOE processing timeout from 5s to 30s#96

Merged
oleksandr-nc merged 1 commit intomainfrom
fix/spoe-processing-timeout
Mar 24, 2026
Merged

fix: increase SPOE processing timeout from 5s to 30s#96
oleksandr-nc merged 1 commit intomainfrom
fix/spoe-processing-timeout

Conversation

@oleksandr-nc
Copy link
Contributor

Fixes Flaky test in AppAPI: nextcloud/app_api#783

The SPOE agent and K8s HTTP server share a Python asyncio event loop. During heavy K8s operations (deploy, stop, expose), the event loop can be blocked long enough that HAProxy's 5s SPOE processing timeout expires before the routing decision is returned.

This causes HAProxy to return 503 with <NOSRV> because no backend is selected.

Increase timeout processing to 30s in both SPOE engine configs. The SPOE handler itself completes in microseconds - the 30s headroom covers event loop contention during concurrent K8s API calls.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc oleksandr-nc requested a review from kyteinsky as a code owner March 24, 2026 08:28
@oleksandr-nc oleksandr-nc merged commit 66c7a27 into main Mar 24, 2026
3 checks passed
@oleksandr-nc oleksandr-nc deleted the fix/spoe-processing-timeout branch March 24, 2026 08:33
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