Este conteúdo não está disponível no idioma selecionado.
3.4. Configure Server Hinting in Library Mode
In JBoss Data Grid's Library mode, Server Hinting is configured at the transport level. The following is a Server Hinting sample configuration:
<transport clusterName = "MyCluster"
machineId = "LinuxServer01"
rackId = "Rack01"
siteId = "US-WestCoast" />
As illustrated in the sample configuration, the following configuration attributes are used to configure Server Hinting in JBoss Data Grid:
- The
clusterNameattribute specifies the name assigned to the cluster. - The
machineIdattribute specifies the JVM instance that houses the original data. This is particularly useful for nodes with multiple JVMs and physical hosts with multiple virtual hosts. - The
rackIdparameter specifies the rack that contains the original data, so that other racks are used for backups. - The
siteIdparameter differentiates between nodes in different data centers replicating to each other.
The listed parameters are optional in a JBoss Data Grid configuration. However, if Server Hinting is not configured, JBoss Data Grid's distribution algorithms are allowed to store replications in the same node/data center/rack as the original data.