SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
201 Walkthrough
Autoscaling OpenStack
natively with Heat,
Ceilometer and LBaaS
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Speakers
Jason Grimm
Consulting Systems Engineer
Cisco OpenStack Private Cloud
Sharmin Choksey
Technical Leader
Cisco Cloud Services
Shixiong Shang
Chief Technology Officer
Nephos6
Agenda
Introductions <
About The Workshop <
Environment Setup <
Background & Use Cases <
Services Enabling Autoscale <
Hands-On <
About The Workshop Tips and Logistics
Content and Schedule
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
▪ We all work for or with Cisco, but this is not a marketing workshop
▪ Highly technical and all content is 100% FOSS (Free and Open-Source Software)
▪ All Materials available at https://github.com/grimmtheory/autoscale
▪ Please connect to http://cisco.webex.com/rooms/jasgrimm
▪ Chat, voting, questions, recording, etc.
▪ Allows us to see when everyone is ready to proceed
▪ Session recording will be made available after the summit
▪ Please work with your peers at your table!
▪ Bandwidth constraints and technical issues mean might not get a test environment up in time
▪ Some of you may have more experience with this technology and can assist others
▪ General collaboration and discussion
Workshop Tips and Logistics
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Content and Schedule
Introductions
About The Workshop
** Environment Setup **
Autoscale Background and Use Case
Services Enabling Autoscale
Hands-On Workshop
Lab 1
Lab 2.1
Lab 2.2
Lab 3
Q & A
Open Discussion
Close
30 Minutes
(or less)
45 Minutes
(or more)
15 Minutes
(or less, as needed)
Environment Setup
Virtual Box, Ubuntu, DevStack
Install test environment
Install content location and examples
Test environment logical architecture
Test environment configuration
Test environment build process
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Install Test Environment…
Instructions
Before we can begin working with LBaaS,
autoscale, etc. We need an environment.
For this purpose we’ve chosen a locally
installed environment due to past
experiences with WIFI coverage and
bandwidth at OpenStack summits.
1) Mount media
2) Copy data folder over locally
3) Install VirtualBox
4) Install Vagrant (Optional)
5) Boot Virtual Machine
DVD Local Repo USB Key Internet
HTTP HTTPMOUNTMOUNT
Step 1
Mount Data
Step 2
Copy Data
Step 3
Install Apps
Step 4
Boot VM
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Install content location and examples
Also available at:
• My VM - http://192.168.1.100/autoscale
• My Cloud Server - http://38.84.67.227/autoscale
• VirtualBox - https://www.virtualbox.org/wiki/Downloads
Vagrantfile
Git clone example
Wget example
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Test environment logical architecture
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Test environment configuration
Disabled
Trove
Sahara
Cinder
Nova Network
Tempest
Swift
Enabled
MySQL
RabbitMQ
Keystone
Horizon
Glance
Neutron
Ceilometer
Heat
OS & OpenStack Configuration
$HOME = /home/vagrant/devstack
Operating System = Ubuntu 14.04.x
OpenStack version = “stable/kilo”
eth0 = NAT, default GW
eth1 = Management / API network
eth2 = Neutron / Bridge network
Open vSwitch
L3 / DHCP / Floating IP
“Flat” networking also available
No tenant VLANs, FWaaS or VPNaaS
Vagrant / VirtualBox Configuration
Vagrant v.1.7.2
VirtualBox 4.3.28
eth0 = NAT
eth1 = Host Only 192.168.33.2 /24
eth2 = Host Only 0.0.0.0
VT-x off, APIC-IO off, promiscuous on eth2
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Test environment build process
Methodology
• Tools-based install and config of the OS,
DevStack and post-install tasks.
• Automate difficult configuration of services
and pre-requisites (Neutron, Heat,
Ceilometer, OVS, custom images, etc.)
Build Options
• Base - OS install & DevStack configured
• Staged - Base + DevStack install completed
and basic configuration (security groups,
networks and subnets created, etc.)
• Complete - Staged + all objects created
(LBs, VIPs, Ceilometer alarms, Heat
templates, etc.)
CREATE MACHINE
2 vCPU, 4 GB RAM, VT-x, APIC-IO
3 NICs - eth0 NAT, eth1 API, eth3 VMs
Promiscuous mode for Neutron Bridge
DEVSTACK PRE INSTALL
Install pre-requisites
Clone git repositories
Configure local.conf, bridges,
routes users, groups,iptables,
ovs, sysctl, permissions, etc.
INSTALL OS
Base Install
Patch / Update
Install VBox
extensions
DEVSTACK INSTALL
Install and monitor
DevStack Install
DEVSTACK POST
INSTALL BASIC
Add DNS to subnets
Edit security groups
Create / install SSH keys
DEVSTACK POST
INSTALL ADV.
Create load balancers
Add members to pool
Create VIPs
COMPLETE
Snapshot the
virtual machine
Background
and Use Cases
What is
Autoscaling and
when / how is it
used?
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Autoscale Background and Use Cases
What is Autoscaling…?
“…a method used in cloud computing, whereby the
amount of resources in a server farm scales
automatically based on the load on the farm. It is closely
related to, and builds upon, the idea of load balancing.”
Who uses Autoscaling…?
Any workload that benefits from programmatic scaling up or down
as load dictates.
Particularly true from a cost perspective when high workloads are
very infrequent.
Some examples are:
• Retail - Black Friday, holidays, video game / movie launch, etc.
• Academic / Research - HPCC
• Media - Video / Audio rendering
• Analytics - Big data, data mining, data modeling
• Security - Federal or private data heuristic, cyber defense, etc.
How does Autoscaling work…?
Server
Load
Stress
Meter
Alarm Action
Server
Result+ + + +
Services Enabling
Autoscaling
An overview of:
Heat
Ceilometer
Neutron w/ LBaaS
Heat Overview
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
HEAT

OpenStack Orchestration Service

Heat makes “clouds” rise
heat
The heat tool is a CLI which communicates with
the heat-api to execute AWS CloudFormation
APIs. End developers could also use the heat
REST API directly.
heat-api
The heat-api component provides an OpenStack-
native REST API that processes API requests by
sending them to the heat-engine over RPC.
heat-api-cfn
The heat-api-cfn component provides an AWS
Query API that is compatible with AWS
CloudFormation and processes API requests by
sending them to the heat-engine over RPC.
heat-engine
The heat engine’s main responsibility is to
orchestrate the launching of templates and
provide events back to the API consumer.
Infrastructure resource abstraction and orchestration:
• Physical compute Power
• Physical switches
• Physical block Storage
• …
OpenStack resource abstraction and orchestration:
• VM Instances
• Virtual Networks
• Virtual Routers
• …
“Typically” Virtual
(See Ironic Project)
Ceilometer & Neutron LBaaS Overview
Ceilometer & Heat Overview
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Ceilometer Overview
1"
Polling"agents"
Meter" Transformer(s
)"
New"
Meter"
Publishing"Pipeline"
API" Database"
AMQP"
Receiver"
Collector"
Other"
OpenStack""
Service"
alarm"
evaluator"
Publisher(s)"
alarm"
evaluator"
Alarm"
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Ceilometer and Neutron LBaaS
2"
Polling"agents"
Meter"
Neutron"
(LBaaS)"
Neutron"
API"
LBaaS"Default"Meters" Type" Unit"
network.services.lb.ac0ve.connec0ons1 gauge1 connec0on1
network.services.lb.incoming.bytes1 cumula0ve1 B1
network.services.lb.total.connec0ons1 cumula0ve1 connec0on1
network.services.lb.vip1 gauge1 vip1
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Ceilometer and Neutron LBaaS
3"
Transformer(s
)"
New"
Meter"
Publishing"Pipeline"
Publisher(s)"
sinks:&
&&&&'&name:&lb_total_conn&
&&&&&&transformers:&
&&&&&&&&&&'&name:&"rate_of_change"&
&&&&&&&&&&&&parameters:&
&&&&&&&&&&&&&&&&source:&
&&&&&&&&&&&&&&&&&&&map_from:&
&&&&&&&&&&&&&&&&&&&&&&&name:&"network.services.lb.total.connec;ons"&
&&&&&&&&&&&&&&&&&&&&&&&unit:&"connec;on"&
&&&&&&&&&&&&&&&&target:&
&&&&&&&&&&&&&&&&&&&&map_to:&
&&&&&&&&&&&&&&&&&&&&&&&&name:&"network.services.lb.total.connec;ons.rate"&
&&&&&&&&&&&&&&&&&&&&&&&&unit:&"connec;ons/s"&
&&&&&&&&&&&&&&&&&&&&type:&"gauge"&
&&&&&&publishers:&
&&&&&&&&&&'&no;fier://&
sources:&
&&&&'&name:&lb_total_conn&
&&&&&&interval:&60&
&&&&&&meters:&
&&&&&&&&&&'&"network.services.lb.total.connec;ons"&
&&&&&&sinks:&
&&&&&&&&&&'&lb_total_conn&
Configuration file: /etc/ceilometer/pipeline.yaml
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Ceilometer and Neutron LBaaS
4"
API" Database"
Receiver"
Collector"
ceilometer sample-list -m network.services.lb.total.connections.rate!
+--------------------------------------+--------------------------------------------+-------+--------+---------------+---------------------+!
| Resource ID | Name | Type | Volume | Unit | Timestamp |!
+--------------------------------------+--------------------------------------------+-------+--------+---------------+---------------------+!
| 9d944aec-7d66-46b5-a71b-434e4e9fa98f | network.services.lb.total.connections.rate | gauge | 0.0 | connections/s | 2015-05-13T02:45:02 |!
| 9d944aec-7d66-46b5-a71b-434e4e9fa98f | network.services.lb.total.connections.rate | gauge | 0.0 | connections/s | 2015-05-13T02:44:02 |!
| 9d944aec-7d66-46b5-a71b-434e4e9fa98f | network.services.lb.total.connections.rate | gauge | 0.0 | connections/s | 2015-05-13T02:43:02 |!
+--------------------------------------+--------------------------------------------+-------+--------+---------------+---------------------+!
!
!
!
ceilometer statistics -m network.services.lb.total.connections.rate!
+--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+!
| Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |!
+--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+!
| 0 | 2015-05-13T02:16:02 | 2015-05-13T02:47:02 | 0.0 | 0.0 | 0.0 | 0.0 | 32 | 1860.0 | 2015-05-13T02:16:02 | 2015-05-13T02:47:02 |!
+--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+!
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Ceilometer and Neutron LBaaS
5"
API"
alarm"
evaluator"
alarm"
evaluator"
Alarm"
ceilometer alarm-threshold-create --name lb_conn_rate_hi !
--description 'lb connection rate is too high' --severity critical --enabled True !
--meter-name network.services.lb.total.connections.rate !
--period 60 --evaluation-periods 3 --statistic avg --comparison-operator gt --threshold 2.0 !
--repeat-actions True!
ceilometer alarm-list!
+----------+-----------------+--------+----------+---------+------------+-----------------------------------------------------------------+!
| Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition |!
+----------+-----------------+--------+----------+---------+------------+-----------------------------------------------------------------+!
| uuid | lb_conn_rate_hi | ok | critical | True | True | network.services.lb.total.connections.rate > 2.0 during 3 x 60s |!
+----------+-----------------+--------+----------+---------+------------+-----------------------------------------------------------------+!
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Ceilometer and Heat
6"
Polling"agents"
Meter" Transformer(s
)"
New"
Meter"
Publishing"Pipeline"
API" Database"
AMQP"
Receiver"
Collector"
alarm"
evaluator"
Publisher(s)"
alarm"
evaluator"
Alarm"
Heat"
Hands-On
Workshop
Heat feature progression
Basic Heat Operations
Advanced Heat Operations
Autoscale
‹#›
Auth Model
• Icehouse
• Security Isolation
• Keystone Domain “heat”
• Stack Domain Users managed by
heat_admin_domain
• Pre-configured in devstack
• Requires Keystone v3
Resource Groups
• Icehouse
• De-coupling hierarchical nested
stacks
Stack Snapshot/Rollback
Provider Resources
• Icehouse
• Useful in Template composition
TripleO Heat Templates
• Leverages Resource Groups,
Provider Resources and
SoftwareConfig Resource
Key enhancements in Icehouse and
• Kilo
SoftwareConfig Resources
• Icehouse
• Useful in Template composition
‹#›
26
Heat Autoscaling - Lab Exercise - 1 (Simple-Server)
Spawn a VM
Injects an ssh key
Security groups
VM port fixed ip + security
group
Floating ip associated it with the
fixed ip
Installs a simulated http server
via the -init user-data script
heat stack-create simple-stack -f simple-server.yaml
--parameters 
"key_name=<key_name>
;node_name=<node_name>
;node_server_flavor=<node_server_flavor>
;node_image_name=<node_image_name>;
;floating_net_id=<floating_net_id>;
;private_net_id=<private_net_id>;
;private_subnet_id=<private_subnet_id>"
User-defined
Constrained and/or
default values
Type/Description
Fundamental
blocks
Consumed by the
Heat engine to
orchestrate
‹#›
27
Heat Autoscaling - Lab Exercise - 2 Part 1 (Load balancer)
lb vip :: floating ip
curl -X GET http://128.107.2.111
503 Service Not Available
‹#›
28
Heat Autoscaling - Lab Ex - 2 Part 2 (Adding Members)
web-server.yaml environment.yaml
heat stack-create lb-members-stack -f lb-members.yaml 
-e environment.yaml --parameters 
"key_name=<key_name>
;node_name=<node_name>
;node_server_flavor=<node_server_flavor>
;node_image_name=<node_image_name>;
;floating_net_id=<floating_net_id>;
;private_net_id=<private_net_id>;
;private_subnet_id=<private_subnet_id>;
;pool_id=<pool_id>
;capacity_count=<capacity_count>"
curl -X GET http://128.107.2.111
Welcome to 192.168.5.116
curl -X GET http://128.107.2.111
Welcome to 192.168.5.117
Nested
Resource
Identically
Configured
lb-members.yaml
Provider
Resource
‹#›
Scales arbitrary #
of resources
Resource to
be scaled
29
Heat Autoscaling - Lab Ex - 3 (Autoscaling)
lb-autoscale-members.yaml
Creates
an Alarm
on a
Action to be
taken upon Alarm
Raise
Action to be
executed against
resource
Connection rate crosses 3 per second for a
consecutive period of 60 seconds each, the
lb_connection_rate_high will be raised and a
scaleup_policy will get executed
References
Web Links
(Content we used as reference
when building this lab)
Extra slides
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
Summit Lab / Workshop
▪ Materials for the presentation are available for download at https://github.com/grimmtheory/autoscale
DevStack
▪ DevStack Configuration Guide – http://docs.openstack.org/developer/devstack/configuration.html
Ceilometer
Heat
▪ Heat main page - https://wiki.openstack.org/wiki/Heat
▪ Heat developer documentation -http://docs.openstack.org/developer/heat/
Heat operations documentation
Heat main github repository
Heat templates github respository
Heat user template guide
Heat developer template guide
▪ Heat Orchestration Template (HOT) guide – http://docs.openstack.org/developer/heat/template_guide/hot_guide.html
▪ Heat on DevStack guide – http://docs.openstack.org/developer/heat/getting_started/on_devstack.html
References
Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved.
References
Title Link
Autoscale workshop repository https://github.com/grimmtheory/
Heat: main page https://wiki.openstack.org/wiki/Heat
Heat: developer documentation http://docs.openstack.org/developer/heat/
Heat: operations documentation
Heat main github repository

