Storage and performance optimization of long tail key access in a social network

  • Authors:
  • John Liang;James Luo;Mark Drayton;Rajesh Nishtala;Richard Liu;Nick Hammer;Jason Taylor;Bill Jia

  • Affiliations:
  • Facebook, Menlo Park, CA;Facebook, Menlo Park, CA;Facebook, Menlo Park, CA;Facebook, Menlo Park, CA;Facebook, Menlo Park, CA;Facebook, Menlo Park, CA;Facebook, Menlo Park, CA;Facebook, Menlo Park, CA

  • Venue:
  • Proceedings of the 3rd International Workshop on Cloud Data and Platforms
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

In a social network, it is natural to have hot objects such as a celebrity's Facebook page. Duplicating hot object data in each cluster provides quick cache access and avoids stressing a single server's network or CPU resources. But duplicating cold data in each cache cluster consumes significant RAM. A more storage efficient way is to separate hot data from cold data and duplicate only hot data in each cache cluster within a data center. The cold data, or the long tail data, which is accessed much less frequently, has only one copy at a regional cache cluster. In this paper, a new sampling technique to capture all accesses to the same sampled keys is created. We then calculate the working set size for each key family for estimating the memory footprint. We introduce an important metric, duplication factor, as the ratio between the sum of each individual cluster's working set size and the regional working set size. We analyze why some key families have a higher duplication factor. It is important to separate hot keys and cold keys from the same key family with minimal overhead. We present a novel cache promotion algorithm based on key access probability. We also proposed a probability model based on the binomial distribution to predict the promotion probability with various promotion thresholds. Our experiment shows by shrinking the cluster level cache layer and having a fat regional level cache for cold data, we are able to achieve a higher combined cache hit ratio.