SlideShare a Scribd company logo
Auto Scaling with Apache
CloudStack
Paul Gosden
Technical lead of networking services division
paul.gosden@shapeblue.com
Twitter: @ShapeBlue
Overview
What is AutoScale?
AutoScale allows systems to dynamically react to a set of
defined metrics and to scale resources accordingly.
Providing : High Availability
Cost Saving
Energy Saving

@ShapeBlue #CloudStack #CCCEU13
Use Cases
Applications or services that see elasticity in their demand.
Launching a new website with unknown visitor numbers
Viral marketing campaigns, these can present unpredictable traffic loads
as some work and some don’t
An analytical application might scale out the servers performing in a
calculation process – using 20 machines for 1 hour, rather than 1 machine
for 20 hours

@ShapeBlue #CloudStack #CCCEU13
Example Life Cycle
A new web company designs and builds an application based
on a web service that supplies concert tickets
Low capital reserves – Limited resources for Compute
platform
Designed their application to be stateless
Limited budget for advertising so are using social media in
the hope that it goes viral

@ShapeBlue #CloudStack #CCCEU13
Initial Configuration
Netscaler

Account Infrastructure

End User

CloudStack

End user configures the
CloudStack AutoScale policy
on the network

@ShapeBlue #CloudStack #CCCEU13

Application
Template
Initial Configuration
Netscaler

Account Infrastructure

CloudStack

CloudStack configures the
Netscaler via the NITRO API

@ShapeBlue #CloudStack #CCCEU13

Application
Template
Initial Configuration
Netscaler

Account Infrastructure

CloudStack

Netscaler makes the API call
back to CloudStack to
launch the Minimum
amount of instances in the
policy
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Initial Configuration
Netscaler

Account Infrastructure

CloudStack

CloudStack launches the
Instances from the
Application Template

Application
Template

@ShapeBlue #CloudStack #CCCEU13
Process
Netscaler

Account Infrastructure

CloudStack

The Netscaler will wait for
the quiet period to finish to
allow the servers to boot
and bring the applications
on-line
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Process
Netscaler

Account Infrastructure

CloudStack

The Netscaler binds the IP’s
of the Instances to the
service group hosted on the
Netscaler
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

Users start to visit the site
and the Netscaler monitors
the SNMP metrics from the
instances
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

User count continues to rise
and the server group starts
to hit the metrics set in the
auto scale policy
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

The Netscaler then uses its
API command to contact
CloudStack to launch more
instances
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

The Instance is again given
its quite time to boot and
start the application

@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

The instance is now running
and registered to the
NetScaler service group
online and all servers are
back under the counters for
the Auto Scale

@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

This process will be
repeated as needed until the
policy hits the max instances
count
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

If user numbers reduce the
server again hits the
AutoScale scale down policy
counters
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

The Netscaler sends the API
command to the CloudStack
Server to destroy under
utilised instances
@ShapeBlue #CloudStack #CCCEU13

Application
Template
Lifecycle
Users
Netscaler

Account Infrastructure

CloudStack

The System is now back to
running the appropriate
amount of instances as
needed
@ShapeBlue #CloudStack #CCCEU13

Application
Template
User System Requirements
Should be driven by the end user
VM Template with appropriate setup
Customer account with API enabled
Customer CloudStack Isolated Network stood up with a min
of one VM running to provision the virtual router

@ShapeBlue #CloudStack #CCCEU13
Creation of Templates
SNMP needs to be enabled on boot and configured with
community name and port
If needed allow port 161 for UDP access via the firewall
Application to be launched on first boot
For example on a web application the web server would
need to be running and the application to be configured
with database settings to automatically join the pool.
Alternative is to have a configuration management system
configure the VM as a post-provisioning action E.G. Puppet or Chef
@ShapeBlue #CloudStack #CCCEU13
Adding the AutoScale Policy

@ShapeBlue #CloudStack #CCCEU13
AutoScale Configuration Screen

@ShapeBlue #CloudStack #CCCEU13
AutoScale Configuration Wizard







Selected template
Compute offering for the selected instance. i.e. CPU, no of CPU’s, RAM etc.
Min Instance – VMs count, if a VM is in a down state it is not counted in the min count and the
AutoScale feature will spin up another instance
Max Instance – VMs count Remember that the domain limits on adding instances needs to be
large enough for this to scale as needed
@ShapeBlue #CloudStack #CCCEU13
AutoScale Configuration Wizard

Duration that the policy counters need to be at the specific range across the group

@ShapeBlue #CloudStack #CCCEU13
AutoScale Configuration Wizard

@ShapeBlue #CloudStack #CCCEU13
AutoScale Configuration Wizard




Polling Interval in seconds for the SNMP monitoring
Quiet time to allow for boot and application registration

