heterogeneity and load balance in distributed hash tables
play

Heterogeneity and Load Balance in Distributed Hash Tables Brighten - PowerPoint PPT Presentation

Heterogeneity and Load Balance in Distributed Hash Tables Brighten Godfrey Joint Work with Ion Stoica Computer Science Division, UC Berkeley IEEE INFOCOM March 15, 2005 The goals Distributed Hash Tables partition an ID space among n nodes


  1. Heterogeneity and Load Balance in Distributed Hash Tables Brighten Godfrey Joint Work with Ion Stoica Computer Science Division, UC Berkeley IEEE INFOCOM March 15, 2005

  2. The goals • Distributed Hash Tables partition an ID space among n nodes – Typically: each node picks one random ID – Node owns region between its predecessor and its own ID – Some nodes get log n times their fair share of ID space • Goal 1: Fair partitioning of ID space – If load distributed uniformly in ID space, then this produces a load balanced system – Handle case of heterogeneous node capacities • Goal 2: Use heterogeneity to our advantage to reduce route length in overlay that connects nodes

  3. The goals • Distributed Hash Tables partition an ID space among n nodes – Typically: each node picks one random ID – Node owns region between its predecessor and its own ID – Some nodes get log n times their fair share of ID space • Goal 1: Fair partitioning of ID space – If load distributed uniformly in ID space, then this produces a load balanced system – Handle case of heterogeneous node capacities • Goal 2: Use heterogeneity to our advantage to reduce route length in overlay that connects nodes

  4. The goals • Distributed Hash Tables partition an ID space among n nodes – Typically: each node picks one random ID – Node owns region between its predecessor and its own ID – Some nodes get log n times their fair share of ID space • Goal 1: Fair partitioning of ID space – If load distributed uniformly in ID space, then this produces a load balanced system – Handle case of heterogeneous node capacities • Goal 2: Use heterogeneity to our advantage to reduce route length in overlay that connects nodes

  5. The goals • Distributed Hash Tables partition an ID space among n nodes – Typically: each node picks one random ID – Node owns region between its predecessor and its own ID – Some nodes get log n times their fair share of ID space • Goal 1: Fair partitioning of ID space – If load distributed uniformly in ID space, then this produces a load balanced system – Handle case of heterogeneous node capacities • Goal 2: Use heterogeneity to our advantage to reduce route length in overlay that connects nodes

  6. The goals • Distributed Hash Tables partition an ID space among n nodes – Typically: each node picks one random ID – Node owns region between its predecessor and its own ID – Some nodes get log n times their fair share of ID space • Goal 1: Fair partitioning of ID space – If load distributed uniformly in ID space, then this produces a load balanced system – Handle case of heterogeneous node capacities • Goal 2: Use heterogeneity to our advantage to reduce route length in overlay that connects nodes

  7. Model & performance metric • n nodes • Each node v has a capacity c v (e.g. bandwidth) • Average capacity is 1 , total capacity n • Share of node v is share( v ) = fraction of ID space that v owns . c v /n • Want low maximum share • Perfect partitioning has max. share = 1 .

  8. Basic Virtual Server Selection • Standard homogeneous case – Each node picks Θ(log n ) IDs (like simulating Θ(log n ) nodes) – Maximum share is O (1) with high probability (w.h.p.) in homo- geneous system Multiple disjoint segments • Heterogeneous case – Node v simulates Θ( c v log n ) nodes (discard low-capacity nodes) – Maximum share is O (1) w.h.p. for any capacity distribution Low capacity node High capacity node

  9. Basic-VSS: Problems • To route between nodes, construct an overlay network • With Θ(log n ) IDs, must maintain Θ(log n ) times as many overlay connections! • Other proposals use one ID per node, but... – all require reassignment of IDs in response to churn, and load movement is costly – none handles heterogeneity directly – some can’t compute node IDs as hash of IP address for security – some are limited in the achievable quality of load balance – some are complicated

  10. Low Cost Virtual Server Selection • Pick Θ( c v log n ) IDs for node of capacity c v as before... • ...but cluster them in a random fraction Θ( c v log n ) of the ID space n – Random starting location r – Pick Θ( c v log n ) IDs spaced at intervals of ≈ 1 n (with random perturbation) • Ownership of ID space is still in disjoint segments • Why does this help?

  11. Low Cost Virtual Server Selection • Pick Θ( c v log n ) IDs for node of capacity c v as before... • ...but cluster them in a random fraction Θ( c v log n ) of the ID space n – Random starting location r – Pick Θ( c v log n ) IDs spaced at intervals of ≈ 1 n (with random perturbation) • Ownership of ID space is still in disjoint segments • Why does this help?

  12. Low Cost Virtual Server Selection • Pick Θ( c v log n ) IDs for node of capacity c v as before... • ...but cluster them in a random fraction Θ( c v log n ) of the ID space n – Random starting location r – Pick Θ( c v log n ) IDs spaced at intervals of ≈ 1 n (with random perturbation) • Ownership of ID space is still in disjoint segments • Why does this help?

  13. Low Cost Virtual Server Selection • Pick Θ( c v log n ) IDs for node of capacity c v as before... • ...but cluster them in a random fraction Θ( c v log n ) of the ID space n – Random starting location r – Pick Θ( c v log n ) IDs spaced at intervals of ≈ 1 n (with random perturbation) • Ownership of ID space is still in disjoint segments • Why does this help?

  14. Low Cost Virtual Server Selection • Pick Θ( c v log n ) IDs for node of capacity c v as before... • ...but cluster them in a random fraction Θ( c v log n ) of the ID space n – Random starting location r – Pick Θ( c v log n ) IDs spaced at intervals of ≈ 1 n (with random perturbation) • Ownership of ID space is still in disjoint segments • Why does this help?

  15. Low Cost Virtual Server Selection • Pick Θ( c v log n ) IDs for node of capacity c v as before... • ...but cluster them in a random fraction Θ( c v log n ) of the ID space n – Random starting location r – Pick Θ( c v log n ) IDs spaced at intervals of ≈ 1 n (with random perturbation) • Ownership of ID space is still in disjoint segments • Why does this help?

  16. LC-VSS: Overlay Topology • When building overlay network, simulate ownership of contiguous fraction Θ( c v log n ) of ID space n Real Simulated • Routing ends at node simulating ownership of target ID, not real owner • But clustering of IDs ⇒ real owner is nearby in ID space ⇒ can complete route in O (1) more hops using successor links

  17. LC-VSS: Overlay Topology • When building overlay network, simulate ownership of contiguous fraction Θ( c v log n ) of ID space n Real Simulated Message • Routing ends at node simulating ownership of target ID, not real owner • But clustering of IDs ⇒ real owner is nearby in ID space ⇒ can complete route in O (1) more hops using successor links

  18. LC-VSS: Overlay Topology • When building overlay network, simulate ownership of contiguous fraction Θ( c v log n ) of ID space n Real Simulated Message • Routing ends at node simulating ownership of target ID, not real owner • But clustering of IDs ⇒ real owner is nearby in ID space ⇒ can complete route in O (1) more hops using successor links

  19. LC-VSS: Overlay Topology • When building overlay network, simulate ownership of contiguous fraction Θ( c v log n ) of ID space n Real Simulated Message • Routing ends at node simulating ownership of target ID, not real owner • But clustering of IDs ⇒ real owner is nearby in ID space ⇒ can complete route in O (1) more hops using successor links

  20. LC-VSS: Theoretical Properties • Works for any ring-based overlay topology – Y 0 : LC-VSS applied to Chord • Compared to single-ID case, – Node outdegree increases by at most a constant factor – Route length increases by at most an additive constant • Goal 1 : Load balance – Achieves maximum share of 1 + ε for any ε > 0 and any capacity distribution ∗ ...under some assumptions: sufficiently good approximation of n and average capacity, and sufficiently low capacity thresh- old below which nodes are discarded – Tradeoff: outdegree depends on ε

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend