Professional Documents
Culture Documents
10 - Heat
10 - Heat
Heat-
OpenStack Orchestration
Module 10 Objectives
By the end of this lecture module, you should be able to explain for Heat:
• Purpose, function and architecture
• Functional integration with other OpenStack projects and in particular the
integration of alarm notification with Telemetry
• The structure and function of a Heat Orchestration Template
• How Heat enables autoscaling functionality in OpenStack
OpenStack Orchestration (Heat)
Network
Block
Neutron
Image
Storage
Store
Glance
Cinder
OpenStack
Object
Core
AuthX
Storage
Keystone
Swi7
Compute
Orchestra)on
Nova
Heat
● Manage stacks
● Manage resources
8
Heat (OpenStack Orchestration)
• Repeatable, fully automated orchestration of deployments within OpenStack
• Heat also provides an auto scaling service that integrates with Ceilometer.
• Templates can also specify the relationships between resources.
Example Heat Orchestration Template
heat_template_version: 2013-05-23
server1_port:
type: OS::Neutron::Port
description: Test Template
properties:
network: { get_param: NetName }
parameters:
ImageName:
type: string outputs:
description: Image use to boot a server server1_private_ip:
NetName: description: IP address of the server in the
type: string private network
description: Network ID for the server value: { get_attr: [ server1, first_address ] }
resources:
server1:
type: OS::Nova::Server
properties:
name: "Test server"
image: { get_param: ImageName }
flavor: "m1.tiny"
networks:
- port: { get_resource: server1_port }
Heat Orchestration Flow
Input: Template
Input: URL or
Parameters Template File /
Parameter Data
Heat Engine
Heat Autoscaling
• Provides an auto scaling service that integrates with Ceilometer.
• Ceilometer tells Heat about Alarm events and Heat scales a Group based on
a Policy decision to scale up or down
Example:
https://github.com/openstack/heat-templates/blob/master/hot/autoscaling.yaml
(includes a sub-template too!):
https://github.com/openstack/heat-templates/blob/master/hot/lb_server.yaml
Heat Review
Administration Guide:
http://docs.openstack.org/admin-guide-cloud/content/ch_admin-openstack-
orchestration.html