Description
Implement service discovery and leader election for event pollers to guarantee high availability.
Current Problem
Pollers run as single points of failure. Running multiple instances results in duplicate event processing and storage pollution.
Proposed Solution
Integrate Consul to coordinate leader election and partition poller tasks across healthy nodes.
Technical Tasks
Acceptance Criteria
- Only one leader poller ingestion loop is active per monitored contract
- Standby nodes detect leader failures and take over within 10 seconds
- Active pollers report health metrics to Consul registry
Testing Requirements
- Deploy multiple instances in Docker, terminate the leader, and assert standby promotion
Metadata
- Priority: High
- Difficulty: High
Description
Implement service discovery and leader election for event pollers to guarantee high availability.
Current Problem
Pollers run as single points of failure. Running multiple instances results in duplicate event processing and storage pollution.
Proposed Solution
Integrate Consul to coordinate leader election and partition poller tasks across healthy nodes.
Technical Tasks
Acceptance Criteria
Testing Requirements
Metadata