Skip to content

Commit 3825141

Browse files
Added instructions on how to use multiple target endpoints
1 parent 19975b9 commit 3825141

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,22 @@ mongo:
190190
extra_params: ""
191191
```
192192
193+
***Note about using multiple target endpoints:*** You can configure multiple target MongoDB endpoints, as long as they use the same port. All you need to do is provide a comma separated list of nodes as shown below:
194+
195+
```yaml
196+
# -----------------------------------------------
197+
# Target MongoDB
198+
# -----------------------------------------------
199+
mongo:
200+
endpoint: "dan-ps-lab-mongos00.tp.int.percona.com,dan-ps-lab-mongos01.tp.int.percona.com"
201+
port: "27017"
202+
tls: false
203+
ca_file: ""
204+
tls_allow_invalid_hostnames: true
205+
# extra_params: "directConnection=true&replicaSet=rs&ssl=false"
206+
extra_params: ""
207+
```
208+
193209
Percona docStreamer configuration options are self explanatory and documented within the configuration file itself. The only parameters you have to pass to the application at runtime are the usernames for the source and destination environments, the passwords for each are interactive and you will be prompted for it accordingly. You can also configure environment variables so you don't have to type them if you prefer, the choice is yours.
194210
195211
In addition to the above, you may include any additional standard MongoDB connection parameters using the `extra_params` configuration.

0 commit comments

Comments
 (0)