pub struct ObservedInstance {
pub handle: InstanceHandle,
pub node: u64,
pub backend: String,
pub endpoint: Endpoint,
pub region: Option<String>,
pub healthy: bool,
pub started_at: Option<u64>,
pub phase: ReplicaPhase,
pub snapshot: Option<Snapshot>,
}Expand description
Fields§
§handle: InstanceHandleThe replica’s handle.
node: u64The node it runs on (for Zero, the node holding its snapshot — restore
is same-node until live migration lands).
backend: StringThe backend that runs it.
endpoint: EndpointThe endpoint the gateway routes to (the last-known endpoint while Zero).
region: Option<String>The region of the node this replica runs on, denormalized from
Node::region at launch so the gateway’s nearest-replica LB (FA-8) can
tag the replica’s endpoint without a node lookup. #[serde(default)] keeps
older records (no field) deserializing — schema stays v1.
healthy: boolWhether the last health check passed (always false while Zero).
started_at: Option<u64>Wall-clock unix seconds the replica was launched, set by launch_one. The
reconcile loop uses it to give a freshly launched replica a startup grace (see
ComputeSpec::startup_grace_secs) before treating a Running-but-unhealthy
replica as a broken launch to stop + relaunch — so a slow-initializing image is
not killed mid-init. None (older records, or a restored replica) is treated as
past-grace, preserving the prior immediate-relaunch behavior. #[serde(default)]
keeps older records deserializing — schema stays v1.
phase: ReplicaPhaseLifecycle phase. #[serde(default)] keeps older records (no field)
deserializing as Running — schema stays v1.
snapshot: Option<Snapshot>The snapshot to restore from — Some iff phase == Zero.
Trait Implementations§
Source§impl Clone for ObservedInstance
impl Clone for ObservedInstance
Source§fn clone(&self) -> ObservedInstance
fn clone(&self) -> ObservedInstance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObservedInstance
impl Debug for ObservedInstance
Source§impl<'de> Deserialize<'de> for ObservedInstance
impl<'de> Deserialize<'de> for ObservedInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ObservedInstance
Source§impl PartialEq for ObservedInstance
impl PartialEq for ObservedInstance
Source§impl Serialize for ObservedInstance
impl Serialize for ObservedInstance
impl StructuralPartialEq for ObservedInstance
Auto Trait Implementations§
impl Freeze for ObservedInstance
impl RefUnwindSafe for ObservedInstance
impl Send for ObservedInstance
impl Sync for ObservedInstance
impl Unpin for ObservedInstance
impl UnsafeUnpin for ObservedInstance
impl UnwindSafe for ObservedInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.