TY - GEN
T1 - An analysis of Facebook photo caching
AU - Huang, Qi
AU - Birman, Ken
AU - Van Renesse, Robbert
AU - Lloyd, Wyatt
AU - Kumar, Sanjeev
AU - Li, Harry C.
PY - 2013
Y1 - 2013
N2 - This paper examines the workload of Facebook's photo-serving stack and the effectiveness of the many layers of caching it employs. Facebook's image-management infrastructure is complex and geographically distributed. It includes browser caches on end-user systems, Edge Caches at ∼20 PoPs, an Origin Cache, and for some kinds of images, additional caching via Akamai. The underlying image storage layer is widely distributed, and includes multiple data centers. We instrumented every Facebook-controlled layer of the stack and sampled the resulting event stream to obtain traces covering over 77 million requests for more than 1 million unique photos. This permits us to study traffic patterns, cache access patterns, geolocation of clients and servers, and to explore correlation between properties of the content and accesses. Our results (1) quantify the overall traffic percentages served by different layers: 65.5% browser cache, 20.0% Edge Cache, 4.6% Origin Cache, and 9.9% Backend storage, (2) reveal that a significant portion of photo requests are routed to remote PoPs and data centers as a consequence both of load-balancing and peering policy, (3) demonstrate the potential performance benefits of coordinating Edge Caches and adopting S4LRU eviction algorithms at both Edge and Origin layers, and (4) show that the popularity of photos is highly dependent on content age and conditionally dependent on the social-networking metrics we considered.
AB - This paper examines the workload of Facebook's photo-serving stack and the effectiveness of the many layers of caching it employs. Facebook's image-management infrastructure is complex and geographically distributed. It includes browser caches on end-user systems, Edge Caches at ∼20 PoPs, an Origin Cache, and for some kinds of images, additional caching via Akamai. The underlying image storage layer is widely distributed, and includes multiple data centers. We instrumented every Facebook-controlled layer of the stack and sampled the resulting event stream to obtain traces covering over 77 million requests for more than 1 million unique photos. This permits us to study traffic patterns, cache access patterns, geolocation of clients and servers, and to explore correlation between properties of the content and accesses. Our results (1) quantify the overall traffic percentages served by different layers: 65.5% browser cache, 20.0% Edge Cache, 4.6% Origin Cache, and 9.9% Backend storage, (2) reveal that a significant portion of photo requests are routed to remote PoPs and data centers as a consequence both of load-balancing and peering policy, (3) demonstrate the potential performance benefits of coordinating Edge Caches and adopting S4LRU eviction algorithms at both Edge and Origin layers, and (4) show that the popularity of photos is highly dependent on content age and conditionally dependent on the social-networking metrics we considered.
UR - http://www.scopus.com/inward/record.url?scp=84889650710&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84889650710&partnerID=8YFLogxK
U2 - 10.1145/2517349.2522722
DO - 10.1145/2517349.2522722
M3 - Conference contribution
AN - SCOPUS:84889650710
SN - 9781450323888
T3 - SOSP 2013 - Proceedings of the 24th ACM Symposium on Operating Systems Principles
SP - 167
EP - 181
BT - SOSP 2013 - Proceedings of the 24th ACM Symposium on Operating Systems Principles
T2 - 24th ACM Symposium on Operating Systems Principles, SOSP 2013
Y2 - 3 November 2013 through 6 November 2013
ER -