About this task
Used with the Domain Naming System (DNS) server or hosts
file, you can configure and override the host that is published with
the
publishHost property. Now, you have more
fine-grained control over the communication that flows between clients
and servers, which also gives you the ability to optimize the communication
between nodes in the data grid. For example, the following diagram
illustrates how you can connect clients to the public Internet Protocol
(IP) (1.1.1.x) and connect servers to the private IP (2.2.2.x). In
this example, the catalog and container servers have two host names
for each network card,
A* for publicly available
IP addresses and
B* for private IP addresses.
Figure 1. The topology for the publishHost property.
The C* host name represents the new value
of the publishHost property that is used as the
generic host name to publish. It is also an alternative to using A* or B* because A* names
are not appropriate for servers that you want to communicate on a
private network, B* names are not appropriate for
clients that you want to communicate over a public network. It will
allow you to select between the alternative public and private addresses
of servers.