Top Banner
1 Pivotal Confidential–Internal Use Only BUILT FOR THE SPEED OF BUSINESS
22

Auction model for resource scheduling in Cloud Foundry Diego

Aug 20, 2015

Download

Software

Amit Gupta
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Auction model for resource scheduling in Cloud Foundry Diego

1Pivotal Confidential–Internal Use Only

BUILT FOR THE SPEED OF BUSINESS

Page 2: Auction model for resource scheduling in Cloud Foundry Diego

2Pivotal Confidential–Internal Use Only

Simple Auction

Page 3: Auction model for resource scheduling in Cloud Foundry Diego

3Pivotal Confidential–Internal Use Only

Simple Auction

Page 4: Auction model for resource scheduling in Cloud Foundry Diego

4Pivotal Confidential–Internal Use Only

Simple Auction

Who wants to run an app?

Page 5: Auction model for resource scheduling in Cloud Foundry Diego

5Pivotal Confidential–Internal Use Only

Simple Auction

Who wants to run an app? Me x 100!

Me x 50!Meh…

Page 6: Auction model for resource scheduling in Cloud Foundry Diego

6Pivotal Confidential–Internal Use Only

Simple Auction

Page 7: Auction model for resource scheduling in Cloud Foundry Diego

7Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Page 8: Auction model for resource scheduling in Cloud Foundry Diego

8Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Who wants to run an app? x 9

Page 9: Auction model for resource scheduling in Cloud Foundry Diego

9Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Who wants to run an app? x 9 Me x 100!

Me x 50!Meh…

x 9

x 9x 9

Page 10: Auction model for resource scheduling in Cloud Foundry Diego

10Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

2Me x 100!

Me x 50!

1

47

Page 11: Auction model for resource scheduling in Cloud Foundry Diego

11Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 83!

Me x 50!

2

47

1

Page 12: Auction model for resource scheduling in Cloud Foundry Diego

12Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 67!

Me x 50!

3

47

1

2

Page 13: Auction model for resource scheduling in Cloud Foundry Diego

13Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 50!

Me x 50!

1

2

3

4

7

Page 14: Auction model for resource scheduling in Cloud Foundry Diego

14Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 33!

Me x 50!

1

2

3

5

7

4

Page 15: Auction model for resource scheduling in Cloud Foundry Diego

15Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 33!

Me x 50!

1

2

3

6

7

4

5

Page 16: Auction model for resource scheduling in Cloud Foundry Diego

16Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 33!

Me x 50!

1

2

3

74

6

5

8

Page 17: Auction model for resource scheduling in Cloud Foundry Diego

17Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

1

2

3

4

5 6

7

8

9

Page 18: Auction model for resource scheduling in Cloud Foundry Diego

18Pivotal Confidential–Internal Use Only

Detail: Bidding

Page 19: Auction model for resource scheduling in Cloud Foundry Diego

19Pivotal Confidential–Internal Use Only

Detail: Bidding

Me x 50!id: 123

+ =

Page 20: Auction model for resource scheduling in Cloud Foundry Diego

20Pivotal Confidential–Internal Use Only

Detail: Bidding

bid := cell.score(

cell.FractionUsedContainers(),cell.FractionFreeMemory(),cell.FractionFreeDisk(),

cell.NumRunningForID(app.ID),)// => 50

Me x 50!id: 123

+ =

Page 21: Auction model for resource scheduling in Cloud Foundry Diego

21Pivotal Confidential–Internal Use Only

Detail: Bidding

1. score is not parameterized> Operator can’t customize based on env-specific resource constraints

2. score does not account for AZ/cluster anti-affinity> NumRunningForID only accounts for VM anti-affinity

bid := cell.score(

cell.FractionUsedContainers(),cell.FractionFreeMemory(),cell.FractionFreeDisk(),

cell.NumRunningForID(app.ID),)// => 50

Page 22: Auction model for resource scheduling in Cloud Foundry Diego

22Pivotal Confidential–Internal Use Only

( )

Parameterized Multi-AZ Bidding

1. score is not parameterized> Operator can’t customize based on env-specific resource constraints

2. score does not account for AZ/cluster anti-affinity> NumRunningForID only accounts for VM anti-affinity

bidid: 123

+ ={ }a b g d

numAZs

2

31

2

id: 123

id: 123

id: 999