Towards Optimal Capacity Segmentation with Hybrid Cloud Pricing Wei - - PowerPoint PPT Presentation

towards optimal capacity segmentation with hybrid cloud
SMART_READER_LITE
LIVE PREVIEW

Towards Optimal Capacity Segmentation with Hybrid Cloud Pricing Wei - - PowerPoint PPT Presentation

Towards Optimal Capacity Segmentation with Hybrid Cloud Pricing Wei Wang , Baochun Li, Ben Liang Department of Electrical and Computer Engineering University of Toronto IaaS clouds offer multiple pricing options On-demand (pay-as-you-go)


slide-1
SLIDE 1

Towards Optimal Capacity Segmentation with Hybrid Cloud Pricing

Wei Wang, Baochun Li, Ben Liang

Department of Electrical and Computer Engineering University of Toronto

slide-2
SLIDE 2

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

IaaS clouds offer multiple pricing options

On-demand (pay-as-you-go)

Static hourly rate x run hours =

Subscription (reservation)

One-time subscription fee Free/discounted usage fee during the reservation period

Auction-like pricing (spot market)

Users bid for computing instances No service guarantee

2

prt

slide-3
SLIDE 3

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

IaaS clouds offer multiple pricing options

3

GoGrid, ElasticHosts, BitRefinery, Ninefold ... Amazon EC2

On-demand Subscription Auction-like pricing On-demand Subscription

slide-4
SLIDE 4

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Why multiple pricing?

Compensate the deficiency of individual pricing

Static pricing: awkward to market dynamics, easy to understand, risk-free with a static price Spot price: agile to demand/supply changes, hard to understand, risky due to price fluctuations

Expand the market demand

Long-term users go for subscription Price-sensitive users bid in the spot market

X

slide-5
SLIDE 5

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

How do cloud providers allocate its capacity to different pricing channels?

4

slide-6
SLIDE 6

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

How to set the prices? How many instances to offer in each pricing channel? Objective: Revenue maximization

5

t t

Spot market demand Pay-as-you-go demand Subscription demand Price Price Cloud resources Subscriptions

slide-7
SLIDE 7

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

How many instances to offer in each channel in hour 1?

An on-demand user requests 80 instances for 3 hours, starting from hour 1, with on-demand rate $1 A spot user bids for 100 instances each at $1.5 per instance-hour, starting from hour 2 The available capacity of a cloud can only support 100 additional instances

6

Time(hour) Spot user $150 $150 On-demand user $80 $80 $80 1 2 3

slide-8
SLIDE 8

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto 7

Time(hour) Spot user $150 $150 On-demand user $80 $80 $80 1 2 3

Strategy 1: Serve the on-demand user in hour 1 (revenue =$240) Strategy 2: Strategically hold resources in hour 1 and serve the spot user in hour 2 (revenue = $300)

How many instances to offer in each channel in hour 1?

slide-9
SLIDE 9

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Our focus

Dynamic capacity segmentation in two channels

On-demand channel with a fixed hourly rate Periodic auction channel similar to EC2 spot market

8

t t

Periodic auctions demand Pay-as-you-go demand Price Price Cloud resources

slide-10
SLIDE 10

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Problem formulation

9

Γt(Ct) = E  max

0≤Ct

a≤Ct

  • γa(Ct

a) + γr(Ct Ct a)

+ ECt+1⇥ Γt+1(Ct+1) ⇤ ,

Auction revenue On-demand revenue Future revenue

t

Periodic auctions demand Price

t

Pay-as-you-go demand Price

Cloud resources

Ct − Ct

a

Ct

a

: the optimal revenue collected during the prediction window Γτ(Cτ)

slide-11
SLIDE 11

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Revenue from the on-demand channel

q: the probability that a currently running on-demand instance is terminated by its user in the next time slot

10

slide-12
SLIDE 12

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Revenue from the on-demand channel

q: the probability that a currently running on-demand instance is terminated by its user in the next time slot Revenue from the on-demand channel, with c instances allocated to it

11

γr(c) = ⇢ prc/q , if c  Rt

r;

prRt

r/q ,

  • therwise,

Rt

r

: # of on-demand requests received at time t

A simple model yet gives interesting insights!

slide-13
SLIDE 13

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Periodic auctions

Auctions are carried out periodically Each user i bids for computing instances

True demand: instances each with utility Bid for instances each at a price follows a joint p.d.f.