@ShapeBlue #CloudStack #CCCEU13
Adding OIDS
API to list existing counters
http://192.168.21.76:8096/client/api/?command=listCounters
API to add a new counter (OID)
http://192.168.21.76:8096/client/api?command=createCounter&
name=WindowsCPUPercentage&source=snmp&value=1.3.6.1.2
.1.25.3.3.1.2.2

@ShapeBlue #CloudStack #CCCEU13
Netscaler GUI checks

@ShapeBlue #CloudStack #CCCEU13
Version Requirements
Apache CloudStack 4.1 +
Citrix Netscaler 10.0 Build 71.6016.e +

@ShapeBlue #CloudStack #CCCEU13
Administrator Considerations
Basic Zone needs NetScaler EIP and ELB as network offering
Advanced Zone needs a Network offering utilising a
NetScaler for load balancing
Set Global Config Parameter "endpointe.url" with the
management server IP or floating IP if load balanced

@ShapeBlue #CloudStack #CCCEU13
Configuration of the Citrix Netscaler
No special configuration is required on the NetScaler
Setup the Citrix Netscaler with appropriate NSIP
NetScaler should be added into CloudStack in the standard
way, as an external device in either dedicated or shared
mode
A network offering will need to be created, utilising
NetScaler as the Load Balancer

@ShapeBlue #CloudStack #CCCEU13

More Related Content

What's hot (20)

PDF
Kubernetes dealing with storage and persistence
Janakiram MSV
 
PDF
Apache Kafka Architecture & Fundamentals Explained
confluent
 
PPT
Monitoring using Prometheus and Grafana
Arvind Kumar G.S
 
PPTX
Introduction to gRPC (Application) Presentation
Knoldus Inc.
 
PDF
How OpenShift SDN helps to automate
Ilkka Tengvall
 
PPTX
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
PDF
IBM MQ High Availability 2019
David Ware
 
PDF
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Vietnam Open Infrastructure User Group
 
PDF
Ceph and RocksDB
Sage Weil
 
PDF
Using eBPF for High-Performance Networking in Cilium
ScyllaDB
 
PPTX
Ceph Performance and Sizing Guide
Jose De La Rosa
 
PDF
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Vietnam Open Infrastructure User Group
 
PDF
Getting Started Monitoring with Prometheus and Grafana
Syah Dwi Prihatmoko
 
PPTX
How to Lock Down Apache Kafka and Keep Your Streams Safe
confluent
 
PDF
Helm 3
Matthew Farina
 
PDF
[234]멀티테넌트 하둡 클러스터 운영 경험기
NAVER D2
 
PPTX
Docker Swarm Introduction
rajdeep
 
PDF
NVMe Over Fabrics Support in Linux
LF Events
 
PPTX
Devops & Configuration management tools
Sonu Meena
 
PDF
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
mumrah
 
Kubernetes dealing with storage and persistence
Janakiram MSV
 
Apache Kafka Architecture & Fundamentals Explained
confluent
 
Monitoring using Prometheus and Grafana
Arvind Kumar G.S
 
Introduction to gRPC (Application) Presentation
Knoldus Inc.
 
How OpenShift SDN helps to automate
Ilkka Tengvall
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
IBM MQ High Availability 2019
David Ware
 
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Vietnam Open Infrastructure User Group
 
Ceph and RocksDB
Sage Weil
 
Using eBPF for High-Performance Networking in Cilium
ScyllaDB
 
Ceph Performance and Sizing Guide
Jose De La Rosa
 
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Vietnam Open Infrastructure User Group
 
Getting Started Monitoring with Prometheus and Grafana
Syah Dwi Prihatmoko
 
How to Lock Down Apache Kafka and Keep Your Streams Safe
confluent
 
[234]멀티테넌트 하둡 클러스터 운영 경험기
NAVER D2
 
Docker Swarm Introduction
rajdeep
 
NVMe Over Fabrics Support in Linux
LF Events
 
Devops & Configuration management tools
Sonu Meena
 
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
mumrah
 

Similar to Cloudstack autoscaling (20)

PPTX
CloudStack Metering - Working with Usage Data #CCCNA14
ShapeBlue
 
PPTX
CloudStack Metering – Working with the Usage Data
Tariq Iqbal
 
PPTX
CloudStack Metering – Working with the Usage Data
ShapeBlue
 
PPTX
Working with CloudStack Usage Data - CCCEU13
ShapeBlue
 
PPTX
Working with CloudStack Usage Data
Tariq Iqbal
 
PPTX
Monitorama - Please, no more Minutes, Milliseconds, Monoliths or Monitoring T...
Adrian Cockcroft
 
