ClusterStatus interface

Signature:

export interface ClusterStatus

Properties

Property Type Description

configured

string[]

Every member the cluster expects (config plus those added at run time); a name here and not in members is a member that has not joined (yet, or again).

epoch

number

The epoch the current primary promoted under; 0 before any promotion this member knows of.

generation

number

The store’s generation: 1 until a forced standalone bumps it.

joined

boolean

False while a new member is still joining its cluster.

leader?

string

(Optional) The member this member believes leads the store.

members

ClusterMember[]

primary

boolean

Whether this member runs the NodeController and the providers.

self

string

This member’s node name.

standalone?

{ sinceMs: number; formerMembers: string[]; missing: string[]; }

(Optional) Present while the cluster runs as one member after a forced standalone.