Examples

The following is a fictitious CARP membership table that shows the global information section followed by the list of array members. The three array members should each appear on one line. These lines are too long to fit on the page, so they are wrapped around and indented:

Proxy Array Information/1.0
ArrayEnabled: 1
ConfigID: 12345
ArrayName: My-Array
ListTTL: 3600

proxy1.isp.net 10.2.3.4 3128 http://proxy.isp.net/carp.txt
    SmartCache-v1 21600 UP 1 2048
proxy2.isp.net 10.2.3.5 3128 http://proxy.isp.net/carp.txt
    SmartCache-v1 20127 UP 1 2048
proxy3.isp.net 10.2.3.6 3128 http://proxy.isp.net/carp.txt
    SmartCache-v1 22928 UP 1 2048

The following tables may be useful to developers who want to verify their implementation. Table C-1 is a list of proxy names and load factors. I took the program described previously and added printf statements to print the hash values, RLF, and LFM.

Table C-1. Proxy Array Values

HostnameHash ValueLoad FactorRLFLFM
test1.ircache.net0x9601032010.1428570.869442
test2.web-cache.com0x84965f0f10.1428570.869442
test3.squid-cache.org0x4f5d733220.2857141.064844
test4.packet-pushers.com0xa79af67030.4285711.242318

Table C-2 consists of hash values and Table C-3 shows CARP scores for five different URIs. The four scores correspond to the four proxy names given earlier. The score values are truncated (not rounded) after the decimal point to improve the readability of this table.

Table C-2. URI Hash Values

Get Web Caching now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.