open — the buffer overflowed (a sustained outage gets there through the retry path), writes
are rejected with DatabaseUnavailableError until the cooldown is over.
half-open — the cooldown expired & exactly one trial flush is being attempted. Success
closes the breaker, failure sends it back to open with the cooldown re-armed.
State of the collector's circuit breaker.
closed— normal operation, writes are accepted.open— the buffer overflowed (a sustained outage gets there through the retry path), writes are rejected withDatabaseUnavailableErroruntil the cooldown is over.half-open— the cooldown expired & exactly one trial flush is being attempted. Success closes the breaker, failure sends it back toopenwith the cooldown re-armed.