pub enum HealthStatus {
Green,
Yellow,
Red,
Unknown,
}Expand description
The traffic-light the cluster reports.
Variants§
Green
Every shard, primary and replica, is assigned.
Yellow
Every primary is assigned; some replica is not.
Red
At least one primary is unassigned — some data cannot be read at all.
Unknown
A colour this client does not know.
Implementations§
Source§impl HealthStatus
impl HealthStatus
Sourcepub fn is_usable(self) -> bool
pub fn is_usable(self) -> bool
Whether every document can be reached.
Yellow counts. A single-node cluster is yellow the moment an index has one replica configured, which is the default and which no single node can ever satisfy — so a readiness check that demanded green would fail on every developer machine and every scratch container forever.
Trait Implementations§
Source§impl Clone for HealthStatus
impl Clone for HealthStatus
impl Copy for HealthStatus
Source§impl Debug for HealthStatus
impl Debug for HealthStatus
Source§impl Display for HealthStatus
impl Display for HealthStatus
impl Eq for HealthStatus
Source§impl PartialEq for HealthStatus
impl PartialEq for HealthStatus
impl StructuralPartialEq for HealthStatus
Auto Trait Implementations§
impl Freeze for HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnsafeUnpin for HealthStatus
impl UnwindSafe for HealthStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more