此内容没有您所选择的语言版本。
Chapter 30. Set Up Cross-Datacenter Replication
In Red Hat JBoss Data Grid, Cross-Datacenter Replication allows the administrator to create data backups in multiple clusters. These clusters can be at the same physical location or different ones. JBoss Data Grid's Cross-Site Replication implementation is based on JGroups'
RELAY2 protocol.
Cross-Datacenter Replication ensures data redundancy across clusters. Ideally, each of these clusters must be in a different physical location than the others.
30.1. Cross-Datacenter Replication Operations 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Red Hat JBoss Data Grid's Cross-Datacenter Replication operation is explained through the use of an example, as follows:
Example 30.1. Cross-Datacenter Replication Example
Figure 30.1. Cross-Datacenter Replication Example
Three sites are configured in this example:
LON, NYC and SFO. Each site hosts a running JBoss Data Grid cluster made up of three to four physical nodes.
The
Users cache is active in all three sites. Changes to the Users cache at the LON site is replicated at the other two sites. The Orders cache, however, is only available locally at the LON site because it is not replicated to the other sites.
The
Users cache can use different replication mechanisms each site. For example, it can back up data synchronously to SFO and asynchronously to NYC and LON.
The
Users cache can also have a different configuration from one site to another. For example, it can be configured as a distributed cache with numOwners set to 2 in the LON site, as a replicated cache in the NYC site and as a distributed cache with numOwners set to 1 in the SFO site.
JGroups is used for communication within each site as well as inter-site communication. Specifically, a JGroups protocol called
RELAY2 facilitates communication between sites. For more information, see Section D.4, “About RELAY2”