From 921095f0a224c4f412a0e22ec8c661eee0145740 Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Sat, 18 Jul 2026 12:32:27 -0700 Subject: [PATCH] fix: relax Francis DB usage while HA is still WIP (#1602) Co-authored-by: Claude --- backend/internal/bootstrap/actors_bootstrap.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/internal/bootstrap/actors_bootstrap.go b/backend/internal/bootstrap/actors_bootstrap.go index 7a697d45..d497364b 100644 --- a/backend/internal/bootstrap/actors_bootstrap.go +++ b/backend/internal/bootstrap/actors_bootstrap.go @@ -49,6 +49,12 @@ func NewActors(o NewActorsOpts) (*local.Host, map[string]*ratelimit.RateLimitSer local.WithLogger(log.With("scope", "actor-host")), local.WithRuntimePSKs(psk), local.WithShutdownGracePeriod(10 * time.Second), + // TODO: Tweak these values once Pocket ID fully supports horizontal scaling. + // The relaxed intervals are appropriate for a single active host, but should be + // tuned for lower latency and better distribution across a multi-host cluster. + local.WithHostHealthCheckDeadline(90 * time.Second), + local.WithAlarmsPollInterval(5 * time.Minute), + local.WithAlarmsFetchAheadInterval(5 * time.Minute), } // Add the database connection