Skip to content

Share quota and breaker state across worker replicas #319

@coderabbitai

Description

@coderabbitai

Context

OverpassEnrichmentWorker stores quota and circuit-breaker counters in an in-memory Mutex, so every process/replica gets its own independent limits. In a multi-worker deployment, aggregate traffic can exceed max_daily_requests/max_daily_transfer_bytes and failures in one replica will not open the circuit for others, which defeats the intended protection against Overpass quota violations and cascading failures. This state needs a shared/coordinated backing store to enforce limits cluster-wide.

Related PR

Requester
@leynos

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions