520 likes | 653 Views
The Only Constant is Change: Incorporating Time-Varying Bandwidth Reservations in Data Centers. Di Xie, Ning Ding , Y. Charlie Hu, Ramana Kompella. Cloud Computing is Hot. Private Cluster. Key Factors for Cloud Viability. Cost Performance. Performance Variability i n Cloud.
E N D
The Only Constant is Change: Incorporating Time-Varying Bandwidth Reservations in Data Centers Di Xie, Ning Ding, Y. Charlie Hu, Ramana Kompella
Cloud Computing is Hot Private Cluster
Key Factors for Cloud Viability • Cost • Performance
Performance Variability in Cloud • BW variation in cloud due to contention [Schad’10 VLDB] • Causing unpredictable performance
Network performance variability • Data analytics on an isolated cluster Map Reduce Job Results Completion Time 4 hours Enterprise • Tenant
Network performance variability • Data analytics on an isolated cluster Map Reduce Job Map Reduce Job Results Results Completion Time 4 hours Enterprise • Tenant • Tenant • Data analytics in a multi-tenant datacenter Completion Time 10-16 hours Datacenter Variable network performance can inflate the job completion time
Network performance variability • Data analytics on an isolated cluster Map Reduce Job Map Reduce Job Results Results Completion Time 4 hours Enterprise • Tenant • Tenant • Data analytics in a multi-tenant datacenter Completion Time 10-16 hours Datacenter Variable tenant costs Expected cost (based on 4 hour completion time) = $100 Actual cost = $250-400
Network performance variability • Data analytics on an isolated cluster Map Reduce Job Map Reduce Job Results Results Completion Time 4 hours Enterprise • Tenant • Tenant • Unpredictability of application performance and tenant costs is a key hindrance to cloud adoption • Key Contributor: Network performance variation • Data analytics in a multi-tenant datacenter Completion Time 10-16 hours Datacenter Variable tenant costs Expected cost (based on 4 hour completion time) = $100 Actual cost = $250-400
Reserving BW in Data Centers • SecondNet [Guo’10] • Per VM-pair, per VM access bandwidth reservation • Oktopus [Ballani’11] • Virtual Cluster (VC) • Virtual Oversubscribed Cluster (VOC)
How BW Reservation Works Only fixed-BW reservation Request <N, B> Bandwidth B Time Virtual Switch 0 T . . . N VMs Virtual Cluster Model 2. Allocate and enforce the model 1. Determine the model
Network Usage for MapReduce Jobs Hadoop Sort, 4GB per VM
Network Usage for MapReduce Jobs Hadoop Sort, 4GB per VM Hadoop Word Count, 2GB per VM
Network Usage for MapReduce Jobs Hadoop Sort, 4GB per VM Hadoop Word Count, 2GB per VM Hive Join, 6GB per VM
Network Usage for MapReduce Jobs Hadoop Sort, 4GB per VM Hadoop Word Count, 2GB per VM Hive Aggregation, 2GB per VM Hive Join, 6GB per VM
Network Usage for MapReduce Jobs Hadoop Sort, 4GB per VM Time-varying network usage Hadoop Word Count, 2GB per VM Hive Aggregation, 2GB per VM Hive Join, 6GB per VM
Motivating Example • 4 machines, 2 VMs/machine, non-oversubscribed network • Hadoop Sort • N: 4 VMs • B: 500Mbps/VM Not enough BW 1Gbps 500Mbps 500Mbps 500Mbps
Motivating Example • 4 machines, 2 VMs/machine, non-oversubscribed network • Hadoop Sort • N: 4 VMs • B: 500Mbps/VM 1Gbps 500Mbps
Under Fixed-BW Reservation Model 1Gbps Bandwidth 500 500Mbps Job1 Job2 Job3 Time 0 5 10 15 20 25 30 Virtual Cluster Model
Under Time-Varying Reservation Model Hadoop Sort 1Gbps Bandwidth 500 500Mbps Job2 Job3 Job4 Job5 Job1 Time 0 5 10 15 20 25 30 TIVC Model Doubling VM, network utilization and the job throughput J5 J3 J1 J4 J2
Temporally-Interleaved Virtual Cluster (TIVC) • Key idea: Time-Varying BW Reservations • Compared to fixed-BW reservation • Improves utilization of data center • Better network utilization • Better VM utilization • Increases cloud provider’s revenue • Reduces cloud user’s cost • Without sacrificing job performance
Challenges in Realizing TIVC Q1: What are right model functions? Q2: How to automatically derive the models? Bandwidth Bandwidth B B Time Time Virtual Switch 0 T 0 T Request <N, B> Request <N, B(t)> . . . N VMs Virtual Cluster Model
Challenges in Realizing TIVC Q3: How to efficiently allocate TIVC? Q4: How to enforce TIVC?
Challenges in Realizing TIVC • What are the right model functions? • How to automatically derive the models? • How to efficiently allocate TIVC? • How to enforce TIVC?
How to Model Time-Varying BW? Hadoop Hive Join
TIVC Models Virtual Cluster T32 T11
Challenges in Realizing TIVC • What are the right model functions? • How to automatically derive the models? • How to efficiently allocate TIVC? • How to enforce TIVC?
Possible Approach • “White-box” approach • Given source code and data of cloud application, analyze quantitative networking requirement • Very difficult in practice • Observation: Many jobs are repeated many times • E.g., 40% jobs are recurring in Bing’s production data center [Agarwal’12] • Of course, data itself may change across runs, but size remains about the same
Our Approach • Solution: “Black-box” profiling based approach • Collect traffic trace from profiling run • Derive TIVC model from traffic trace • Profiling: Same configuration as production runs • Same number of VMs • Same input data size per VM • Same job/VM configuration How much BW should we reserve to the application?
Impact of BW Capping No-elongation BW threshold
Choosing BW Cap • Tradeoff between performance and cost • Cap > threshold: same performance, costs more • Cap < threshold: lower performance, may cost less • Our Approach: Expose tradeoff to user • Profile under different BW caps • Expose run times and cost to user • User picks the appropriate BW cap Only below threshold ones
From Profiling to Model Generation • Collect traffic trace from each VM • Instantaneous throughput of 10ms bin • Generate models for individual VMs • Combine to obtain overall job’s TIVC model • Simplify allocation by working with one model • Does not lose efficiency since per-VM models are roughly similar for MapReduce-like applications
Generate Model for Individual VM • Choose Bb • Periods where B > Bb, set to Bcap Bcap BW Bb Time
Challenges in Realizing TIVC • What are the right model functions? • How to automatically derive the models? • How to efficiently allocate TIVC? • How to enforce TIVC?
TIVC Allocation Algorithm • Spatio-temporal allocation algorithm • Extends VC allocation algorithm to time dimension • Employs dynamic programming • Chooses lowest level subtree • Properties • Locality aware • Efficient and scalable • 99th percentile 28ms on a 64,000-VM data center in scheduling 5,000 jobs
Challenges in Realizing TIVC • What are the right model functions? • How to automatically derive the models? • How to efficiently allocate TIVC? • How to enforce TIVC?
Enforcing TIVC Reservation • Possible to enforce completely in hypervisor • Does not have control over upper level links • Requires online rate monitoring and feedback • Increases hypervisor overhead and complexity • Enforcing BW reservation in switches • Most small jobs will fit into a rack • Only a few large jobs cross the core • Avoid complexity in hypervisors
Challenges in Realizing TIVC • What are the right model functions? • How to automatically derive the models? • How to efficiently allocate TIVC? • How to enforce TIVC?
Proteus: Implementing TIVC Models 1. Determine the model 2. Allocate and enforce the model
Evaluation • Large-scale simulation • Performance • Cost • Allocation algorithm • Prototype implementation • Small-scale testbed
Simulation Setup • 3-level tree topology • 16,000 Hosts x 4 VMs • 4:1 oversubscription • Workload • N: exponential distribution around mean 49 • B(t): derive from real Hadoop apps 50Gbps 20 Aggr Switch … 10Gbps 20 ToR Switch … … 1Gbps 40 Hosts … … … …
Batched Jobs • Scenario: 5,000 time-insensitive jobs 1/3 of each type All rest results are for mixed Completion time reduction 42% 21% 23% 35%
Varying Oversubscription and Job Size 25.8% reduction for non-oversubscribed network
Dynamically Arriving Jobs • Scenario: Accommodate users’ requests in shared data center • 5,000 jobsarrives dynamically with varying loads Rejected: VC: 9.5% TIVC: 3.4%
Analysis: Higher Concurrency • Under 80% load 28% higher VM utilization 28% higher revenue Rejected jobs are large Charge VMs • 7% higher job concurrency VM
Testbed Experiment • Setup • 18 machines • Real 30 MapReduce jobs • 10 Sort • 10 Hive Join • 10 Hive Aggre.
Testbed Result Baseline suffers at variability of completion time, TIVC achieves similar performance as VC TIVC finishes job faster than VC, Baseline finishes the fastest