characterizing load imbalance in real world networked
play

Characterizing Load Imbalance in Real-World Networked Caches Qi - PowerPoint PPT Presentation

Characterizing Load Imbalance in Real-World Networked Caches Qi Huang Cornell U, Facebook Helga Gudmundsdottir Emory U, Reykjavik U Ymir Vigfusson Emory U, Reykjavik U Daniel A. Freedman Technion Ken Birman Cornell U Robbert van Renesse


  1. Characterizing Load Imbalance in Real-World Networked Caches Qi Huang Cornell U, Facebook Helga Gudmundsdottir Emory U, Reykjavik U Ymir Vigfusson Emory U, Reykjavik U Daniel A. Freedman Technion Ken Birman Cornell U Robbert van Renesse Cornell U

  2. Networked Caches in Real-World Web Stack Web Servers Get X X Caches Get X X Backend Store

  3. Partitioning Data Hash(A) � id: A type: USER name: Helga

  4. Partitioning Data Hash(1) � Shard 1 A

  5. Causes of Load Imbalance • Hashing schemes balance quantity of content per server. • However, content popularity varies! • Need to provision servers to handle peak load. • Lack of real-world data to verify suspicions.

  6. Questions • What is the state of load imbalance? • What contributes to load imbalance? • How effective are current techniques? • How might they be improved? Sampled production traffic in TAO , serving Facebook’s social graph.

  7. What is the State of Load Imbalance? Significant load imbalance observed in TAO.

  8. Possible Causes: Content Popularity Skewed content popularity observed at both shard and object level.

  9. Possible Causes: Hot Objects Very hot objects alone are not a major cause of load imbalance.

  10. Possible Causes: Hot Shards ������������������� ���� ���� ���� ���� ��� ����� ���� ���� ���������� Popular shards receive significantly higher load, compared to hot objects.

  11. How Effective are Current Techniques? • Hashing: Balance number of shards across servers. • Replication: Divide load of popular shards among servers. Hashing Replication libketama TAO Perfect None TAO Perfect • Metric: Maximum load versus average .

  12. Where We Are Today �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 TAO Perfect

  13. Where We Are Today �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 TAO Perfect 1.00

  14. Where We Are Today �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 TAO 1.25 Perfect 1.00

  15. Hashing Schemes w/o Replication �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 TAO 1.25 Perfect 1.00

  16. Hashing Schemes w/o Replication �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 TAO 1.25 Perfect 1.00

  17. Hashing Schemes w/o Replication �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.25 Perfect 1.00

  18. libketama Hashing �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.25 Perfect 1.00

  19. libketama Hashing �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 Perfect 1.00

  20. libketama Hashing �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 Perfect 1.41 1.00

  21. TAO: Room For Improvement �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 Perfect 1.41 1.00

  22. TAO: Room For Improvement �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 Perfect 1.41 1.18 1.00

  23. TAO: Room For Improvement �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 1.17 Perfect 1.41 1.18 1.00

  24. Streaming Replication �� ����������������������� �� �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 1.17 Perfect 1.41 1.18 1.00

  25. Streaming Replication Streaming with �� ����������������������� Perfect Hashing �� achieves max/avg 1.12 �� �� �� �� �� ��� ���� ����� ������������������������ Hashing Replication libketama TAO Perfect None 1.53 1.46 1.34 TAO 1.53 1.25 1.17 Perfect 1.41 1.18 1.00

  26. Summary and Future Work • Characterized how hashing and replication affect load imbalance. • Can streaming algorithms replicate content before its popularity surges? • Can we predict popularity spikes and prevent hotspots? Questions?

Recommend


More recommend