Serving Photos at Scaaale: Caching and Storage
An Analysis of Facebook Photo Caching. Huang et al. Finding a Needle in a Haystack. Beaver et al. Vlad Niculae for CS6410 Most slides from Qi Huang (SOSP 2013) and Peter Vajgel (OSDI 2010)
Serving Photos at Scaaale : Caching and Storage An Analysis of - - PowerPoint PPT Presentation
Serving Photos at Scaaale : Caching and Storage An Analysis of Facebook Photo Caching. Huang et al. Finding a Needle in a Haystack. Beaver et al. Vlad Niculae for CS6410 Most slides from Qi Huang (SOSP 2013) and Peter Vajgel (OSDI 2010) Dynamic
An Analysis of Facebook Photo Caching. Huang et al. Finding a Needle in a Haystack. Beaver et al. Vlad Niculae for CS6410 Most slides from Qi Huang (SOSP 2013) and Peter Vajgel (OSDI 2010)
Dynamic (hard to cache; TAO) Static (photos, normally easy to cache)
Dynamic (hard to cache; TAO) Static (photos, normally easy to cache)
Dynamic (hard to cache; TAO) Static (photos, normally easy to cache)
CDN
Qi Huang, Ken Birman, Robbert van Renesse (Cornell), Wyatt Lloyd (Princeton, Facebook), Sanjeev Kumar, Harry C. Li (Facebook)
Dynamic (hard to cache; TAO) Static (photos, normally easy to cache) “Normal” site CDN hitrate ~99%
CDN
Dynamic (hard to cache; TAO) Static (photos, normally easy to cache) “Normal” site CDN hitrate ~99% For Facebook, CDN hitrate ~80%
CDN
Cache Layers Storage Backend
Facebook Edge Cache Datacenter
Browser Cache
Client Akamai
Origin Cache Backend
Cache layers
Facebook Edge Cache Datacenter
Browser Cache
Client Akamai
Origin Cache Backend
Cache layers (no access)
Facebook Edge Cache Datacenter
Browser Cache
Client
Origin Cache Backend
Cache layers Points of presence: Independent FIFO Main goal: reduce bandwidth
Facebook Edge Cache Datacenter
Browser Cache
Client
Origin Cache Backend
Cache layers Origin: Coordinated FIFO Main goal: traffic sheltering
Facebook Edge Cache Datacenter
Browser Cache
Client
Origin Cache Backend
Cache layers Origin: Coordinated. FIFO Main goal: traffic sheltering
hash
Facebook Edge Cache Datacenter
Browser Cache
Client
Origin Cache Backend
Cache layers
Instrument client JS Log successful requests. Correlate across layers.
Object-based
18
Object rank
77.2M 26.6M 11.2M 7.6M
Backend (Haystack) Browser Cache Edge Cache Origin Cache
PoP Client Data Center
65.5% 58.0% 31.8%
R
Traffic Share 65.5% 20.0% 4.6% 9.9%
21
22
Object rank
23
24
70% Haystack
10 20 30 40 50 60 70 80 90 100 A B C D E F G
Hit rates for each level (fig 4c)
Browser Edge Origin
Infinite Cache 65% 68% 59%
29
Infinite Cache
30
Cache Space More Recent L3 L2 L1 L0
31
68% 1/3x Infinite Cache
35
59%
Infinite Cache
36
14% Infinite Cache
37
Small working set
38
39
Atlanta 20% local 5% Dallas 35% D.C. 5% NYC 20% Miami 5% California 10% Chicago
Amplified working set
40
41
18%
42
Collaborative