auction model for resource scheduling in cloud foundry diego

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

Upload: amit-gupta

Post on 20-Aug-2015

551 views

Category:

Software


0 download

TRANSCRIPT

1Pivotal Confidential–Internal Use Only

BUILT FOR THE SPEED OF BUSINESS

2Pivotal Confidential–Internal Use Only

Simple Auction

3Pivotal Confidential–Internal Use Only

Simple Auction

4Pivotal Confidential–Internal Use Only

Simple Auction

Who wants to run an app?

5Pivotal Confidential–Internal Use Only

Simple Auction

Who wants to run an app? Me x 100!

Me x 50!Meh…

6Pivotal Confidential–Internal Use Only

Simple Auction

7Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

8Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Who wants to run an app? x 9

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

10Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

2Me x 100!

Me x 50!

1

47

11Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 83!

Me x 50!

2

47

1

12Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 67!

Me x 50!

3

47

1

2

13Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 50!

Me x 50!

1

2

3

4

7

14Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 33!

Me x 50!

1

2

3

5

7

4

15Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 33!

Me x 50!

1

2

3

6

7

4

5

16Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

Me x 33!

Me x 50!

1

2

3

74

6

5

8

17Pivotal Confidential–Internal Use Only

Multiple Simultaneous Auctions

1

2

3

4

5 6

7

8

9

18Pivotal Confidential–Internal Use Only

Detail: Bidding

19Pivotal Confidential–Internal Use Only

Detail: Bidding

Me x 50!id: 123

+ =

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

+ =

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

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