Mais conteúdo relacionado

Mais procurados

OpenStack Heat slides
OpenStack Heat slidesOpenStack Heat slides
OpenStack Heat slides
dbelova
 
Template Languages for OpenStack - Heat and TOSCA
Template Languages for OpenStack - Heat and TOSCATemplate Languages for OpenStack - Heat and TOSCA
Template Languages for OpenStack - Heat and TOSCA
Cloud Native Day Tel Aviv
 
Enhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world applicationEnhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world application
openstackindia
 

Mais procurados (20)

Heat up your stack
Heat up your stackHeat up your stack
Heat up your stack
 
OpenStack Heat slides
OpenStack Heat slidesOpenStack Heat slides
OpenStack Heat slides
 
Eric Williams (Rackspace) - Using Heat on OpenStack
Eric Williams (Rackspace) - Using Heat on OpenStackEric Williams (Rackspace) - Using Heat on OpenStack
Eric Williams (Rackspace) - Using Heat on OpenStack
 
Template Languages for OpenStack - Heat and TOSCA
Template Languages for OpenStack - Heat and TOSCATemplate Languages for OpenStack - Heat and TOSCA
Template Languages for OpenStack - Heat and TOSCA
 
Enhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world applicationEnhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world application
 
Namos openstack-manager
Namos openstack-managerNamos openstack-manager
Namos openstack-manager
 
