Riverstone Networks RS Switch Router User Guide Release 8.0 22-21
Web Hosting Configuration Web Caching
weighted round robin, a variation of the round-robin policy where the RS selects the cache server
according to its assigned weight
weighted hash.
When you select either weighted round robin or weighted hash, you will need to specify the weight of the server group
with the web-cache set server-options command.
The following example specifies that the weighted round-robin policy will be used to distribute the specified address
range across the cache servers:

Specifying a Connection Threshold

By default, the RS will redirect up to 2000 HTTP requests to a web caching server. You can configure the maximum
number of connections that each server can handle.
The following example sets the maximum number of connections to 200:
Note This command limits the number of connections for each server in the group, not
the total number of connections for the group.

Verifying Servers

The RS can verify the state of the cache server by sending a ping to the server at 5-second intervals. If the RS does not
receive a reply from a server after four ping requests, the server is considered to be “down.”
If you specify that the RS use TCP connection requests to check the gateway (instead of sending ICMP echo requests),
the RS checks that an application session on the server can be established by sending a TCP connection request to the
application on the configured port of the server at 15-second intervals. If the RS does not receive a reply from the
application after four tries, the application is considered to be “down.”
You can change the intervals at which pings or handshakes are attempted and the number of times that the RS retries
the ping or handshake before considering the server or application to be “down.”
In the following example, the servers in the weblist1 server group will be pinged at 7-second intervals. If the RS does
not receive a reply after 3 ping requests, the server will be considered “down.”
rs(config)# web-cache testweb1 selection-policy weighted-round-robin range
135.142.179.14 135.142.179.21
rs(config)# web-cache testweb1 set server-options webgrp1 wrr-weight 2
rs(config)# web-cache testweb1 set maximum-connections webgrp1 200
rs(config)# web-cache testweb1 set server-options weblist1 ping-tries 3
ping-int 7