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
+30-30Lines changed: 30 additions & 30 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 Link for MongoDB
1
+
# Percona ClusterSync for MongoDB
2
2
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.
3
+
Percona ClusterSync 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 Link for MongoDB is a tool for replicating data from a source MongoDB cl
@@ -34,26 +34,26 @@ Percona Link for MongoDB is a tool for replicating data from a source MongoDB cl
34
34
make build
35
35
```
36
36
37
-
Alternatively, you can install PLM from the cloned repo using `go install`:
37
+
Alternatively, you can install PCSM from the cloned repo using `go install`:
38
38
39
39
```sh
40
40
go install .
41
41
```
42
42
43
-
> This will install `plm` into your `GOBIN` directory. If `GOBIN` is included in your `PATH`, you can run Percona LinkforMongoDB by typing `plm`in your terminal.
43
+
> This will install `pcsm` into your `GOBIN` directory. If `GOBIN` is included in your `PATH`, you can run Percona ClusterSyncforMongoDB by typing `pcsm`in your terminal.
@@ -65,7 +65,7 @@ To start the replication process, you can either use the command-line interface
65
65
#### Using Command-Line Interface
66
66
67
67
```sh
68
-
bin/plm start
68
+
bin/pcsm start
69
69
```
70
70
71
71
#### Using HTTP API
@@ -84,7 +84,7 @@ To finalize the replication process, you can either use the command-line interfa
84
84
#### Using Command-Line Interface
85
85
86
86
```sh
87
-
bin/plm finalize
87
+
bin/pcsm finalize
88
88
```
89
89
90
90
#### Using HTTP API
@@ -100,7 +100,7 @@ To pause the replication process, you can either use the command-line interface
100
100
#### Using Command-Line Interface
101
101
102
102
```sh
103
-
bin/plm pause
103
+
bin/pcsm pause
104
104
```
105
105
106
106
#### Using HTTP API
@@ -116,7 +116,7 @@ To resume the replication process, you can either use the command-line interface
116
116
#### Using Command-Line Interface
117
117
118
118
```sh
119
-
bin/plm resume
119
+
bin/pcsm resume
120
120
```
121
121
122
122
#### Using HTTP API
@@ -132,7 +132,7 @@ To check the current status of the replication process, you can either use the c
132
132
#### Using Command-Line Interface
133
133
134
134
```sh
135
-
bin/plm status
135
+
bin/pcsm status
136
136
```
137
137
138
138
#### Using HTTP API
@@ -141,9 +141,9 @@ bin/plm status
141
141
curl http://localhost:2242/status
142
142
```
143
143
144
-
## PLM Options
144
+
## PCSM Options
145
145
146
-
When starting the PLM server, you can use the following options:
146
+
When starting the PCSM server, you can use the following options:
147
147
148
148
- `--port`: The port on which the server will listen (default: 2242)
149
149
- `--source`: The MongoDB connection string for the source cluster
@@ -155,7 +155,7 @@ When starting the PLM server, you can use the following options:
155
155
Example:
156
156
157
157
```sh
158
-
bin/plm \
158
+
bin/pcsm \
159
159
--source <source-mongodb-uri> \
160
160
--target <target-mongodb-uri> \
161
161
--port 2242 \
@@ -165,9 +165,9 @@ bin/plm \
165
165
166
166
## Environment Variables
167
167
168
-
- `PLM_SOURCE_URI`: MongoDB connection string for the source cluster.
169
-
- `PLM_TARGET_URI`: MongoDB connection string for the target cluster.
170
-
- `PLM_MONGODB_CLI_OPERATION_TIMEOUT`: Timeout for MongoDB client operations; accepts Go durations like `30s`, `2m`, `1h` (default: `5m`).
168
+
- `PCSM_SOURCE_URI`: MongoDB connection string for the source cluster.
169
+
- `PCSM_TARGET_URI`: MongoDB connection string for the target cluster.
170
+
- `PCSM_MONGODB_CLI_OPERATION_TIMEOUT`: Timeout for MongoDB client operations; accepts Go durations like `30s`, `2m`, `1h` (default: `5m`).
171
171
172
172
## Log JSON Fields
173
173
@@ -192,7 +192,7 @@ Example:
192
192
"message": "Cloned db_1.coll_1" }
193
193
194
194
{ "level": "info",
195
-
"s": "plm",
195
+
"s": "pcsm",
196
196
"elapsed_secs": 0,
197
197
"time": "2025-02-23 11:26:03.857",
198
198
"message": "Change replication stopped at 1740335163.1740335163 source cluster time" }
@@ -265,7 +265,7 @@ Resumes the replication process.
265
265
266
266
#### Request Body
267
267
268
-
- `fromFailure` (optional): Allows PLM to resume from failed state
268
+
- `fromFailure` (optional): Allows PCSM to resume from failed state
269
269
270
270
Example:
271
271
@@ -288,7 +288,7 @@ Example:
288
288
289
289
### GET /status
290
290
291
-
The /status endpoint provides the current state of the PLM replication process, including its progress, lag, and event processing details.
291
+
The /status endpoint provides the current state of the PCSM replication process, including its progress, lag, and event processing details.
292
292
293
293
#### Response
294
294
@@ -363,25 +363,25 @@ To run the tests, use the following command:
363
363
poetry run pytest \
364
364
--source-uri <source-mongodb-uri> \
365
365
--target-uri <target-mongodb-uri> \
366
-
--plm_url http://localhost:2242 \
367
-
--plm-bin bin/plm_test
366
+
--pcsm_url http://localhost:2242 \
367
+
--pcsm-bin bin/pcsm_test
368
368
```
369
369
370
370
Alternatively, you can use environment variables:
371
371
372
372
```sh
373
373
export TEST_SOURCE_URI=<source-mongodb-uri>
374
374
export TEST_TARGET_URI=<target-mongodb-uri>
375
-
exportTEST_PLM_URL=http://localhost:2242
376
-
exportTEST_PLM_BIN=bin/plm_test
375
+
exportTEST_PCSM_URL=http://localhost:2242
376
+
exportTEST_PCSM_BIN=bin/pcsm_test
377
377
poetry run pytest
378
378
```
379
379
380
-
> 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.
380
+
> The `--pcsm-bin` flag or `TEST_PCSM_BIN` environment variable specifies the path to the PCSM binary. This allows the test suite to manage the PCSM process, ensuring it starts and stops as needed during the tests. If neither the flag nor the environment variable is provided, you must run PCSM externally before running the tests.
381
381
382
382
## Contributing
383
383
384
-
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.
384
+
Contributions are welcome. Please open a [JIRA](https://perconadev.atlassian.net/jira/software/c/projects/PCSM/issues) issue describing the proposed change, then submit a pull request on GitHub.
0 commit comments