A uniform clearing price is posted in every time t

User i wins if the bid exceeds the clearing price

Upon losing, all running instances are terminated

12

pt

a

(ni, vi)

fn,v

bt

i > pt a

ni

vi

rt

i

bt

i

slide-14
SLIDE 14

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Auction bidder

No partial fulfilment

Lose all or win all The same as Amazon EC2 and other clouds

Utility function of bidder i

13

ut

i(rt i, bt i) =

⇢ nivi rt

ipt a ,

if pt

a < bt i and rt i ni;

0 ,

  • therwise.

Gain Cost

slide-15
SLIDE 15

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

What is the optimal auction mechanism?

14

slide-16
SLIDE 16

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Optimal auction design

15

φ(vi) = vi − 1 − Fv(vi|ni) fv(vi|ni)

(m+1)-price auction with a seller reservation price

Sort all bidders in a descending order of their bid prices, i.e., Reservation price = ,

bt

1 ≥ bt 2 ≥ . . .

φ−1(0)

slide-17
SLIDE 17

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Optimal auction design

16

φ(vi) = vi − 1 − Fv(vi|ni) fv(vi|ni)

(m+1)-price auction with a seller reservation price

Sort all bidders in a descending order of their bid prices, i.e., Reservation price = , Keep accommodating top bidders, until (1) there is no available capacity to serve more or (2) no one bids higher than the reservation price. For the former case, winners are charged the highest bid of losers. For the later case, winners are charged the reservation price.

bt

1 ≥ bt 2 ≥ . . .

φ−1(0)

slide-18
SLIDE 18

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Optimal auction design (Cont.)

X

Case 2: Case 1:

rt

1

Capacity

c

rt

2

rt

3

Bid

bt

1

bt

2

bt

3

φ−1(0)

rt

1

Capacity

c

rt

2

rt

3

Bid

bt

1

bt

2

bt

3

φ−1(0)

slide-19
SLIDE 19

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Optimal auction design (Cont.)

17

Proposition 1: The design maximizes the revenue among all auctions producing a uniform clearing price Proposition 2: The design is two-dimensionally truthful

A user always reports true demand: i.e., ut

i(ni, vi) ≥ ut i(rt i, bt i)

The detailed proof is gi

slide-20
SLIDE 20

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Optimal auction design (Cont.)

18

Proposition 1: The design maximizes the revenue among all auctions producing a uniform clearing price Proposition 2: The design is two-dimensionally truthful

A user always reports true demand:

Remarks

Generally, (m+1)-price auction suffers from the problem of demand reduction and is neither truthful nor optimal when a bidder bids for multiple items We show that it is truthful and optimal in cloud markets where partial fulfilment is unaccepted i.e., ut

i(ni, vi) ≥ ut i(rt i, bt i)

The detailed proof is gi

slide-21
SLIDE 21

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Auction revenue

Revenue: ,where

X

rt

1

Capacity

c φ(·)

rt

2

rt

3

rt

1

Capacity

c φ(·)

rt

2

rt

3

γa(c) =

m

X

i=1

rt

iφ(bt i) m

X

i=1

rt

i ≤ c < m+1

X

i=1

rt

i

Revenue = shaded area

slide-22
SLIDE 22

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Optimal capacity segmentation

19

slide-23
SLIDE 23

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Capacity segmentation revisit

X: # of instances terminated by on-demand users at time t

20

Find the optimal segmentation at time t

Ct+1 = Ct

a + X

Γt(Ct) = E  max

0≤Ct

a≤Ct

  • γa(Ct

a) + γr(Ct Ct a)

+ ECt+1⇥ Γt+1(Ct+1) ⇤ ,

X ∼ B(C − Ct

a, k, q)

Ct

a

Auction On-demand Future

State transition

slide-24
SLIDE 24

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Solving the capacity segmentation problem

Direct solution is via numerical dynamic programming

Hight computational complexity: C is the cloud capacity, and is usually huge Capacity segmentation is time sensitive: it has to be made in the beginning of every period

21

Ct+1 = Ct

a + X

Γt(Ct) = E  max

0≤Ct

a≤Ct

  • γa(Ct

a) + γr(Ct Ct a)

+ ECt+1⇥ Γt+1(Ct+1) ⇤ ,

X ∼ B(C − Ct

a, k, q)

O(C3)

slide-25
SLIDE 25

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Approximation: solve the upper-bound problem

