Skip to content

Commit

Permalink
PBM-1383 - highlight more word every and mention election process (#…
Browse files Browse the repository at this point in the history
…204)


* exclude arbiter `mongod`
* excludes arbiters, as done elsewhere
* highligt every node

---------

Co-authored-by: Anastasia Alexandrova <[email protected]>
  • Loading branch information
sleto-it and nastena1606 authored Sep 10, 2024
1 parent d0ffdb4 commit 4b5e92f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions docs/details/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

Percona Backup for MongoDB consists of the following components:

* [`pbm-agent`](../reference/glossary.md#pbm-agent) is a process running on every `mongod` node within the cluster or within a replica set that performs backup and restore operations.
* [`pbm-agent`](../reference/glossary.md#pbm-agent) is a process running on **every** `mongod` node that is not an arbiter node within the cluster or within a replica set that performs backup and restore operations.

* [`pbm` CLI](../reference/glossary.md#pbm-cli) is a command-line utility that instructs `pbm-agents` to perform an operation.

* [PBM Control collections](../reference/glossary.md#pbm-control-collections) are special collections in MongoDB that store the configuration data and backup states. Both `pbm` CLI and `pbm-agent` use PBM Control collections to check backup status in MongoDB and communicate with each other.


* Remote backup storage is where Percona Backup for MongoDB saves backups. It can be either [an S3 compatible storage](../reference/glossary.md#s3-compatible-storage) or a filesystem-type storage.

The following diagram illustrates how Percona Backup for MongoDB components communicate with MongoDB.

![image](../_images/pbm-architecture.png){ align=center}

8 changes: 6 additions & 2 deletions docs/details/pbm-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

A `pbm-agent` is a process that runs backup, restore, delete, and other operations available with Percona Backup for MongoDB.

A `pbm-agent` instance must run for each `mongod` instance. This includes replica set nodes that are currently secondaries and config server replica set nodes in a sharded cluster.
A `pbm-agent` instance must run for **every** `mongod` instance that is not an arbiter node. This includes replica set nodes that are currently secondaries and config server replica set nodes in a sharded cluster.

An operation is triggered when the [`pbm` CLI](../reference/glossary.md#pbm-cli) makes an update to the [PBM Control collection](../reference/glossary.md#pbm-control-collections). All `pbm-agents` monitor changes to the PBM control collections, but only one `pbm-agent` in each replica set will be elected to execute an operation. The elections are done by a random choice among secondary nodes. If no secondary nodes respond, then the `pbm-agent` on the primary node is elected for an operation.

The elected `pbm-agent` acquires a lock for an operation. This prevents mutually exclusive operations like backup and restore to be executed simultaneously.

??? info "Nomination and election process within PBM"

If the `pbm-agent` running on the primary node of the replica set or on the primary node of the config replica set fails, the backup will not start as these agents are responsible for internal nomination process. You must therefore ensure that all the `pbm-agent` processes are up and running.

When the operation is complete, the `pbm-agent` releases the lock and updates the PBM control collections.

A single `pbm-agent` is involved with only one cluster (or non-sharded replica set). The `pbm` CLI utility can connect to any cluster to which it has network access, so it is possible for one user to list and launch backups or restores on many clusters.
A single `pbm-agent` is involved with only one cluster (or non-sharded replica set). The `pbm` CLI utility can connect to any cluster to which it has network access, so it is possible for one user to list and launch backups or restores on many clusters.
4 changes: 2 additions & 2 deletions docs/install/initial-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The following diagram outlines the installation and setup steps:

![image](../_images/setup.png)

After you [installed Percona Backup for MongoDB](../installation.md) on every server with the `mongod` node that is not an arbiter node, complete the following setup steps:
After you [installed Percona Backup for MongoDB](../installation.md) on **every** server with the `mongod` node that is not an arbiter node, complete the following setup steps:

1. [Configure authentication in MongoDB](configure-authentication.md).

Expand All @@ -14,4 +14,4 @@ After you [installed Percona Backup for MongoDB](../installation.md) on every se

## Next steps

[Configure authentication :material-arrow-right:](configure-authentication.md){.md-button}
[Configure authentication :material-arrow-right:](configure-authentication.md){.md-button}

0 comments on commit 4b5e92f

Please sign in to comment.