add script to auto recover the failover #18
+377
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Conductor Failover Monitor
Overview
conductor-failover-monitor.pyis a monitoring daemon that watches the health of voting nodes in an op-conductor cluster and automatically promotes a non-voter to voter when all voters become unhealthy. This provides an automated disaster recovery mechanism for sequencer clusters.Problem Statement
In an op-conductor HA cluster, if all voting nodes become unhealthy simultaneously (e.g., due to regional outage or infrastructure failure), the cluster loses quorum and cannot elect a new leader. Manual intervention is required to promote a non-voter, which increases downtime.
Solution
This monitor continuously checks the health of all voter nodes. When it detects that all voters are unhealthy, it automatically:
conductor_addServerAsVoterrequests to all voter nodes (in case one recovers and can process the request)Configuration
Uses the same
config.tomlformat as op-conductor-opsUsage
Command Line Options
-c, --config./config.toml-i, --interval10--promote-retry-interval2--max-retries30-v, --verbosefalse--cert