PPTX
Integration of mule esb with microsoft azure
sivachandra mandalapu
 
DOC
BikramSamaddar
Bikram Samaddar
 
PDF
Scytec cloud machine utilization tracking makes pilot programs obsolete
Josh Davids
 
PPTX
Hybrid Cloud Management and Orchestration : The Complete Solution
John Katrick
 
PDF
Building a SaaS using WSO2 Stratos
WSO2
 
PPTX
Jamcracker Cloud Management Platform: Control, Govern and Manage Enterprise C...
John Katrick
 
DOCX
AWS Cloud Solutions Architects & Tech Enthusiasts
JasonRoy50
 
PDF
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
PDF
Who's in your Cloud? Cloud State Monitoring
Kevin Hakanson
 
PDF
Meniscus Advanced Energy Analytics Platform
Dexter Fox
 
PPTX
Harness the Power of the Cloud for Grid Computing and Batch Processing Applic...
RightScale
 
PDF
VMworld 2013: Architecting the Software-Defined Data Center
VMworld
 
PDF
Accelerating Time-to-Value Through Hybrid Cloud Automation
Cognizant
 
PPTX
Integration with Sercice-Now using Mule ESB
Sanjeet Pandey
 
CloudStack Metering - Working with Usage Data #CCCNA14
ShapeBlue
 
CloudStack Metering – Working with the Usage Data
Tariq Iqbal
 
CloudStack Metering – Working with the Usage Data
ShapeBlue
 
Working with CloudStack Usage Data - CCCEU13
ShapeBlue
 
Working with CloudStack Usage Data
Tariq Iqbal
 
Monitorama - Please, no more Minutes, Milliseconds, Monoliths or Monitoring T...
Adrian Cockcroft
 
Integration of mule esb with microsoft azure
sivachandra mandalapu
 
BikramSamaddar
Bikram Samaddar
 
Scytec cloud machine utilization tracking makes pilot programs obsolete
Josh Davids
 
Hybrid Cloud Management and Orchestration : The Complete Solution
John Katrick
 
Building a SaaS using WSO2 Stratos
WSO2
 
Jamcracker Cloud Management Platform: Control, Govern and Manage Enterprise C...
John Katrick
 
AWS Cloud Solutions Architects & Tech Enthusiasts
JasonRoy50
 
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Who's in your Cloud? Cloud State Monitoring
Kevin Hakanson
 
Meniscus Advanced Energy Analytics Platform
Dexter Fox
 
Harness the Power of the Cloud for Grid Computing and Batch Processing Applic...
RightScale
 
VMworld 2013: Architecting the Software-Defined Data Center
VMworld
 
Accelerating Time-to-Value Through Hybrid Cloud Automation
Cognizant
 
Integration with Sercice-Now using Mule ESB
Sanjeet Pandey
 
Ad

More from ShapeBlue (20)

PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PPTX
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
Fully Open-Source Private Clouds: Freedom, Security, and Control
ShapeBlue
 
PPTX
Pushing the Limits: CloudStack at 25K Hosts
ShapeBlue
 
PPTX
Stretching CloudStack over multiple datacenters
ShapeBlue
 
PPTX
Proposed Feature: Monitoring and Managing Cloud Usage Costs in Apache CloudStack
ShapeBlue
 
PPSX
CloudStack + KVM: Your Local Cloud Lab
ShapeBlue
 
PDF
I’d like to resell your CloudStack services, but...
ShapeBlue
 
PDF
Storage Setup for LINSTOR/DRBD/CloudStack
ShapeBlue
 
PDF
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
ShapeBlue
 
PDF
Development of an Оbject Storage Plugin for CloudStack, Christian Reichert, s...
ShapeBlue
 
PDF
VM-HA with CloudStack and Linstor, Rene Peinthor
ShapeBlue
 
PDF
How We Use CloudStack to Provide Managed Hosting, Swen Brüseke, proIO
ShapeBlue
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
Fully Open-Source Private Clouds: Freedom, Security, and Control
ShapeBlue
 
Pushing the Limits: CloudStack at 25K Hosts
ShapeBlue
 
Stretching CloudStack over multiple datacenters
ShapeBlue
 
Proposed Feature: Monitoring and Managing Cloud Usage Costs in Apache CloudStack
ShapeBlue
 
CloudStack + KVM: Your Local Cloud Lab
ShapeBlue
 
I’d like to resell your CloudStack services, but...
ShapeBlue
 
Storage Setup for LINSTOR/DRBD/CloudStack
ShapeBlue
 
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
ShapeBlue
 
Development of an Оbject Storage Plugin for CloudStack, Christian Reichert, s...
ShapeBlue
 
VM-HA with CloudStack and Linstor, Rene Peinthor
ShapeBlue
 
