Title: Aging Through Cascaded Caches: Performance Issues in the Distribution of Web Content'
1Aging Through Cascaded CachesPerformance Issues
in the Distribution of Web Content.
- Edith Cohen
- ATT Labs-research
Haim Kaplan Tel-Aviv University
2HTTP Freshness Control
Cache-directives
- Cached copies have
- Freshness lifetime
- Age (elapsed time since fetched from origin)
- TTL (Time to Live)
- freshness lifetime age
- Expired copies must be validated before they can
be used (request constitutes a cache miss).
header
Body (content)
3Aging of Copies
Freshness Lifetime 10 hours
4Aging of Copies
900am
Age 1 TTL 9
Freshness Lifetime 10 hours
5Aging of Copies
600pm
Freshness Lifetime 10 hours
6Aging thru Cascaded Caches
proxy caches
reverse-proxy cache
7Aging thru Cascaded Caches
proxy caches
500pm
reverse-proxy cache
Age 9 TTL 1
8Aging thru Cascaded Caches
proxy caches
600pm
reverse-proxy cache
!! !!
9Aging thru Cascaded Caches
proxy caches
600pm
reverse-proxy cache
10TTL of a Cached Copy
TTL
From Origin
M
M
From Cache
Freshness-lifetime
Requests at client cache
t
11Age-Induced Performance Issues for Cascaded Caches
- Caches are often cascaded (path between web
server and end-user includes 2 or more caches.). - Copies obtained thru a cache are less effective
than copies obtained thru an origin server. - Reverse proxies increase validation traffic
!! - More misses at downstream caches mean
- Increased traffic between cascaded caches.
- Increased user-perceived latency.
12Research Questions
- How does miss-rate depend on the configuration of
upstream cache(s) and on request patterns ? - Can upstream caches improve performance by
proactively reducing content age ? how? - Can downstream caches improve performance by
better selection or use of a source?
Our analysis
- Request sequences Arbitrary, Poisson, Pareto,
fixed-frequency, Traces. - Models for Cache/Source/Object relation
Authoritative, Independent, Exclusive.
13Basic Relationship Modelscache/source/object
- Authoritative Origin server 0 age copies.
- Exclusive all misses directed to the same
cache. - Independent each miss is directed to a different
independent upstream cache.
14Basic Models
Object has fixed freshness-lifetime of T. Miss at
time t results in a copy with age
- Authoritative age(t) 0
- Exclusive age(t) T - (ta) mod T
- Independent age(t) e U0,T
Theorem On all sequences, the number of misses
obeys Authoritative lt Exclusive lt Independent
Theorem Exclusive lt 2Authoritative Independen
t lt eAuthoritative
15TTL of Supplied Copy
Source
TTL
Freshness-lifetime
t
Requests Received at source
16How Much More Traffic?
Miss-rate for different configurations
17Rejuvenation at Source Caches
Rejuvenation refresh your copy pre-term once its
TTL drops below a certain fraction v of the
Lifetime duration.
TTL
v0.5
source
24h
12h
t
Requests at client
18Rejuvenations Basic Tradeoff
Downstream Client caches
Upstream cache
origin
Is increase/decrease monotone in V (?)
19Interesting Dependence on V
- Independent(v) ltgt Exclusive(v)
- Independent(v) is monotone if v1 gt v2,
- Independent(v1) gt Independent(v2)
- Exclusive(v) is not monotone
- (miss-rate can increase !!)
- Integral 1/v (synchronized rejuvenation)
Exclusive(v) lt Independent(v) and is monotone
(Pareto, Poisson, not with fixed-frequency).
20(No Transcript)
21(No Transcript)
22How Can Non-integral 1/v Increase Client Misses?
Copy at client is not synchronized with
source. When it expires, the rejuv source has an
aged copy.
TTL
Upstream Cache
Downstream Client Cache
Pre-term refreshes
Freshness-lifetime
t
23Why Integral 1/v Works Well?
Cached copies remain synchronized
TTL
Upstream Cache
v0.5
Downstream Client Cache
Pre-term refreshes
Freshness-lifetime
t
24Some Conclusions
- Configuration Origin (Authoritative) is best.
Otherwise, use a consistent upstream cache per
object (Exclusive). - No-cache request headers resulting sporadic
refreshes may increase misses at other client
caches. (But it is possible to compensate). - Rejuvenation potentially very effective, but a
good parameter setting (synchronized refreshes)
is crucial. - Behavior patterns Similar for Poisson, Pareto,
traces, (temporal locality). Different for
fixed-frequency. - For more go to http//www.research.att.com/edith
- Full versions of Cohen, Kaplan SIGCOMM 2001
- Cohen, Halperin,
Kaplan, ICALP 2001