Skip to Content
Web Caching
book

Web Caching

by Duane Wessels
June 2001
Intermediate to advanced
320 pages
9h 18m
English
O'Reilly Media, Inc.
Content preview from Web Caching

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

How Netflix scales microservices with application data caching

How Netflix scales microservices with application data caching

Scott Mansfield
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck
NGINX Cookbook

NGINX Cookbook

Tim Butler

Publisher Resources

ISBN: 156592536XCatalog PageErrata