Choosing Between Several Queuing Policies pierre.douillet@ensait.fr - - PowerPoint PPT Presentation

choosing between several queuing policies
SMART_READER_LITE
LIVE PREVIEW

Choosing Between Several Queuing Policies pierre.douillet@ensait.fr - - PowerPoint PPT Presentation

ISKE 2009 Choosing Between Several Queuing Policies pierre.douillet@ensait.fr cole Nationale Suprieure des Arts et Industries Textiles Roubaix, France Douillet ISKE 2009 How to manage a G/GI/n system


slide-1
SLIDE 1

✬ ✫ ✩ ✪ ISKE 2009

Choosing Between Several Queuing Policies

pierre.douillet@ensait.fr

École Nationale Supérieure des Arts et Industries Textiles Roubaix, France

slide-2
SLIDE 2

Douillet ISKE 2009

✬ ✫ ✩ ✪

⇒ • How to manage a G/GI/n system ? . . . . . 3

averaging process criteria assumptions batch mean method

  • manager’s point of view . . . . . . . . . . . .

7

  • customer’s point of view . . . . . . . . . . . .

11

  • scaling and pooling . . . . . . . . . . . . . . .

14

  • conclusion . . . . . . . . . . . . . . . . . . . .

17

Ensait - Roubaix 2

slide-3
SLIDE 3

Douillet ISKE 2009

✬ ✫ ✩ ✪

How to manage a G/GI/n system ?

averaging process

  • customer : "one man, one vote" Ec (X)
  • manager : "one clock tick, one vote" Et (X)

criteria

  • manager : exhaustivity and number of waiting customers
  • customer : mean and variance of sojourn time
  • fairness, and perceived fairness, are important

Ensait - Roubaix 3

slide-4
SLIDE 4

Douillet ISKE 2009

✬ ✫ ✩ ✪

assumptions

  • n identical servers,

any service is independent from anything else

  • total capacity of service µ = n/ EB (t)
  • independent (...) arrivals, flow λ = EA (t), ρ = λ/µ < 1
  • distributions : anything except from M/M
  • Here : B is Gamma (svc= 0.4), A is Gamma (svc=1.25),

ρ = 0.93 or 0.97

Ensait - Roubaix 4

slide-5
SLIDE 5

Douillet ISKE 2009

✬ ✫ ✩ ✪

batch mean method

  • each result has been obtained with K = 400 batches of

N = 50000 events

  • containing rounding errors, allowing parallelization (with

suitable random generator)

  • estimation of the sd of the estimators (and checking for

independence)

Ensait - Roubaix 5

slide-6
SLIDE 6

Douillet ISKE 2009

✬ ✫ ✩ ✪

√ • How to manage a G/GI/n system ? . . . . . 3 ⇒ • manager’s point of view . . . . . . . . . . . . 7

  • rdinary policies

number of busy servers jockeying

  • customer’s point of view . . . . . . . . . . . .

11

  • scaling and pooling . . . . . . . . . . . . . . .

14

  • conclusion . . . . . . . . . . . . . . . . . . . .

17

Ensait - Roubaix 6

slide-7
SLIDE 7

Douillet ISKE 2009

✬ ✫ ✩ ✪

manager’s point of view

  • rdinary policies
  • rand, robn,
  • rtwo (distributed)
  • size (shortest queue)
  • load (how can we ... ?)
  • fast (single, µ, scv)

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 5 10 15 20 25 30

B5s, N= 25000, K= 400, T= 10000040

fast load size rtwo robn rand

Ensait - Roubaix 7

slide-8
SLIDE 8

Douillet ISKE 2009

✬ ✫ ✩ ✪

number of busy servers

  • load is pooling, size is not the optimal
  • Little : Et (nb) = nρ,

doesn’t depend on policy

  • probability ρ∗ of full use
  • f the capacity of service
  • fast is ρ∗ = ρ
  • load ensures exhaustivity

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

  • 1

1 2 3 4 5 6

B5s N= 25000 K= 400 T= 10000040

fast load size rtwo robn rand

Ensait - Roubaix 8

slide-9
SLIDE 9

Douillet ISKE 2009

✬ ✫ ✩ ✪

jockeying

  • jsiz = size then jockeying, jran = rand then jockeying
  • same distribution of queue length and servers business as

load : jockeying solves (mostly) the manager’s problem.

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 5 10 15 20 25 30 35 40

B5s, N= 25000, K= 400, T= 10000016

load jsiz jran

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

  • 1

