MemberRemoved
Defined in: src/cluster/ClusterEvents.ts:74
Member removed from the cluster. Fires on two distinct paths:
- Definitive removal —
handleLeave(peer sentleave) andevaluateDowning(force-down via aDowningProvider) mark the address as a tombstone: the entry stays in the localmembersmap withstatus === 'removed'and aremovedAttimestamp, so stale gossip from a slow peer can’t resurrect the address. The tombstone is reclaimed bytombstonePruneTickoncetombstoneTtlMs(default 24 h) has elapsed — see #75 for the full lifecycle. - FD-driven — the failure detector’s elapsed-time
unreachable → down → removedcascade. Here the entry is deleted outright (no tombstone) so a healed partition can re-discover the peer.
Public APIs (getMembers, upMembers, reachableMembers) skip
removed entries, so most user code stays unaffected. Code that
iterates the raw membership view directly should check
member.status !== 'removed' (or use member.isReachable(),
which already returns false for removed). An attempt to
Cluster.join on the same host:port after MemberRemoved will
still work — the framework detects the new incarnation via
mergeMember’s wall-clock version epoch and supersedes the
tombstone. See tests/cluster.test.ts → “a node that
gracefully left can rejoin on the same address”.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MemberRemoved(
member):MemberRemoved
Defined in: src/cluster/ClusterEvents.ts:74
Parameters
Section titled “Parameters”member
Section titled “member”Returns
Section titled “Returns”MemberRemoved
Properties
Section titled “Properties”member
Section titled “member”
readonlymember:Member
Defined in: src/cluster/ClusterEvents.ts:74