OpenStack Summit Vancouver: Lessons learned on upgrades
OpenStack Summit Vancouver:  Lessons learned on upgradesOpenStack Summit Vancouver:  Lessons learned on upgrades
OpenStack Summit Vancouver: Lessons learned on upgrades
 
How to use TripleO tools for your own project
How to use TripleO tools for your own projectHow to use TripleO tools for your own project
How to use TripleO tools for your own project
 
Hot tutorials
Hot tutorialsHot tutorials
Hot tutorials
 
TripleO
 TripleO TripleO
TripleO
 
Designing OpenStack Architectures
Designing OpenStack ArchitecturesDesigning OpenStack Architectures
Designing OpenStack Architectures
 
Automating Application over OpenStack using Workflows
Automating Application over OpenStack using WorkflowsAutomating Application over OpenStack using Workflows
Automating Application over OpenStack using Workflows
 
Red Hat Enteprise Linux Open Stack Platfrom Director
Red Hat Enteprise Linux Open Stack Platfrom DirectorRed Hat Enteprise Linux Open Stack Platfrom Director
Red Hat Enteprise Linux Open Stack Platfrom Director
 
OpenStack QA Tooling & How to use it for Production Cloud Testing | Ghanshyam...
OpenStack QA Tooling & How to use it for Production Cloud Testing | Ghanshyam...OpenStack QA Tooling & How to use it for Production Cloud Testing | Ghanshyam...
OpenStack QA Tooling & How to use it for Production Cloud Testing | Ghanshyam...
 
Triple o overview
Triple o overviewTriple o overview
Triple o overview
 
Openstack heat & How Autoscaling works
Openstack heat & How Autoscaling worksOpenstack heat & How Autoscaling works
Openstack heat & How Autoscaling works
 
Devstack On Demand
Devstack On DemandDevstack On Demand
Devstack On Demand
 
OpenStack Watcher
OpenStack WatcherOpenStack Watcher
OpenStack Watcher
 
Extending TripleO for OpenStack Management
Extending TripleO for OpenStack ManagementExtending TripleO for OpenStack Management
Extending TripleO for OpenStack Management
 
OpenStack and Puppet
OpenStack and PuppetOpenStack and Puppet
OpenStack and Puppet
 

Destaque

Atlas LBaaS overview
Atlas LBaaS overviewAtlas LBaaS overview
Atlas LBaaS overview
jameslinov
 
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
OpenStack
 
OpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using DjangoOpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using Django
David Lapsley
 

Destaque (15)

OpenStack Ceilometer
OpenStack CeilometerOpenStack Ceilometer
OpenStack Ceilometer
 
Ceilometer + Heat = Alarming
Ceilometer + Heat = Alarming Ceilometer + Heat = Alarming
Ceilometer + Heat = Alarming
 
CloudOps CloudStack Days, Austin April 2015
CloudOps CloudStack Days, Austin April 2015CloudOps CloudStack Days, Austin April 2015
CloudOps CloudStack Days, Austin April 2015
 
Autoscaling, Chef and New Relic
Autoscaling, Chef and New RelicAutoscaling, Chef and New Relic
Autoscaling, Chef and New Relic
 