How We Use CloudStack to Provide Managed Hosting, Swen Brüseke, proIO
ShapeBlue
 
Ad

Recently uploaded (20)

PPTX
Lecture 5 - Agentic AI and model context protocol.pptx
Dr. LAM Yat-fai (林日辉)
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
Rethinking Security Operations - Modern SOC.pdf
Haris Chughtai
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PDF
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
DOCX
TLE9 COOKERY DLL WEEK3 technology and li
jamierha cabaero
 
PDF
GITLAB-CICD_For_Professionals_KodeKloud.pdf
deepaktyagi0048
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Bitcoin+ Escalando sin concesiones - Parte 1
Fernando Paredes García
 
PPTX
UI5Con 2025 - Get to Know Your UI5 Tooling
Wouter Lemaire
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
Trading Volume Explained by CIFDAQ- Secret Of Market Trends
CIFDAQ
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PPTX
Machine Learning Benefits Across Industries
SynapseIndia
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
PDF
Productivity Management Software | Workstatus
Lovely Baghel
 
Lecture 5 - Agentic AI and model context protocol.pptx
Dr. LAM Yat-fai (林日辉)
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
Rethinking Security Operations - Modern SOC.pdf
Haris Chughtai
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
TLE9 COOKERY DLL WEEK3 technology and li
jamierha cabaero
 
GITLAB-CICD_For_Professionals_KodeKloud.pdf
deepaktyagi0048
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Bitcoin+ Escalando sin concesiones - Parte 1
Fernando Paredes García
 
UI5Con 2025 - Get to Know Your UI5 Tooling
Wouter Lemaire
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Trading Volume Explained by CIFDAQ- Secret Of Market Trends
CIFDAQ
 
Top Managed Service Providers in Los Angeles
Captain IT
 
Machine Learning Benefits Across Industries
SynapseIndia
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
Productivity Management Software | Workstatus
Lovely Baghel
 

Cloudstack autoscaling

Editor's Notes

  • #3: Auto scaling is the process of automatically provisioning instances and destroying instances as specified metrics dictates.Examples of these could be CPU Load on instances or networking response times.Auto scaling is particularly well suited for applications that experience hourly, daily or weekly elasticity in usage.Today, cloud computing is totally revolutionizing the way computer resources are allocated, making it possible to build a fully scalable server setup on Apache CloudStack.
  • #6: This can be done via the GUI or API.Remember to have the application template ready to go when adding this which we will cover later.An admin of CloudStack does not have to do this, the end user can provision this!
  • #7: CloudStack pushes the AutoScale configuration to the NetScaler appliance, by using the NetScaler NITRO API. This creates AutoScale-related entities on the NetScaler appliance, including a load balancing virtual server, a service group, and monitors
  • #8: The AutoScale engine on the NetScaler appliance makes API requests to CloudStack to initially deploy the minimum number of virtual machines required.
  • #9: CloudStack in turn provisions the minimum number of instances (VMs) on the hypervisors (virtualization hosts) it manages.
  • #11: The NetScaler appliance discovers the IP addresses assigned by CloudStack to the newly created VMs and binds them, as services, to the service group representing them. This enables the NetScaler appliance to load balance traffic and the VMs to receive traffic, respectively.
  • #12: NetScaler monitors that are bound to the service group start monitoring the load by collecting SNMP metrics from the instances.
  • #13: A social media campaign goes viralCloudStack will average out the measured item across the pool of servers rather than picking individual ones.
  • #14: A social media campaign goes viral
  • #15: A social media campaign goes viral
  • #16: A social media campaign goes viral
  • #17: A social media campaign goes viral
  • #18: Sign up slows down and everyone moves onto the next “big” thing
  • #21: The endpointe.url can be either a fixed IP on a single management server or a load balanced VIP on a multi-server setup.Also only support with NetScaler at the moment,
  • #23: This Shows a basic Zone shared network from a user point to view. Once we access the networks and select the shared network the load balancer tab will appear and enable us to set up the name, ports and load balancing algorithm For Load Balancing and stickiness
  • #24: So In This exampleTemplateCompute offeringMin and Max instancesScale UP PolicyScale Down Policy
  • #25: Remember to take into account the max instances and the accounts limits
  • #29: Duration – How long does the policy need to be “true” for before the AutoScale invokes the policy.Counter – What is the metric for being monitored i.e. CPU idle, CPU system as a percentage but also could be a response time i.e. in microsecondsOperator – Greater Than ,less than etc. normal logic.Threshold – This could be a percentage i.e. 80% or a actual figure as in response times.
  • #31: The endpointe.url can be either a fixed IP on a single management server or a load balanced VIP on a multi-server setup.Also will only support with NetScaler at the moment