Watcher is an open source software package which provides a flexible and scalable resource optimization service for multi-tenant OpenStack-based clouds.
Watcher provides a complete optimization loop—including everything from a metrics receiver, optimization processor and an action plan applier. This provides a robust framework to realize a wide range of cloud optimization goals, including the reduction of data center operating costs, increased system performance via intelligent virtual machine migration,increased energy efficiency, etc.
The overall goal is that OpenStack-based clouds equipped with Watcher will decrease their Total Cost of Ownership by way of more efficient use of their infrastructure through targeted optimizations and close-loop automation.
In this presentation we will go over the state of Watcher as it is today, its architecture, the team’s accomplishments for the Mitaka release and our plans for the N-release and beyond.
Watcher, a Resource Manager for OpenStack: Plans for the N-release and Beyond
1. Watcher, a Resource Optimizer
for OpenStack: Plans for Newton
and Beyond
Austin Summit—April 28, 2016
ANTOINE CABOT (WATCHER PTL, b<>com)
JOE CROPPER (IBM)
SUSANNE BALLE (INTEL)
2. Watcher Mission Statement
Provide a flexible and scalable resource optimization service for multi-
tenant OpenStack-based Clouds
Provide a framework to implement a wide range of optimization goals
Provide a pluggable architecture for new optimization algorithms and new
data metrics
• Energy Aware optimizations e.g. outlet temperature
• Workload consolidations and re-balancing optimizations
“Out-of-box” value, albeit extensible!
https://wiki.openstack.org/wiki/watcher
2
4. Key Features for Watcher
Watcher provides:
• Cloud optimization using VM live migration in case of imbalance detection
• Granularity of optimization with multiple goals setting from a set of hosts to an entire
cloud
• Evolutivity via its flexible plugin structure
• « On-the-shelf » optimization strategies based on CPU, RAM and Energy
Watcher can run in:
• “ADVISE MODE” for auditing before acting
• “ACTIVE MODE” for always-on optimization (under development)
• “VERBOSE MODE” for detailed optimization decision tracking (under development)
4
5. Watcher in the OpenStack Ecosystem
5
Watcher leverages services provided by other
OpenStack projects
• VM live migration and resize
• Metric collection
• Power cycle bare metal nodes
Monitors the infrastructure and performs
optimizations on-demand
Enables new ways for OpenStack
administrators to reduce The Cloud’s TCO
Watcher
Nova(*)
Keystone
(*)
Oslo(*)Ironic(*)
Ceilometer(*)
*Other names and brands may be claimed as the property of others.
6. Watcher Workflow and Maturity
Profile
Apply
Plan
Monitor
Optimize
Analyse
cost model constraints
Virtual machine IOPS,
energy consumption,
resources usage
Aggregate flows of
events from the
infrastructure and
take action
Profile and predict
virtual machine
resource usage
Find trade-offs between
objectives and constraints
Schedule actions such that all
security, dependency and
performance requirements are met.
Apply the optimal state
where the infrastructure
is utilized as efficiently
as specified in goals.
6 of 8
objective
3 of 8
1 of 8
Maturity level
6
8. Workflow Description
1. Create a goal with a specific strategy
• Goal is associated with a strategy in watcher.conf
• Goal can be reused by another template
2. Create an audit template with a specific goal
• Template can be reused by another audit
3. Create an audit with a specific audit template
• This audit will be triggered immediately in one shot or in a loop at a
given interval
4. Audit will generate an action plan
5. Applier will take action manually or automatically 8
10. Outlet Temperature Strategy Logic
Not found
Not found
Not found
Hypervisors with
enough resource
Hypervisor with
lowest outlet T
Action Plan
VM Resource
neededHypervisors
with outlet T
Hypervisors
Over Threshold
Pick one VM of
the Hypervisor
Filter
Sort
Telemetry from Ceilometer
and data of hypervisors
from Nova
Not found
Sort
10
11. Watcher’s Current State and Next Steps
11
Project Identified &
Early Prototyping
Presented in
Vancouver
Formed Initial
Project Team
Mission
Statement & Key
Uses Cases
Identified
Build Out
Architecture
Working Code
• Rebalance on server outlet
temperature and additional
telemetry
• DevStack integration
• And much more …
• Sparked
community
interest
OpenStack
compliant and
ready for small
production
deployment
• Pluggable strategy
• Additional strategies
coming from partners
• Become part of “Big
Tent” for Newton
OpenStack
compliant and
ready for large
production
deployment
12. Mitaka Release: Framework Improvements
Setup all the OpenStack Tooling and processes for the project
to run as an OpenStack project
Improved Watcher infrastructure
• Watcher integration with ceilometer
• Dynamic strategy load
• DevStack plugin
• Task Flow integration
• Tempest integration
• Multi-node support on the Gate
• Threshold optimization
• Watcher Dashboard
12
13. Mitaka Release: Additional Strategies
Outlet temperature strategy based on Thermal Telemetry
Rebalance VMs on physical servers strategy based on
CPU/socket count/usage
Load consolidation strategy based on a heuristic algorithm
which focuses on measured CPU utilization and tries to
minimize hosts which have too much or too little load
Overload standard deviation strategy designed to integrate
load balancing strategy based on a standard deviation
algorithm
13
14. Plans for the Newton Release
Watcher scoring module
• Standardize interactions between the Watcher Decision Engine and
Scoring engines, e.g., external machine learning tools or
frameworks
Active mode for always-on optimization
Verbose mode for detailed optimization decision tracking
Provide efficacy indicator to the admin before running an
optimization
Define a precise and extensible scope of resources to
optimize (compute, storage, network…)
Provide more and more “value-added” optimization strategies
14
15. Any Questions?
Want to learn more?!?
• Wiki : https://wiki.openstack.org/wiki/Watcher
• IRC : #openstack-watcher
If you are interested, we would love for you to get involved –
come and see us!
Brown Bag session available on YouTube
15