Containerizing Network Services - Alon Harel - OpenStack Day Israel 2016
Containerizing Network Services - Alon Harel - OpenStack Day Israel 2016Containerizing Network Services - Alon Harel - OpenStack Day Israel 2016
Containerizing Network Services - Alon Harel - OpenStack Day Israel 2016
 
Openstack study-nova-02
Openstack study-nova-02Openstack study-nova-02
Openstack study-nova-02
 
Atlas LBaaS overview
Atlas LBaaS overviewAtlas LBaaS overview
Atlas LBaaS overview
 
Cloud applications
Cloud applicationsCloud applications
Cloud applications
 
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
 
OpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using DjangoOpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using Django
 
From Ceilometer to Telemetry: not so alarming!
From Ceilometer to Telemetry: not so alarming!From Ceilometer to Telemetry: not so alarming!
From Ceilometer to Telemetry: not so alarming!
 
The 'Untold' OpenStack Enterprise Customer Stories: Anthony Rees & Alex Tesch...
The 'Untold' OpenStack Enterprise Customer Stories: Anthony Rees & Alex Tesch...The 'Untold' OpenStack Enterprise Customer Stories: Anthony Rees & Alex Tesch...
The 'Untold' OpenStack Enterprise Customer Stories: Anthony Rees & Alex Tesch...
 
L4-L7 Application Services with Avi Networks
L4-L7 Application Services with Avi NetworksL4-L7 Application Services with Avi Networks
L4-L7 Application Services with Avi Networks
 
OpenStack Architecture and Use Cases
OpenStack Architecture and Use CasesOpenStack Architecture and Use Cases
OpenStack Architecture and Use Cases
 
OpenStack Neutron Tutorial
OpenStack Neutron TutorialOpenStack Neutron Tutorial
OpenStack Neutron Tutorial
 

Semelhante a Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS

Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAutomating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps Approach
Akshaya Mahapatra
 
Optimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deploymentsOptimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deployments
Animesh Singh
 

Semelhante a Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS (20)

As a Service: Cloud Foundry on OpenStack - Lessons Learnt
As a Service: Cloud Foundry on OpenStack - Lessons LearntAs a Service: Cloud Foundry on OpenStack - Lessons Learnt
As a Service: Cloud Foundry on OpenStack - Lessons Learnt
 
Automating hard things may 2015
Automating hard things   may 2015Automating hard things   may 2015
Automating hard things may 2015
 
tack Deployment in the Enterprise
tack Deployment in the Enterprisetack Deployment in the Enterprise
tack Deployment in the Enterprise
 
Kubernetes deployment on bare metal with container linux
Kubernetes deployment on bare metal with container linuxKubernetes deployment on bare metal with container linux
Kubernetes deployment on bare metal with container linux
 
20171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01
 
Oracle E-Business Suite On Oracle Cloud
Oracle E-Business Suite On Oracle CloudOracle E-Business Suite On Oracle Cloud
Oracle E-Business Suite On Oracle Cloud
 
BEST REST in OpenStack
BEST REST in OpenStackBEST REST in OpenStack
BEST REST in OpenStack
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
 
Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAutomating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps Approach
 
OpenStack with OpenDaylight
OpenStack with OpenDaylightOpenStack with OpenDaylight
OpenStack with OpenDaylight
 
OpenStack Enabling DevOps
OpenStack Enabling DevOpsOpenStack Enabling DevOps
OpenStack Enabling DevOps
 
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
 
To Build My Own Cloud with Blackjack…
To Build My Own Cloud with Blackjack…To Build My Own Cloud with Blackjack…
To Build My Own Cloud with Blackjack…
 
Kayobe_desc
Kayobe_descKayobe_desc
Kayobe_desc
 
Baylisa - Dive Into OpenStack
Baylisa - Dive Into OpenStackBaylisa - Dive Into OpenStack
Baylisa - Dive Into OpenStack
 
VMworld 2013: Deploying vSphere with OpenStack: What It Means to Your Cloud E...
VMworld 2013: Deploying vSphere with OpenStack: What It Means to Your Cloud E...VMworld 2013: Deploying vSphere with OpenStack: What It Means to Your Cloud E...
VMworld 2013: Deploying vSphere with OpenStack: What It Means to Your Cloud E...
 
[Rakuten TechConf2014] [F-4] At Rakuten, The Rakuten OpenStack Platform and B...
[Rakuten TechConf2014] [F-4] At Rakuten, The Rakuten OpenStack Platform and B...[Rakuten TechConf2014] [F-4] At Rakuten, The Rakuten OpenStack Platform and B...
[Rakuten TechConf2014] [F-4] At Rakuten, The Rakuten OpenStack Platform and B...
 
Optimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deploymentsOptimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deployments
 
AWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for GovernmentAWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for Government
 

Último

Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Monica Sydney
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理
F
 