1 2 3 4 5 6

B5s N= 25000 K= 400 T= 10000016

fast load jsiz jran

Ensait - Roubaix 9

slide-10
SLIDE 10

Douillet ISKE 2009

✬ ✫ ✩ ✪

√ • How to manage a G/GI/n system ? . . . . . 3 √ • manager’s point of view . . . . . . . . . . . . 7 ⇒ • customer’s point of view . . . . . . . . . . . . 11

sojourn time some results

  • scaling and pooling . . . . . . . . . . . . . . .

14

  • conclusion . . . . . . . . . . . . . . . . . . . .

17

Ensait - Roubaix 10

slide-11
SLIDE 11

Douillet ISKE 2009

✬ ✫ ✩ ✪

customer’s point of view

sojourn time

  • mean sojourn time
  • MM1 : parameter µ − λ
  • variance and fairness

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 500 1000 1500 2000 2500 3000 3500 4000

B5s N= 25000 K= 400 T= 10000040

fast load size rtwo robn rand

Ensait - Roubaix 11

slide-12
SLIDE 12

Douillet ISKE 2009

✬ ✫ ✩ ✪

some results

mean ±2σ ratio sd ±2σ ratio τ0.1% τ/µ fast 470.53 7.00 1.00 445.61 10.01 1.00 3808 8.1 load 586.72 7.36 1.25 463.88 10.60 1.04 4189 7.2 jsiz 606.51 7.89 1.29 496.94 11.40 1.12 4435 7.4 jran 675.53 7.09 1.44 670.32 11.94 1.50 7479 11.2 size 621.48 7.69 1.32 500.77 10.48 1.12 4423 7.1 rtwo 710.71 7.36 1.51 527.89 10.37 1.18 4817 6.8 robn 997.21 13.15 2.12 904.20 18.61 2.03 8793 8.9 rand 2102.66 31.03 4.47 1999.41 45.64 4.49 17560 8.4 τ is the last 1/1000 fractile

Ensait - Roubaix 12

slide-13
SLIDE 13

Douillet ISKE 2009

✬ ✫ ✩ ✪

√ • How to manage a G/GI/n system ? . . . . . 3 √ • manager’s point of view . . . . . . . . . . . . 7 √ • customer’s point of view . . . . . . . . . . . . 11 ⇒ • scaling and pooling . . . . . . . . . . . . . . . 14

how to model scaling ? pooling factor pooling reshapes towards Poisson

  • conclusion . . . . . . . . . . . . . . . . . . . .

17

Ensait - Roubaix 13

slide-14
SLIDE 14

Douillet ISKE 2009

✬ ✫ ✩ ✪

scaling and pooling

how to model scaling ?

  • shape
  • independence (short range)
  • independence (long range) ???
  • distributed, with coupling ?

Ensait - Roubaix 14

slide-15
SLIDE 15

Douillet ISKE 2009

✬ ✫ ✩ ✪

pooling factor

  • when customer flow increases and the number of servers

increases accordingly, the mean sojourn time decreases

exhaustive non exhaustive n fast load jsiz jran size rtwo robn rand 7 339 458 481 550 497 627 921 2070 5 470 586 606 675 621 710 997 2102 3 794 881 898 965 911 948 1242 2141 1 2378 2378 2378 2378 2378 2378 2378 2378

  • pooling can also result in reduced staff...

Ensait - Roubaix 15

slide-16
SLIDE 16

Douillet ISKE 2009

✬ ✫ ✩ ✪

pooling reshapes towards Poisson

  • S1 (z), Sn (z), Sr (z) are the mgf of A, n scaled A, and the

resulting rand-arrivals in a single queue

S1(z)= Z a (t) exp (t z) dt, Sn (z) = S1 “ z n ” , Sr (z) = Sn (z) n − (n − 1) Sn (z)

  • Expanding in series :

S1(z)=1+ z λ+ z2 2λ2 (1 + scv)+· · · , Sr(z)= λ λ − z + z2 2 n (svc − 1) (λ − z)2 + z3O „1 n2 «

svc (ar) = 1 + (svc (a) − 1) /n

Ensait - Roubaix 16

slide-17
SLIDE 17

Douillet ISKE 2009

✬ ✫ ✩ ✪

conclusion

  • manager/customer perceptions are not based on the same

averaging process

  • moreover manager’s focus is exhaustivity
  • customer’s focus is variance and fairness
  • centralized/distributed systems are different
  • aggregation changes drastically the results

Ensait - Roubaix 17