Skip to content

Commit 90a9770

Browse files
Update content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md
Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com>
1 parent 285ea24 commit 90a9770

File tree

1 file changed

+13
-0
lines changed
  • content/integrate/redis-data-integration/data-pipelines/prepare-dbs

1 file changed

+13
-0
lines changed

content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ This guide describes the steps required to prepare a MongoDB database as a sourc
2424
- **Network access:** The RDI Collector must be able to connect to all MongoDB nodes in your deployment.
2525

2626
{{< note >}}The MongoDB connector is not capable of monitoring the changes of a standalone MongoDB server, since standalone servers do not have an oplog. The connector will work if the standalone server is converted to a replica set with one member.{{< /note >}}
27+
## Summary
28+
29+
The following table summarizes the steps to prepare a MongoDB database for RDI. The sections below explain the steps in more detail.
30+
31+
| Requirement | Description |
32+
|---------------------|-----------------------------------------------------------------------------|
33+
| MongoDB Topology | Replica Set, Sharded Cluster, or MongoDB Atlas |
34+
| User Roles | readAnyDatabase, clusterMonitor |
35+
| Oplog | Sufficient size for snapshot and streaming |
36+
| Pre/Post Images | Enable on collections **only if using a custom key** |
37+
| Connection String | Must include all hosts, replicaSet (if applicable), authSource, credentials |
38+
| MongoDB Atlas | **[SSL required](https://debezium.io/documentation/reference/stable/connectors/mongodb.html#mongodb-property-mongodb-ssl-enabled)**, provide root CA as `SOURCE_DB_CACERT` secret in RDI |
39+
| Network | RDI Collector must reach all MongoDB nodes on required ports |
2740

2841
## 1. Configure Oplog Size
2942
The Debezium MongoDB connector relies on the [oplog](https://www.mongodb.com/docs/manual/core/replica-set-oplog/) to capture changes from a replica set. The oplog is a fixed-size, capped collection. When it reaches its maximum size, it overwrites the oldest entries. If the connector is stopped and restarted, it attempts to resume from its last recorded position in the oplog. If that position has been overwritten, the connector may fail to start and report an invalid resume token error.

0 commit comments

Comments
 (0)