Último (20)

Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
PIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsxPIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsx
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...
Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...
Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...
 
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
 
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptxResearch Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理
 
Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 

Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS

  • 1. 201 Walkthrough Autoscaling OpenStack natively with Heat, Ceilometer and LBaaS
  • 2. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Speakers Jason Grimm Consulting Systems Engineer Cisco OpenStack Private Cloud Sharmin Choksey Technical Leader Cisco Cloud Services Shixiong Shang Chief Technology Officer Nephos6 Agenda Introductions < About The Workshop < Environment Setup < Background & Use Cases < Services Enabling Autoscale < Hands-On <
  • 3. About The Workshop Tips and Logistics Content and Schedule
  • 4. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. ▪ We all work for or with Cisco, but this is not a marketing workshop ▪ Highly technical and all content is 100% FOSS (Free and Open-Source Software) ▪ All Materials available at https://github.com/grimmtheory/autoscale ▪ Please connect to http://cisco.webex.com/rooms/jasgrimm ▪ Chat, voting, questions, recording, etc. ▪ Allows us to see when everyone is ready to proceed ▪ Session recording will be made available after the summit ▪ Please work with your peers at your table! ▪ Bandwidth constraints and technical issues mean might not get a test environment up in time ▪ Some of you may have more experience with this technology and can assist others ▪ General collaboration and discussion Workshop Tips and Logistics
  • 5. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Content and Schedule Introductions About The Workshop ** Environment Setup ** Autoscale Background and Use Case Services Enabling Autoscale Hands-On Workshop Lab 1 Lab 2.1 Lab 2.2 Lab 3 Q & A Open Discussion Close 30 Minutes (or less) 45 Minutes (or more) 15 Minutes (or less, as needed)
  • 6. Environment Setup Virtual Box, Ubuntu, DevStack Install test environment Install content location and examples Test environment logical architecture Test environment configuration Test environment build process
  • 7. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Install Test Environment… Instructions Before we can begin working with LBaaS, autoscale, etc. We need an environment. For this purpose we’ve chosen a locally installed environment due to past experiences with WIFI coverage and bandwidth at OpenStack summits. 1) Mount media 2) Copy data folder over locally 3) Install VirtualBox 4) Install Vagrant (Optional) 5) Boot Virtual Machine DVD Local Repo USB Key Internet HTTP HTTPMOUNTMOUNT Step 1 Mount Data Step 2 Copy Data Step 3 Install Apps Step 4 Boot VM
  • 8. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Install content location and examples Also available at: • My VM - http://192.168.1.100/autoscale • My Cloud Server - http://38.84.67.227/autoscale • VirtualBox - https://www.virtualbox.org/wiki/Downloads Vagrantfile Git clone example Wget example
  • 9. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Test environment logical architecture
  • 10. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Test environment configuration Disabled Trove Sahara Cinder Nova Network Tempest Swift Enabled MySQL RabbitMQ Keystone Horizon Glance Neutron Ceilometer Heat OS & OpenStack Configuration $HOME = /home/vagrant/devstack Operating System = Ubuntu 14.04.x OpenStack version = “stable/kilo” eth0 = NAT, default GW eth1 = Management / API network eth2 = Neutron / Bridge network Open vSwitch L3 / DHCP / Floating IP “Flat” networking also available No tenant VLANs, FWaaS or VPNaaS Vagrant / VirtualBox Configuration Vagrant v.1.7.2 VirtualBox 4.3.28 eth0 = NAT eth1 = Host Only 192.168.33.2 /24 eth2 = Host Only 0.0.0.0 VT-x off, APIC-IO off, promiscuous on eth2
  • 11. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Test environment build process Methodology • Tools-based install and config of the OS, DevStack and post-install tasks. • Automate difficult configuration of services and pre-requisites (Neutron, Heat, Ceilometer, OVS, custom images, etc.) Build Options • Base - OS install & DevStack configured • Staged - Base + DevStack install completed and basic configuration (security groups, networks and subnets created, etc.) • Complete - Staged + all objects created (LBs, VIPs, Ceilometer alarms, Heat templates, etc.) CREATE MACHINE 2 vCPU, 4 GB RAM, VT-x, APIC-IO 3 NICs - eth0 NAT, eth1 API, eth3 VMs Promiscuous mode for Neutron Bridge DEVSTACK PRE INSTALL Install pre-requisites Clone git repositories Configure local.conf, bridges, routes users, groups,iptables, ovs, sysctl, permissions, etc. INSTALL OS Base Install Patch / Update Install VBox extensions DEVSTACK INSTALL Install and monitor DevStack Install DEVSTACK POST INSTALL BASIC Add DNS to subnets Edit security groups Create / install SSH keys DEVSTACK POST INSTALL ADV. Create load balancers Add members to pool Create VIPs COMPLETE Snapshot the virtual machine
  • 12. Background and Use Cases What is Autoscaling and when / how is it used?
  • 13. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Autoscale Background and Use Cases What is Autoscaling…? “…a method used in cloud computing, whereby the amount of resources in a server farm scales automatically based on the load on the farm. It is closely related to, and builds upon, the idea of load balancing.” Who uses Autoscaling…? Any workload that benefits from programmatic scaling up or down as load dictates. Particularly true from a cost perspective when high workloads are very infrequent. Some examples are: • Retail - Black Friday, holidays, video game / movie launch, etc. • Academic / Research - HPCC • Media - Video / Audio rendering • Analytics - Big data, data mining, data modeling • Security - Federal or private data heuristic, cyber defense, etc. How does Autoscaling work…? Server Load Stress Meter Alarm Action Server Result+ + + +
  • 14. Services Enabling Autoscaling An overview of: Heat Ceilometer Neutron w/ LBaaS
  • 16. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. HEAT
 OpenStack Orchestration Service
 Heat makes “clouds” rise heat The heat tool is a CLI which communicates with the heat-api to execute AWS CloudFormation APIs. End developers could also use the heat REST API directly. heat-api The heat-api component provides an OpenStack- native REST API that processes API requests by sending them to the heat-engine over RPC. heat-api-cfn The heat-api-cfn component provides an AWS Query API that is compatible with AWS CloudFormation and processes API requests by sending them to the heat-engine over RPC. heat-engine The heat engine’s main responsibility is to orchestrate the launching of templates and provide events back to the API consumer. Infrastructure resource abstraction and orchestration: • Physical compute Power • Physical switches • Physical block Storage • … OpenStack resource abstraction and orchestration: • VM Instances • Virtual Networks • Virtual Routers • … “Typically” Virtual (See Ironic Project)
  • 17. Ceilometer & Neutron LBaaS Overview Ceilometer & Heat Overview
  • 18. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Ceilometer Overview 1" Polling"agents" Meter" Transformer(s )" New" Meter" Publishing"Pipeline" API" Database" AMQP" Receiver" Collector" Other" OpenStack"" Service" alarm" evaluator" Publisher(s)" alarm" evaluator" Alarm"
  • 19. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Ceilometer and Neutron LBaaS 2" Polling"agents" Meter" Neutron" (LBaaS)" Neutron" API" LBaaS"Default"Meters" Type" Unit" network.services.lb.ac0ve.connec0ons1 gauge1 connec0on1 network.services.lb.incoming.bytes1 cumula0ve1 B1 network.services.lb.total.connec0ons1 cumula0ve1 connec0on1 network.services.lb.vip1 gauge1 vip1
  • 20. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Ceilometer and Neutron LBaaS 3" Transformer(s )" New" Meter" Publishing"Pipeline" Publisher(s)" sinks:& &&&&'&name:&lb_total_conn& &&&&&&transformers:& &&&&&&&&&&'&name:&"rate_of_change"& &&&&&&&&&&&&parameters:& &&&&&&&&&&&&&&&&source:& &&&&&&&&&&&&&&&&&&&map_from:& &&&&&&&&&&&&&&&&&&&&&&&name:&"network.services.lb.total.connec;ons"& &&&&&&&&&&&&&&&&&&&&&&&unit:&"connec;on"& &&&&&&&&&&&&&&&&target:& &&&&&&&&&&&&&&&&&&&&map_to:& &&&&&&&&&&&&&&&&&&&&&&&&name:&"network.services.lb.total.connec;ons.rate"& &&&&&&&&&&&&&&&&&&&&&&&&unit:&"connec;ons/s"& &&&&&&&&&&&&&&&&&&&&type:&"gauge"& &&&&&&publishers:& &&&&&&&&&&'&no;fier://& sources:& &&&&'&name:&lb_total_conn& &&&&&&interval:&60& &&&&&&meters:& &&&&&&&&&&'&"network.services.lb.total.connec;ons"& &&&&&&sinks:& &&&&&&&&&&'&lb_total_conn& Configuration file: /etc/ceilometer/pipeline.yaml
  • 21. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Ceilometer and Neutron LBaaS 4" API" Database" Receiver" Collector" ceilometer sample-list -m network.services.lb.total.connections.rate! +--------------------------------------+--------------------------------------------+-------+--------+---------------+---------------------+! | Resource ID | Name | Type | Volume | Unit | Timestamp |! +--------------------------------------+--------------------------------------------+-------+--------+---------------+---------------------+! | 9d944aec-7d66-46b5-a71b-434e4e9fa98f | network.services.lb.total.connections.rate | gauge | 0.0 | connections/s | 2015-05-13T02:45:02 |! | 9d944aec-7d66-46b5-a71b-434e4e9fa98f | network.services.lb.total.connections.rate | gauge | 0.0 | connections/s | 2015-05-13T02:44:02 |! | 9d944aec-7d66-46b5-a71b-434e4e9fa98f | network.services.lb.total.connections.rate | gauge | 0.0 | connections/s | 2015-05-13T02:43:02 |! +--------------------------------------+--------------------------------------------+-------+--------+---------------+---------------------+! ! ! ! ceilometer statistics -m network.services.lb.total.connections.rate! +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+! | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |! +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+! | 0 | 2015-05-13T02:16:02 | 2015-05-13T02:47:02 | 0.0 | 0.0 | 0.0 | 0.0 | 32 | 1860.0 | 2015-05-13T02:16:02 | 2015-05-13T02:47:02 |! +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+!
  • 22. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Ceilometer and Neutron LBaaS 5" API" alarm" evaluator" alarm" evaluator" Alarm" ceilometer alarm-threshold-create --name lb_conn_rate_hi ! --description 'lb connection rate is too high' --severity critical --enabled True ! --meter-name network.services.lb.total.connections.rate ! --period 60 --evaluation-periods 3 --statistic avg --comparison-operator gt --threshold 2.0 ! --repeat-actions True! ceilometer alarm-list! +----------+-----------------+--------+----------+---------+------------+-----------------------------------------------------------------+! | Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition |! +----------+-----------------+--------+----------+---------+------------+-----------------------------------------------------------------+! | uuid | lb_conn_rate_hi | ok | critical | True | True | network.services.lb.total.connections.rate > 2.0 during 3 x 60s |! +----------+-----------------+--------+----------+---------+------------+-----------------------------------------------------------------+!
  • 23. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Ceilometer and Heat 6" Polling"agents" Meter" Transformer(s )" New" Meter" Publishing"Pipeline" API" Database" AMQP" Receiver" Collector" alarm" evaluator" Publisher(s)" alarm" evaluator" Alarm" Heat"
  • 24. Hands-On Workshop Heat feature progression Basic Heat Operations Advanced Heat Operations Autoscale
  • 25. ‹#› Auth Model • Icehouse • Security Isolation • Keystone Domain “heat” • Stack Domain Users managed by heat_admin_domain • Pre-configured in devstack • Requires Keystone v3 Resource Groups • Icehouse • De-coupling hierarchical nested stacks Stack Snapshot/Rollback Provider Resources • Icehouse • Useful in Template composition TripleO Heat Templates • Leverages Resource Groups, Provider Resources and SoftwareConfig Resource Key enhancements in Icehouse and • Kilo SoftwareConfig Resources • Icehouse • Useful in Template composition
  • 26. ‹#› 26 Heat Autoscaling - Lab Exercise - 1 (Simple-Server) Spawn a VM Injects an ssh key Security groups VM port fixed ip + security group Floating ip associated it with the fixed ip Installs a simulated http server via the -init user-data script heat stack-create simple-stack -f simple-server.yaml --parameters "key_name=<key_name> ;node_name=<node_name> ;node_server_flavor=<node_server_flavor> ;node_image_name=<node_image_name>; ;floating_net_id=<floating_net_id>; ;private_net_id=<private_net_id>; ;private_subnet_id=<private_subnet_id>" User-defined Constrained and/or default values Type/Description Fundamental blocks Consumed by the Heat engine to orchestrate
  • 27. ‹#› 27 Heat Autoscaling - Lab Exercise - 2 Part 1 (Load balancer) lb vip :: floating ip curl -X GET http://128.107.2.111 503 Service Not Available
  • 28. ‹#› 28 Heat Autoscaling - Lab Ex - 2 Part 2 (Adding Members) web-server.yaml environment.yaml heat stack-create lb-members-stack -f lb-members.yaml -e environment.yaml --parameters "key_name=<key_name> ;node_name=<node_name> ;node_server_flavor=<node_server_flavor> ;node_image_name=<node_image_name>; ;floating_net_id=<floating_net_id>; ;private_net_id=<private_net_id>; ;private_subnet_id=<private_subnet_id>; ;pool_id=<pool_id> ;capacity_count=<capacity_count>" curl -X GET http://128.107.2.111 Welcome to 192.168.5.116 curl -X GET http://128.107.2.111 Welcome to 192.168.5.117 Nested Resource Identically Configured lb-members.yaml Provider Resource
  • 29. ‹#› Scales arbitrary # of resources Resource to be scaled 29 Heat Autoscaling - Lab Ex - 3 (Autoscaling) lb-autoscale-members.yaml Creates an Alarm on a Action to be taken upon Alarm Raise Action to be executed against resource Connection rate crosses 3 per second for a consecutive period of 60 seconds each, the lb_connection_rate_high will be raised and a scaleup_policy will get executed
  • 30. References Web Links (Content we used as reference when building this lab) Extra slides
  • 31. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. Summit Lab / Workshop ▪ Materials for the presentation are available for download at https://github.com/grimmtheory/autoscale DevStack ▪ DevStack Configuration Guide – http://docs.openstack.org/developer/devstack/configuration.html Ceilometer Heat ▪ Heat main page - https://wiki.openstack.org/wiki/Heat ▪ Heat developer documentation -http://docs.openstack.org/developer/heat/ Heat operations documentation Heat main github repository Heat templates github respository Heat user template guide Heat developer template guide ▪ Heat Orchestration Template (HOT) guide – http://docs.openstack.org/developer/heat/template_guide/hot_guide.html ▪ Heat on DevStack guide – http://docs.openstack.org/developer/heat/getting_started/on_devstack.html References
  • 32. Cisco Confidential ‹#›© 2013-2014 Cisco and/or its affiliates. All rights reserved. References Title Link Autoscale workshop repository https://github.com/grimmtheory/ Heat: main page https://wiki.openstack.org/wiki/Heat Heat: developer documentation http://docs.openstack.org/developer/heat/ Heat: operations documentation Heat main github repository