Oleg, if you want bidirectional replication, you should have:
dc1->dc2.enabled = true
dc2->dc1.enabled = true
... in _both_ DCs. The replication topology should be consistent across
all DCs, generally. Otherwise DCs will disagree on what should get
replicated and you'll likely encounter confusing behavior.
So the topology is global, but you can use the --clusters argument to
localize a driver instance to a specific DC:
# in dc1:
$ connect-mirror-maker.sh --clusters dc1 ...
# in dc2:
$ connect-mirror-maker.sh --clusters dc2 ...
Ryanne
On Fri, Sep 25, 2020, 3:06 AM Oleg Osipov <oleg.alex.osipov@gmail.com>
wrote:
> Hello!
> KIP-382 states the following
> "For cross-datacenter replication (XDCR), each datacenter should have a
> single Connect cluster which pulls records from the other data centers via
> source connectors. Replication may fan-out within each datacenter via sink
> connectors."
>
> It looks like, here we have unidirectional replication.
> Assume, we have two datacenters DC1 and DC2, so I may run MM2 with the
> configuration in DC1:
> dc1->dc2.enabled = true
> dc2->dc1.enabled = true
> Is it correct? Will I have bidirectional replication?
>
>
dc1->dc2.enabled = true
dc2->dc1.enabled = true
... in _both_ DCs. The replication topology should be consistent across
all DCs, generally. Otherwise DCs will disagree on what should get
replicated and you'll likely encounter confusing behavior.
So the topology is global, but you can use the --clusters argument to
localize a driver instance to a specific DC:
# in dc1:
$ connect-mirror-maker.sh --clusters dc1 ...
# in dc2:
$ connect-mirror-maker.sh --clusters dc2 ...
Ryanne
On Fri, Sep 25, 2020, 3:06 AM Oleg Osipov <oleg.alex.osipov@gmail.com>
wrote:
> Hello!
> KIP-382 states the following
> "For cross-datacenter replication (XDCR), each datacenter should have a
> single Connect cluster which pulls records from the other data centers via
> source connectors. Replication may fan-out within each datacenter via sink
> connectors."
>
> It looks like, here we have unidirectional replication.
> Assume, we have two datacenters DC1 and DC2, so I may run MM2 with the
> configuration in DC1:
> dc1->dc2.enabled = true
> dc2->dc1.enabled = true
> Is it correct? Will I have bidirectional replication?
>
>
Comments
Post a Comment