25
BIN REPACKING SCHEDULING IN VIRTUALIZED DATACENTERS Fabien HERMENIER, FLUX, U. Utah & OASIS, INRIA/CNRS, U. Nice Sophie DEMASSEY , TASC, INRIA/CNRS, Mines Nantes Xavier LORCA, TASC, INRIA/CNRS, Mines Nantes 1

Bin repacking scheduling in virtualized datacenters

Embed Size (px)

DESCRIPTION

Fabien Hermenier, Sophie Demassey, and Xavier Lorca. In Proceedings of the 17th international conference on Principles and practice of constraint programming (CP'11). Springer-Verlag, Berlin, Heidelberg, pages 27-41.

Citation preview

Page 1: Bin repacking scheduling in virtualized datacenters

BIN REPACKING SCHEDULINGIN

VIRTUALIZED DATACENTERS

Fabien HERMENIER, FLUX, U. Utah & OASIS, INRIA/CNRS, U. Nice

Sophie DEMASSEY, TASC, INRIA/CNRS, Mines Nantes

Xavier LORCA, TASC, INRIA/CNRS, Mines Nantes

1

Page 2: Bin repacking scheduling in virtualized datacenters

CONTEXTdatacenters and virtualization

2

Page 3: Bin repacking scheduling in virtualized datacenters

DATACENTERS

interconnected servers

hosting

distributed applications

3

Page 4: Bin repacking scheduling in virtualized datacenters

RESOURCES

server capacities

application requirements

4

Page 5: Bin repacking scheduling in virtualized datacenters

VIRTUALIZATION

applications embedded in Virtual Machines

colocated on any server

manipulable

1 datacenter4 servers, 3 apps

5

Page 6: Bin repacking scheduling in virtualized datacenters

ACTION

has a known duration

consumes resources

impacts VM performance

• stop/suspend

• launch/resume

•migrate live

6

Page 7: Bin repacking scheduling in virtualized datacenters

ACTION

has a known duration

consumes resources

impacts VM performance

live migration

6

Page 8: Bin repacking scheduling in virtualized datacenters

DYNAMIC SYSTEM

• submission

• removal (complete, crash)

• requirement change (load spikes)

• addition

• removal (power off, crash)

• availability change

Applications Servers

7

Page 9: Bin repacking scheduling in virtualized datacenters

DYNAMIC RECONFIGURATION

8

Page 10: Bin repacking scheduling in virtualized datacenters

RECONFIGURATION PLAN

time

migrate S1 - S2 migrate S4 - S1 launch S4

t=09

Page 11: Bin repacking scheduling in virtualized datacenters

RECONFIGURATIONPROBLEM

given an initial configuration and new requirements:

• find a new viable configuration

• associate actions to VMs

• schedule the actions to resolve violations and dependencies

s.t every action is complete as early as possible

10

Page 12: Bin repacking scheduling in virtualized datacenters

+ USER REQUIREMENTS

• fault-tolerance w. replication

• performance w. isolation

• resource matchmaking

• maintenance

• security w. isolation

• shared resource control

Clients Administrators

to satisfy at any time during the reconfiguration

11

Page 13: Bin repacking scheduling in virtualized datacenters

ENTROPYan autonomous VM manager

12

Page 14: Bin repacking scheduling in virtualized datacenters

PLAN MODULE

• reconfiguration problem: vector packing + cumulative scheduling + side constraints (NP-hard)

• trade-off fast+good

• composable online

• easily adaptable offline

Constraint

Progra

mming

13

Page 15: Bin repacking scheduling in virtualized datacenters

ABSTRACTION

•1VM = 0 or 1 action

•min ∑ end(A)

•full resource requirements at transition

actions A

14

Page 16: Bin repacking scheduling in virtualized datacenters

Compound CP model

Packing + Scheduling

decomposition degrades the objective and may result in a feasible packing without reconfiguration plan

shared constraints resource+side

separated branching heuristic 1-packing 2-scheduling

15

Page 17: Bin repacking scheduling in virtualized datacenters

Producer/Consumer

1 action = 2 tasks / no-wait

home-made cumulatives in every dimension

16

Page 18: Bin repacking scheduling in virtualized datacenters

SIDE CONSTRAINTSban unary

fence unary

spread alldifferent + precedences

lonely disjoint

capacity gcc

among element

gather allequals

mostly spread nvalue

17

Page 19: Bin repacking scheduling in virtualized datacenters

REPAIR

resource+placement constraints come with a new service: return a feasible sub-configuration

candidate VMsfixed

heuristically

18

Page 20: Bin repacking scheduling in virtualized datacenters

EVALUATION19

Page 21: Bin repacking scheduling in virtualized datacenters

PROTOCOL

500 - 2,500 homogeneous servers

2,000 - 10,000 heterogeneous VMsextra-large/high-memory EC2 instances3-tiers HA web applications with replica

50% VM grow 30% uCPU4% VM launch, 2% VM stop1% server stop

20

Page 22: Bin repacking scheduling in virtualized datacenters

LOAD

70% = standard average consolidation ratio

solving time 1,000 servers

21

Page 23: Bin repacking scheduling in virtualized datacenters

SCALABILITYsolving time 5 VMs : 1 server

2,000 servers = standard capacity of a container22

Page 24: Bin repacking scheduling in virtualized datacenters

CONCLUSION

field to investigate for packing+scheduling

≠ usages to optimize: CPU, energy, revenue

side constraints important for users

Entropy: CP-based resource manager, fast, scalable, generic, composable, flexible, easy to maintain

http://entropy.gforge.inria.fr/

23

Page 25: Bin repacking scheduling in virtualized datacenters

PERSPECTIVES

user constraint catalog

routing and application topology constraints

soft/explained user constraints

new results available:

http://sites.google.com/site/hermenierfabien/

24