复制集成员的状态总结

Number

Name

State Description

Vote

0

STARTUP

Not yet an active member of any set. All members start up in this state. The mongod parses the replica set configuration document while in STARTUP.

1

PRIMARY

The member in state primary is the only member that can accept write operations. 

Eligible to vote.

2

SECONDARY

A member in state secondary is replicating the data store. 

Eligible to vote.

3

RECOVERING

Members either perform startup self-checks, or transition from completing a rollback or resync

Eligible to vote.

5

STARTUP2

The member has joined the set and is running an initial sync. 

Eligible to vote.

6

UNKNOWN

The member's state, as seen from another member of the set, is not yet known.

7

ARBITER

Arbiters do not replicate data and exist solely to participate in elections. 

Eligible to vote.

8

DOWN

The member, as seen from another member of the set, is unreachable.

9

ROLLBACK

This member is actively performing a rollback.  Data is not available for reads from this member.

Starting in version 4.2, MongoDB kills all in-progress user operations when a member enters the ROLLBACK state.

Eligible to vote.

10

REMOVED

This member was once in a replica set but was subsequently removed.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值