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

Increase backoff interval between watching requests #715

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crate/operator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ async def startup(settings: kopf.OperatorSettings, **_kwargs):
settings.watching.server_timeout = 300
# Total number of seconds for a whole watch request per aiohttp:
# https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientTimeout.total
settings.watching.client_timeout = 300
settings.watching.client_timeout = (
310 # slightly higher to avoid early disconnection
)
# Timeout for attempting to connect to the peer per aiohttp:
# https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientTimeout.sock_connect
settings.watching.connect_timeout = 30
# Wait for that many seconds between watching events
settings.watching.reconnect_backoff = 1
settings.watching.reconnect_backoff = 2.0

# Only start the prometheus server in non-testing mode.
if not config.TESTING:
Expand Down