Wednesday 02 December 2026 22:24:35 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Primary

The replica-set member that accepts writes and coordinates the current leader role.

In a MongoDB replica set, the primary is the member currently elected to lead the cluster. It accepts write operations and coordinates replication by recording changes that secondary members copy. Only one member normally serves as primary at a time.

The primary role matters for both availability and security because leadership changes can expose problems in election, replication, or recovery logic. If the primary becomes unavailable, the replica set may elect another eligible member; lagging replicas can make this transition more complex. Defenders should keep MongoDB patched and monitor elections, replication lag, and crashes around promotions. A primary is a role, not a separate server type: a member can become primary or secondary as the cluster’s state changes.

← WIKICROOK index