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
@@ -513,26 +513,96 @@ NOTE: Please, enable `ignite-rest-http` and `ignite-json` to be able to run `cdc
513
513
514
514
Examples for reference:
515
515
516
+
* Help message
517
+
518
+
```
519
+
./cdc-start-up.sh --help
520
+
```
521
+
516
522
* Start Ignite node with specified properties:
523
+
524
+
To start an Ignite cluster node, use `--ignite` or `-i` command with `cdc-start-up.sh`. You also need to specify properties holder directory.
525
+
526
+
There are currently 2 examples for 2 clusters, that you can run sumalteniously. You can find them under `$IGNITE_HOME/examples/config/cdc-start-up/cluster-1` and `$IGNITE_HOME/examples/config/cdc-start-up/cluster-2` as `ignite-cdc.properties`. These files contains all independent settings that you can tinker for your needs.
527
+
528
+
NOTE: All properties files are preconfigured to work out of the box.
* Start IgniteToIgnite CDC thin client with specified properties:
534
+
535
+
* Start CDC clients with specified properties:
536
+
537
+
** To start any CDC client node, use `--cdc-client` or `-c` command with `cdc-start-up.sh`. In addition, you have to specify CDC client mode and properties holder directory for the source cluster (as in the previous example).
538
+
539
+
** There are 5 options you can specify CDC client mode from. Take a look at `--help` command output to learn about them.
540
+
541
+
** You can optionaly activate both clusters at CDC client start-up with `--activate-cluster`. You need this for steady data replication. You can also use `control.sh` capabilities to activate clusters manually.
542
+
543
+
NOTE: Start both clusters (as in previous example with Ignite nodes) before starting CDC client
544
+
545
+
Here is an example on how to start Active-Passive inter-cluster communication with 2 separate nodes and one thin CDC client for Ignite-to-Ignite replication from cluster 1 to cluster 2 (Run the commands independently):
* Start a whole replication system with specified strategy and properties for both clusters:
571
+
572
+
** Use `--active-active` for Active-Active replication and `--active-passive` for Active-Passive replication.
573
+
574
+
** You should provide properties files paths for both cluster nodes in the end of the command
575
+
576
+
** By default, this script uses Ignite clients (thick) for replication. You can optionally use `--with-kafka` to transfer data through Kafka, and `--thin` to use thin clients for connections to the destination clusters.
577
+
578
+
NOTE: There is no need to preactivate clusters, as the script will do it for you.
579
+
580
+
To repeat the replication example from the previous point, you can use the following:
* You can check CDC replication with `--check-cdc`. Use it in parallel with Active-Passive/Active-Active replication. To start CDC check for proposed entry:
NOTE: With Active-Passive strategy there is no point to put data in the 2nd cluster, as in these examples the data is replicated from the first only
605
+
`cluster-1` is an active part since its properties' directory goes first in the command. In this case there is no reason to push data to the second cluster during the check step, as the data is not replicated from the second cluster.
536
606
537
607
NOTE: Try to play with version value to see how the conflict resolver works. We propose the following sequence of operations with Active-Active:
0 commit comments