class documentation
class AutoClusterFailover: (source)
Constructor: AutoClusterFailover(primary, secondary, check_interval_ms, failover_threshold, switch_back_threshold)
Cluster-level automatic failover configuration for Client.
| Method | __init__ |
Create an automatic failover configuration. |
| Method | __repr__ |
Undocumented |
| Instance Variable | check |
Undocumented |
| Instance Variable | failover |
Undocumented |
| Instance Variable | primary |
Undocumented |
| Instance Variable | secondary |
Undocumented |
| Instance Variable | switch |
Undocumented |
def __init__(self, primary:
ServiceInfo, secondary: list[ ServiceInfo], check_interval_ms: int = 5000, failover_threshold: int = 1, switch_back_threshold: int = 1):
(source)
¶
Create an automatic failover configuration.
| Parameters | |
primary:ServiceInfo | The preferred cluster to use. |
secondary:list[ServiceInfo] | Ordered fallback clusters to probe when the primary becomes unavailable. |
checkint, default 5000 | Probe interval in milliseconds. |
failoverint, default 1 | Number of consecutive probe failures required before failover. |
switchint, default 1 | Number of consecutive successful primary probes required before switching back. |