Skip to content

Commit b40056b

Browse files
fuziontechclaude
andcommitted
Increase handover drain timeout from 5 minutes to 24 hours
The 5-minute drain timeout was too aggressive — long-running queries were being forcibly terminated during rolling deployments. Increase to 24 hours so existing connections can finish naturally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cf3d7db commit b40056b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controlplane/handover.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ func (cp *ControlPlane) handleHandoverRequest(conn net.Conn, handoverLn net.List
190190
select {
191191
case <-drainDone:
192192
slog.Info("All connections drained after handover.")
193-
case <-time.After(5 * time.Minute):
194-
slog.Warn("Handover drain timeout after 5 minutes, forcing exit.")
193+
case <-time.After(24 * time.Hour):
194+
slog.Warn("Handover drain timeout after 24 hours, forcing exit.")
195195
}
196196

197197
// Shut down workers

0 commit comments

Comments
 (0)