You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-29Lines changed: 27 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Percona MongoLink
1
+
# Percona Link for MongoDB
2
2
3
-
Percona MongoLink is a tool for replicating data from a source MongoDB cluster to a target MongoDB cluster. It supports cloning data, replicating changes, and managing collections and indexes.
3
+
Percona Link for MongoDB is a tool for replicating data from a source MongoDB cluster to a target MongoDB cluster. It supports cloning data, replicating changes, and managing collections and indexes.
4
4
5
5
## Features
6
6
@@ -24,8 +24,8 @@ Percona MongoLink is a tool for replicating data from a source MongoDB cluster t
@@ -34,30 +34,28 @@ Percona MongoLink is a tool for replicating data from a source MongoDB cluster t
34
34
make build
35
35
```
36
36
37
-
Alternatively, you can install MongoLink from the cloned repo using `go install`:
37
+
Alternatively, you can install PLM from the cloned repo using `go install`:
38
38
39
39
```sh
40
40
go install .
41
41
```
42
42
43
-
> This will install `percona-mongolink` into your `GOBIN` directory. If `GOBIN` is included in your `PATH`, you can run MongoLink by typing `percona-mongolink`in your terminal.
43
+
> This will install `plm` into your `GOBIN` directory. If `GOBIN` is included in your `PATH`, you can run Percona Link forMongoDB by typing `plm`in your terminal.
> Connections to the source and target must have `readPreference=primary` and `writeConcern=majority` explicitly or unset.
60
-
61
59
## Usage
62
60
63
61
### Starting the Replication
@@ -67,7 +65,7 @@ To start the replication process, you can either use the command-line interface
67
65
#### Using Command-Line Interface
68
66
69
67
```sh
70
-
bin/pml start
68
+
bin/plm start
71
69
```
72
70
73
71
#### Using HTTP API
@@ -86,7 +84,7 @@ To finalize the replication process, you can either use the command-line interfa
86
84
#### Using Command-Line Interface
87
85
88
86
```sh
89
-
bin/pml finalize
87
+
bin/plm finalize
90
88
```
91
89
92
90
#### Using HTTP API
@@ -102,7 +100,7 @@ To pause the replication process, you can either use the command-line interface
102
100
#### Using Command-Line Interface
103
101
104
102
```sh
105
-
bin/pml pause
103
+
bin/plm pause
106
104
```
107
105
108
106
#### Using HTTP API
@@ -118,7 +116,7 @@ To resume the replication process, you can either use the command-line interface
118
116
#### Using Command-Line Interface
119
117
120
118
```sh
121
-
bin/pml resume
119
+
bin/plm resume
122
120
```
123
121
124
122
#### Using HTTP API
@@ -134,7 +132,7 @@ To check the current status of the replication process, you can either use the c
134
132
#### Using Command-Line Interface
135
133
136
134
```sh
137
-
bin/pml status
135
+
bin/plm status
138
136
```
139
137
140
138
#### Using HTTP API
@@ -143,9 +141,9 @@ bin/pml status
143
141
curl http://localhost:2242/status
144
142
```
145
143
146
-
## MongoLink Options
144
+
## PLM Options
147
145
148
-
When starting the MongoLink server, you can use the following options:
146
+
When starting the PLM server, you can use the following options:
149
147
150
148
- `--port`: The port on which the server will listen (default: 2242)
151
149
- `--source`: The MongoDB connection string for the source cluster
@@ -157,7 +155,7 @@ When starting the MongoLink server, you can use the following options:
157
155
Example:
158
156
159
157
```sh
160
-
bin/pml \
158
+
bin/plm \
161
159
--source <source-mongodb-uri> \
162
160
--target <target-mongodb-uri> \
163
161
--port 2242 \
@@ -188,7 +186,7 @@ Example:
188
186
"message": "Cloned db_1.coll_1" }
189
187
190
188
{ "level": "info",
191
-
"s": "mongolink",
189
+
"s": "plm",
192
190
"elapsed_secs": 0,
193
191
"time": "2025-02-23 11:26:03.857",
194
192
"message": "Change replication stopped at 1740335163.1740335163 source cluster time" }
@@ -261,7 +259,7 @@ Resumes the replication process.
261
259
262
260
#### Request Body
263
261
264
-
- `fromFailure` (optional): Allows PML to resume from failed state
262
+
- `fromFailure` (optional): Allows PLM to resume from failed state
265
263
266
264
Example:
267
265
@@ -284,7 +282,7 @@ Example:
284
282
285
283
### GET /status
286
284
287
-
The /status endpoint provides the current state of the MongoLink replication process, including its progress, lag, and event processing details.
285
+
The /status endpoint provides the current state of the PLM replication process, including its progress, lag, and event processing details.
288
286
289
287
#### Response
290
288
@@ -359,25 +357,25 @@ To run the tests, use the following command:
359
357
poetry run pytest \
360
358
--source-uri <source-mongodb-uri> \
361
359
--target-uri <target-mongodb-uri> \
362
-
--mongolink-url http://localhost:2242 \
363
-
--mongolink-bin bin/pml_test
360
+
--plm_url http://localhost:2242 \
361
+
--plm-bin bin/plm_test
364
362
```
365
363
366
364
Alternatively, you can use environment variables:
367
365
368
366
```sh
369
367
export TEST_SOURCE_URI=<source-mongodb-uri>
370
368
export TEST_TARGET_URI=<target-mongodb-uri>
371
-
exportTEST_MONGOLINK_URL=http://localhost:2242
372
-
exportTEST_MONGOLINK_BIN=bin/pml_test
369
+
exportTEST_PLM_URL=http://localhost:2242
370
+
exportTEST_PLM_BIN=bin/plm_test
373
371
poetry run pytest
374
372
```
375
373
376
-
> The `--mongolink-bin` flag or `TEST_MONGOLINK_BIN` environment variable specifies the path to the MongoLink binary. This allows the test suite to manage the MongoLink process, ensuring it starts and stops as needed during the tests. If neither the flag nor the environment variable is provided, you must run MongoLink externally before running the tests.
374
+
> The `--plm-bin` flag or `TEST_PLM_BIN` environment variable specifies the path to the PLM binary. This allows the test suite to manage the PLM process, ensuring it starts and stops as needed during the tests. If neither the flag nor the environment variable is provided, you must run PLM externally before running the tests.
377
375
378
376
## Contributing
379
377
380
-
Contributions are welcome. Please open a [JIRA](https://perconadev.atlassian.net/jira/software/c/projects/PML/issues) issue describing the proposed change, then submit a pull request on GitHub.
378
+
Contributions are welcome. Please open a [JIRA](https://perconadev.atlassian.net/jira/software/c/projects/PLM/issues) issue describing the proposed change, then submit a pull request on GitHub.
0 commit comments