salbnet: A Self-Adapting Load Balancing Network Jrg Jung - - PowerPoint PPT Presentation

salbnet a self adapting load balancing network
SMART_READER_LITE
LIVE PREVIEW

salbnet: A Self-Adapting Load Balancing Network Jrg Jung - - PowerPoint PPT Presentation

salbnet: A Self-Adapting Load Balancing Network Jrg Jung University of Potsdam Institute for Computer Science Operating Systems and Distributed Systems February 2014 1 Outline 3 1 Introduction 5 2 Credit based SLB 8 3 salbnet


slide-1
SLIDE 1

salbnet: A Self-Adapting Load Balancing Network

Jörg Jung University of Potsdam Institute for Computer Science Operating Systems and Distributed Systems February 2014

1

slide-2
SLIDE 2

Outline

1 Introduction 3 2 Credit based SLB 5 3 salbnet Implementation 8 4 Measurements and Evaluation 10 5 Conclusions and Future Work 16

2

slide-3
SLIDE 3

1 Introduction

Dispatcher based Server Load Balancing (SLB): scalable, flexible and fault tolerance services Server 1 Internet Dispatcher / Load Balancer (LB) Server 2 Server n

VIP VIP

3

slide-4
SLIDE 4

1 Introduction

Motivation

Measurements in [Zinke and Schnor 2013] show the influence of weights Sophisticated algorithms are required for heterogenous workloads and heterogenous back end servers of ISPs: Self-adapting credit based SLB algorithms for better performance Simulations in [Lehmann et al. 2008] show the advantages of the credit based SLB algorithms → Efficient implementation for credit based SLB required → Measurements to compare traditional and credit based SLB algorithms: Weighted Round Robin (WRR) and Dynamic Pressure Relieve (DPR)

4

slide-5
SLIDE 5

2 Credit based SLB

Application independent implicit metrics are used to calculate credits Back end server push credits to the LB Credits represent the number of connections

5

slide-6
SLIDE 6

2 Credit based SLB

Credit Reporting

Dispatcher Ser Server

Calculat Calculate credits

Application

R Report credits Intercept system call Collect Collect metrics

Reporting Algorithms: Dynamic Pressure Relieve (DPR) and DPR-Quantize (DPR-Q) → Reporting credits based on the (amount of processed) credit metric (data)

6

slide-7
SLIDE 7

2 Credit based SLB

Credit Metric: TCP Backlog

Application Application Completed connection queue Incomplete connection queue

accept() ACK complete SYN

7

slide-8
SLIDE 8

3 salbnet Implementation

salbd implements metric collecting and credit reporting (runs on the LB and the back end servers) LVS scheduler module implements the credits scheduling libnetmsg implements network abstraction for sending messages over Ethernet and InfiniBand libnethook hooks into (socket) system calls in back end servers

8

slide-9
SLIDE 9

3

Dispatcher Server salbd (Server) salbd (Client) httpd/named libnetmsg libnetmsg libnethook libnethook libc librdmacm librdmacm libc LVS scheduler TCP/UDP TCP/UDP IP IPoIB IPoIB IP IB CM IB CM Verbs Verbs

User User space Kernel space LD_PRELOAD Shared Memory

IB IB

ioctl() RDMA RDMA

9

slide-10
SLIDE 10

4 Measurements and Evaluation

Measurements in a ISP like SLB environment: Wikipedia instance based on a dump and traces from 2007/2008 Dispatcher based SLB scenario: two armed, NAT based and using route path with heterogeneous hardware and homogeneous software versions 3 heterogenous back end servers require weights for the traditional WRR algorithm

10

slide-11
SLIDE 11

4 Measurements and Evaluation

Workload: Reduced Wikipedia Traces

Number of requests from the first ten minutes of the (filtered and reduced) Wikipedia trace from 12. November 2007 (available from [Pierre 2010]) Factor Requests Mean

req⁄s

Max

req⁄s 1⁄32

49,532 82.55 91

1⁄16

99,063 165.12 183

1⁄8

198,125 330.21 366 1 1,584,996 2,641.66 2,925

11

slide-12
SLIDE 12

4 Measurements and Evaluation

Results: (First) Response Time

Factor 1⁄32 0.5 1 DPR-Q DPR WRR Factor 1⁄16 0.5 1 Factor 1⁄8 0.5 1 Normalized (First) Response Time

12

slide-13
SLIDE 13

4 Measurements and Evaluation

Results: (Request) Errors

Factor 1⁄32 0.05 0.1 DPR-Q DPR WRR Factor 1⁄16 0.05 0.1 Factor 1⁄8 0.05 0.1 Normalized (Request) Error

13

slide-14
SLIDE 14

4 Measurements and Evaluation

Measurement Metrics

(First) Response Time, (Request) Errors and Duration are combined into single lower is better penalty values SLB ISP Penalty pISP used for comparison pISP =( responsemean responsemax )×( request_errormean requeststotal )

14

slide-15
SLIDE 15

4 Measurements and Evaluation

Results: SLB Penalty

Factor 1⁄32 0.05 0.1 DPR-Q DPR WRR Factor 1⁄16 0.05 0.1 Factor 1⁄8 0.05 0.1 SLB ISP Penalty

15

slide-16
SLIDE 16

5 Conclusions and Future Work

salbnet implementation for credit based SLB introduced Previous simulations are confirmed: DPR and DPR-Q outperform traditional WRR DPR-Q variant is slightly better than DPR, for higher workloads Next step: salbnet and DNS, without InfiniBand and RDMA

16

slide-17
SLIDE 17

References

[Lehmann et al. 2008] Janette Lehmann and Lars Schneidenbach and Bettina Schnor and Jörg Zinke. Self-Adapting Credit Based Server Load Balancing. In Helmar Burkhart, Proceedings of the IASTED international Conference on Parallel and Distributed Computing and Networks (PDCN), pages 55–62. PDCN. ACTA Press. IASTED, Innsbruck, Austria, February 2008. ISBN: 9780889867130, ISBN CD: 9780889867147 [Pierre 2010] Guillaume Pierre. Wikipedia access tracesWikibench, October 2010. URL http://www.wikibench.eu/?page_id=60. Accessed May 2012

17

slide-18
SLIDE 18

[Zinke and Schnor 2013] Jörg Zinke and Bettina Schnor. The Impact of Weights on the Performance of Server Load Balancing Systems. In Mohammad S. Obaidat and Pere Vilà and Isaac Woungang and Mario Marchese and Floriano De Rango and Jose Saldaña, International Symposium on Performance Evaluation of Com- puter and Telecommunication Systems, pages 541–548. SPECTS 2013, Simulation

  • Series. IEEE Communications Society. Society for Modeling & Simulation Inter-

national (SCS), Toronto, Canada, July 2013. ISBN: 9781627482745

18