From 5d73b9d474bfb2155a8947a2629226d48ff27462 Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Pelayo Date: Wed, 1 Oct 2025 12:29:01 +0000 Subject: [PATCH] Change the default keepalive timeout The default timeout of 5s is excessively low and causes issues under pressure. See https://github.com/jumpstarter-dev/jumpstarter/issues/674 for more details. Fixes-Issue: #674 --- packages/jumpstarter/jumpstarter/common/grpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jumpstarter/jumpstarter/common/grpc.py b/packages/jumpstarter/jumpstarter/common/grpc.py index c323e43d1..cf0387bc5 100644 --- a/packages/jumpstarter/jumpstarter/common/grpc.py +++ b/packages/jumpstarter/jumpstarter/common/grpc.py @@ -58,7 +58,7 @@ def _override_default_grpc_options(grpc_options: dict[str, str | int] | None) -> ("grpc.lb_policy_name", "round_robin"), # we keep a low keepalive time to avoid idle timeouts on cloud load balancers ("grpc.keepalive_time_ms", 20000), - ("grpc.keepalive_timeout_ms", 5000), + ("grpc.keepalive_timeout_ms", 180000), ("grpc.http2.max_pings_without_data", 0), ("grpc.keepalive_permit_without_calls", 1), )