22

slide-26
SLIDE 26

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

The upper-bound problem

23

¯ Γt(Ct) = E  max

0≤Ct

a≤Ct

  • ¯

γa(Ct

a) + γr(Ct Ct a)

+ EX ⇥¯ Γt+1(Ct

a + X)

⇤ .

: Revenue upper bound of the auction channel, calculated as if partial fulfilment is accepted in periodic auctions

¯ γa(Ct

a)

slide-27
SLIDE 27

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

The upper-bound problem

24

¯ Γt(Ct) = E  max

0≤Ct

a≤Ct

  • ¯

γa(Ct

a) + γr(Ct Ct a)

+ EX ⇥¯ Γt+1(Ct

a + X)

⇤ .

Proposition 3: The upper-bound problem can be solved within O(C2)

slide-28
SLIDE 28

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

The upper-bound problem

25

¯ Γt(Ct) = E  max

0≤Ct

a≤Ct

  • ¯

γa(Ct

a) + γr(Ct Ct a)

+ EX ⇥¯ Γt+1(Ct

a + X)

⇤ .

Proposition 3: The upper-bound problem can be solved within Intuition: previously calculated results can be reused in the following calculations : optimal solution to the upper-bound problem

O(C2)

˜ Cτ

a(Cτ + 1) 1  ˜

a(Cτ)  ˜

a(Cτ + 1).

˜ Cτ

a(Cτ)

slide-29
SLIDE 29

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

The approximation

We solve the upper-bound problem and offer instances in the auction channel at time t : revenue of the approximate solution

26

˜ Ct

a(Ct)

˜ Γt

slide-30
SLIDE 30

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

The approximation

We solve the upper-bound problem and offer instances in the auction channel at time t : revenue of the approximate solution Proposition 4 (asymptotic optimality): w.p. 1 if the number of bidders for all

27

˜ Γt → Γt N τ

a → ∞

τ = t, . . . , t + w ˜ Ct

a(Ct)

˜ Γt

slide-31
SLIDE 31

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

The approximation

We solve the upper-bound problem and offer instances in the auction channel at time t : revenue of the approximate solution Proposition 4 (asymptotic optimality): w.p. 1 if the number of bidders for all Remarks

The condition is naturally satisfied in cloud environments as there are always a large amount of cloud users requesting computing instances

28

˜ Γt → Γt N τ

a → ∞

τ = t, . . . , t + w N τ

a → ∞

˜ Ct

a(Ct)

˜ Γt

slide-32
SLIDE 32

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Asymptotically optimal solution

We turn to an efficient approximate solution

Proved to be asymptotically optimal Almost optimal in simulations: performance gap < 2% Highly efficient, with time complexity

X

O(C2)

slide-33
SLIDE 33

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Auction revenue upper bound

X

γa(c) ¯ γa(c)

rt

1

Capacity

c φ(·)

rt

2

rt

3

rt

1

Capacity

c φ(·)

rt

2

rt

3

As if partial fulfilment is accepted

slide-34
SLIDE 34

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Evaluations

29

slide-35
SLIDE 35

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Revenue performance

30

Users arrive into the two pricing channels following a Poisson process, with intensity being low ( =100), medium ( =200), and high ( =500).

λ λ λ

20 40 60 80 100 0.2 0.4 0.6 0.8 1 Time Normalized Revenue

Approxn., λ = 100 UB, λ = 100 Approxn., λ = 200 UB, λ = 200 Approxn., λ = 500 UB, λ = 500

slide-36
SLIDE 36

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Market share and the clearing price

31

20 40 60 80 0.2 0.4 0.6 0.8 1 Market share of periodic auctions (%) CDF

λ = 100 λ = 200 λ = 500

0.5 1 1.5 2 0.2 0.4 0.6 0.8 1 Auction price CDF

λ = 100 λ = 200 λ = 500

slide-37
SLIDE 37

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Conclusions

We investigate the optimal capacity segmentation problem with hybrid cloud pricing. We show that optimal periodic auctions are of the form

  • f (m+1)-price auction with a seller reservation price.

We design an efficient capacity segmentation scheme that is proved to be asymptotically optimal. Simulation studies show that the solution is almost

  • ptimal.

32

slide-38
SLIDE 38

Wei Wang, Department of Electrical and Computer Engineering, University of Toronto

Thank you!

33

http://iqua.ece.toronto.edu/