Climate project
-
Upload
dbelova -
Category
Technology
-
view
693 -
download
0
description
Transcript of Climate project
Climate Project
Dina Belova, MirantisSylvain Bauza, Bull
Resource Reservation Service
● Manage cloud resources not right now but also in the future
● Have dedicated resources on certain amount of time
● Prepare for the peak loads and perform capacity planning
● Optimize energy consumption
Reasons
● Virtual resources○ Nova instances○ Cinder volumes○ Neutron’s floating IPs, networks, routers○ Heat stacks○ etc.
● Physical resources○ compute hosts○ storage nodes
What may be reserved?
● Reserve cloud resources (both physical and virtual)
● Plugin mechanism (what to do at the time lease actually starts and ends)
● Configurable notifications about near ending of the lease
● Leases and resources accounting with Ceilometer
Climate features
● Immediate reservation● Reservation with retries● Best-effort reservation● Delayed resource acquiring
Reservation concepts
● Reservation = capture resources for cloud object (instance, pcloud, stack, etc.). Includes status, resource ID, pre- and post-reservation actions.
● Lease = several reservations. Lease is described by start time, end time, reservations and events regarding it.
● Event = something that may happen with lease (start, end, notify, extra actions).
Useful terms
Events Handling Workflow
Climate Manager
Climate DB
1. get event that should be done at this time
2. commit all needed actionsResource Plugin
Create lease with reserved VM workflow
Nova APIOpenStack
Dashboard / Nova CLI
1. reserve instance with some lease params
2. create reserved instance, lease ID
Nova Scheduler
3. instance creation request
Nova DB
Nova Compute
4. do all instance creation steps except running
5. create record in the DB
Climate Client
Climate API
6. lease params (+instance ID) 6. lease params
Climate Manager
7. create lease request
Climate DB
8. create lease, reservation and event records
● Boot instance○ Verify it was reserved○ View created lease for the passed periods ○ Wait for the first notification
● Prolong lease○ Wait for the second notification○ Check that instance snapshot was created and
VM deleted at the lease end time
Demo Scenario (Instance Reservation)
Create/Start lease with reserved host workflow
Climate Client / OpenStack Dashboard
1. reserve host(s) with some lease params
2. create reserved host, lease ID
Nova API
Nova Scheduler
Nova DB
Nova Compute
4. create pcloud with no hosts
Climate API
Climate Manager
3. create lease request
Climate DB
5. create lease, reservation record and event records
6. returns lease uuid
7. (at lease start) elects hosts and
add in pcloud
VM creation with reserved host workflow
OpenStack Dashboard /
Nova CLINova API
Nova Scheduler
Nova DB
Nova Compute
1. starts VM with scheduler hint : reservation uuid
2. filters hosts only within the pcloud(=reservation)
● Hosts reservation basic features● Deferred reserving of compute nodes● Simple lease prolonging
What have we started with (physical use case)?
● Physical reservations○ Capacity planning at lease creation○ Best-effort mode○ Energy efficiency feature for hosts
● Core functionality○ Notification center○ Support of different reservation concepts
What shall we do later?
● Nova instances reservation support● Reservations without reusing resources● Support immediate reservations● Simple lease prolonging● Draft notification opportunity
What have we started with (virtual use case)?
● Virtual reservations○ Add resource reuse mechanism○ Support for all OpenStack virtual resources
● Core functionality○ Notification center○ Clever reservation prolonging mechanism
(support for OpenStack quotas)○ Support of different reservation concepts
What shall we do later?
● Base commits already merged into upstream(DB layer, all utilities and service preparing mechanism, REST API)
● On review○ Hosts reservation changes○ Manager Service with Keystone trusts support○ Basic VM plugin
Community related questions
● Climate Github - http://goo.gl/xjikfb● Climate Wiki Page - http://goo.gl/wbQEMq● Physical reservations Blueprint - http://goo.
gl/oFNTvu● Open Climate changes - http://goo.gl/cI9tmD● Open Climate client changes - http://goo.
gl/Gds8Py● Climate + Devstack - http://goo.gl/1saK5D
Useful links
Q&A
Thank you for the attentionDina Belova, [email protected] Bauza, [email protected]