mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 17:21:23 +02:00
fix(geocoding): bump PROVIDER_TIMEOUT_MS to 20s for cold cross-LAN
Cold-start fetches from the mana-geocoding container to photon-self on mana-gpu (over WSL2 mirrored networking) consistently take >10s on the first probe and ~2s once warm. The previous 8s default caused the chain to false-mark photon-self unhealthy on every cold path, leaking to public photon for the next 30s health-cache window — and pinning the public-photon answer in the 7d cache (now shortened to 1h). Also wires the docker-compose macmini env to honor PROVIDER_TIMEOUT_MS and CACHE_PUBLIC_TTL_MS overrides so production picks up the new values without a code rebuild. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
962606b961
commit
8a5fad34df
3 changed files with 18 additions and 6 deletions
|
|
@ -93,11 +93,12 @@ export function loadConfig(): Config {
|
|||
'nominatim',
|
||||
]),
|
||||
healthCacheMs: parseInt(process.env.PROVIDER_HEALTH_CACHE_MS || '30000', 10),
|
||||
// 8 s default. Nominatim's cold-start DNS+TLS handshake can push the
|
||||
// first health probe past the older 5 s default, false-marking the
|
||||
// provider unhealthy for the next 30 s. 8 s survives a slow first
|
||||
// probe but still cuts off actually-stuck connections.
|
||||
timeoutMs: parseInt(process.env.PROVIDER_TIMEOUT_MS || '8000', 10),
|
||||
// 20 s default. Cold-start cross-LAN fetches to photon-self
|
||||
// (mana-gpu over WSL2 mirrored networking) consistently take
|
||||
// >10 s on the first probe and ~2 s once warm. Tighter timeouts
|
||||
// false-marked photon-self unhealthy on every cold path, leaking
|
||||
// to public photon for the duration of the 30 s health cache.
|
||||
timeoutMs: parseInt(process.env.PROVIDER_TIMEOUT_MS || '20000', 10),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue