46
Chapter 6
Traffic Server Clusters
Changing clustering mode
To change clustering mode:
1. Telnet into the HP web cache appliance and select Shell Access as described in
Overview of Access
Methods‚ on page 7
.
2. Open the
records.config
file located in Traffic Server’s
config
directory with Vi.
3. Edit the following variable:
4. Save and close the
records.config
file.
5. Run the following command to apply the configuration changes.
traffic_line -x
6. Wait several minutes, then run the command
traffic_line -M
to restart the
traffic_manager
process on all the nodes in the cluster.
Adding and deleting nodes in a cluster
You can add a node or delete a node from a Traffic Server cluster at any time. When you add a new node to
the cluster, Traffic Server detects it automatically. When you remove a node from the cluster, Traffic Server
removes all references to the missing node.
Adding nodes to a cluster
Traffic Server can automatically detect new Traffic Server nodes on your network and add them to the cluster,
propagating the latest configuration information to the newcomer. This provides a convenient way to bootstrap
new machines.
If you have an existing web cache appliance installed and you want to add that appliance to the cluster, you do
not have to re-install the Traffic Server software on the node. Instead, you can edit certain configuration
variables on the existing Traffic Server. Follow the procedure below.
To add a cache appliance to a cluster:
Make sure that the appliance to be added has the same port assignments as those in the cluster. Also change
the cluster name to the same name as the appliance in the cluster. After inital configuration, by default the
cluster name is set the same as the node name.
1. Telnet into the HP web cache appliance and select Shell Access as described in
Overview of Access
Methods‚ on page 7
.
2. Using Vi, open the
records.config
file located in the Traffic Server’s
config
directory on the node
you want to add to the cluster.
Variable
Description
proxy.config.cluster.type
Set this variable to:
1 for full-clustering mode.
2 for management-only mode.
3 for no clustering.
IMPORTANT
The nodes in a cluster must be homogeneous; each node must be the same hardware
platform and must run the same version of the web cache appliance software.