elasecutor elastic executor scheduling in data analytics
play

Elasecutor: Elastic Executor Scheduling in Data Analytics Systems - PowerPoint PPT Presentation

Elasecutor: Elastic Executor Scheduling in Data Analytics Systems Libin Liu , Hong Xu City University of Hong Kong ACM Symposium on Cloud Computing 2018 1 Data Analytics Systems Various workloads running in data analytics systems


  1. Elasecutor: Elastic Executor Scheduling 
 in Data Analytics Systems Libin Liu , Hong Xu City University of Hong Kong ACM Symposium on Cloud Computing 2018 1

  2. Data Analytics Systems • Various workloads running in data analytics systems concurrently • The workflow of an analytics application can be expressed as a DAG 2

  3. Data Analytics Systems • Various workloads running in data analytics systems concurrently • The workflow of an analytics application can be expressed as a DAG 2

  4. Data Analytics Systems • Various workloads running in data analytics systems concurrently • The workflow of an analytics application can be expressed as a DAG 2

  5. Data Analytics Systems • Various workloads running in data analytics systems concurrently • The workflow of an analytics application can be expressed as a DAG 2

  6. Data Analytics Systems • Various workloads running in data analytics systems concurrently • The workflow of an analytics application can be expressed as a DAG 3

  7. Data Analytics Systems • Various workloads running in data analytics systems concurrently • The workflow of an analytics application can be expressed as a DAG Directed Acyclic Graph (DAG) Stage 1 Stage 2 Stage 3 Stage 4 parallelize reduceByKey parallelize join filter filter ● map map map ● 3

  8. Resource Scheduling • Resource schedulers for various objectives, e.g., fairness, cluster utilization, application completion time, etc. 4

  9. Resource Scheduling • Resource schedulers for various objectives, e.g., fairness, cluster utilization, application completion time, etc. Efficient resource scheduling is an important and practical issue in data analytics systems 4

  10. Current Solutions • Static allocation according to peak demands • “Task-based” resource schedulers adopted in “executor-based” systems • Assign executors to machines randomly 5

  11. Need for an Elastic Scheduler 6

  12. Need for an Elastic Scheduler 7

  13. Need for an Elastic Scheduler Executor resource usage exhibits significant temporal variations 7

  14. Need for an Elastic Scheduler Resource CPU Memory Network Disk Terasort Peak/Avg. 1.8 1.7 6.2 1.5 Peak/Trough 60 3.3 237 6.1 K-means Peak/Avg. 1.7 1.2 11.5 5.6 Peak/Trough 75 6 53 100 Pagerank Peak/Avg. 3.9 1.3 20.2 9.1 Peak/Trough 50 11.5 119 50 Logistic Regression Peak/Avg. 2.1 1.4 5.5 6.1 Peak/Trough 50 12 409.6 42.5 8

  15. Need for an Elastic Scheduler Resource CPU Memory Network Disk Terasort Peak/Avg. 1.8 1.7 6.2 1.5 Peak/Trough 60 3.3 237 6.1 K-means Peak/Avg. 1.7 1.2 11.5 5.6 Peak/Trough 75 6 53 100 Pagerank Peak/Avg. 3.9 1.3 20.2 9.1 Peak/Trough 50 11.5 119 50 Logistic Regression Peak/Avg. 2.1 1.4 5.5 6.1 Peak/Trough 50 12 409.6 42.5 8

  16. Need for an Elastic Scheduler Resource CPU Memory Network Disk Terasort Peak/Avg. 1.8 1.7 6.2 1.5 Peak/Trough 60 3.3 237 6.1 K-means Peak/Avg. 1.7 1.2 11.5 5.6 Peak/Trough 75 6 53 100 Pagerank Peak/Avg. 3.9 1.3 20.2 9.1 Peak/Trough 50 11.5 119 50 Logistic Regression Peak/Avg. 2.1 1.4 5.5 6.1 Peak/Trough 50 12 409.6 42.5 8

  17. Need for an Elastic Scheduler Resource CPU Memory Network Disk Terasort Peak/Avg. 1.8 1.7 6.2 1.5 Peak/Trough 60 3.3 237 6.1 K-means Static allocation using peak demands would cause Peak/Avg. 1.7 1.2 11.5 5.6 severe resource wastage and performance issues Peak/Trough 75 6 53 100 Pagerank Peak/Avg. 3.9 1.3 20.2 9.1 Peak/Trough 50 11.5 119 50 Logistic Regression Peak/Avg. 2.1 1.4 5.5 6.1 Peak/Trough 50 12 409.6 42.5 8

  18. Our Idea Dynamically allocate and explicitly size resources to executors over time, and strategically assign executors to machines 9

  19. Our Idea Dynamically allocate and explicitly size resources to executors over time, and strategically assign executors to machines 9

  20. Our Idea Dynamically allocate and explicitly size resources to executors over time, and strategically assign executors to machines Elasecutor, a novel executor scheduler for data analytics systems 9

  21. Outline • Motivation • Elasecutor Design ‒ Elastic Executor Scheduling ‒ Demand Prediction ‒ Dynamic Reprovisioning • Implementation • Evaluation • Conclusion 10

  22. Elastic Executor Scheduling • Challenge − Scheduling executors with their multi-resource demand time-series − Multi-dimensional packing − APX-hard − Analyzed in detail in section 3.2.1 • Objective − Minimizing makespan − i.e., avoid resource underutilization and minimize machine-level resource fragmentation 11

  23. Elastic Executor Scheduling - DRR • Dominant Remaining Resource: “dominant” = “maximum” • An example: We select as the time point to calculate DRR for machine 1. and , and its DRR is 12

  24. Elastic Executor Scheduling - DRR • Dominant Remaining Resource: “dominant” = “maximum” • An example: We select as the time point to calculate DRR for machine 1. and , and its DRR is DRR is defined as the maximum remaining resource along the time dimension up to time 𝑢 12

  25. Why DRR • Convert multi-dimensional metrics into scalars • Better reflect resource utilization − “Maximum” , not “Minimum” • Better than alternative metric TRC − TRC sums up the relative remaining capacity of each resource Improvement of DRR over TRC as an alternative metric for executor placement 13

  26. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR 14

  27. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR Heartbeat received 14

  28. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR Heartbeat received Search executors in the queue 14

  29. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR Heartbeat received Search executors in the queue Calculate DRR for any executor placed on the machine 14

  30. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR Heartbeat received Search executors in the queue Calculate DRR for any executor Choose the one producing placed on the machine minimum DRR to schedule 14

  31. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR Heartbeat received Search executors in the Update placement queue results Calculate DRR for any executor Choose the one producing placed on the machine minimum DRR to schedule 14

  32. Elastic Executor Scheduling - MinFrag • Base on BFD (Best Fit Decreasing) • Iteratively assigning the “largest” executor to a machine that yields the minimum DRR Heartbeat Termination received Repeat the process Search executors in the Update placement queue results Calculate DRR for any executor Choose the one producing placed on the machine minimum DRR to schedule 14

  33. Elastic Executor Scheduling - MinFrag (a) Available resources of machine (b) Resource demands of executor 1 (c) Resource demands of executor 2 15

  34. Elastic Executor Scheduling - MinFrag (a) Available resources of machine 𝐸𝑆𝑆 ( 1, 𝑘 ) = max { 448 } = 53 112 , 165 53 112 (b) Resource demands of executor 1 (c) Resource demands of executor 2 15

  35. Elastic Executor Scheduling - MinFrag (a) Available resources of machine 𝐸𝑆𝑆 ( 1, 𝑘 ) = max { 448 } = 53 112 , 165 53 112 (b) Resource demands of executor 1 𝐸𝑆𝑆 ( 2, 𝑘 ) = max { 128 } = 13 13 32 , 43 32 (c) Resource demands of executor 2 15

  36. Prediction Module • Recurring workloads − Average resource time series of the latest 3 runs as the prediction result • New workloads − Support Vector Regression 16

  37. Dynamic Reprovisioning • To prevent possible prediction errors and unpredicted issues • Mechanism − Monitoring stage execution time − Once observing longer than 1.1x expected one − Allocating all remaining resource to the executor for one monitoring period 17

  38. Implementation • Spark 2.1.0 • Allocation Module (Cgroups, modified OpenJDK) • Scheduling Module • Resource Usage Depository • Reprovisioning Module • Prediction Module • Monitor Surrogate 18

  39. Elasecutor System Scheduling Module Resource Manager Master Resource Reprovisioning Prediction Usage Module Module Depository Allocation Monitor Module Surrogate Workers ●●● Executor Tasks CPU Net Mem Disk 19

  40. Elasecutor System Scheduling Module Resource Manager Master Resource Reprovisioning Prediction Profiles Usage Module Module Depository Report Allocation Monitor Module Surrogate Workers ●●● Executor Tasks CPU Net Mem Disk 20

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