SlideShare a Scribd company logo
CloudStack Performance Testing
     Challenges, Learning, Results

          Sowmya Krishnan
Apache CloudStack
• Turnkey platform for delivering IaaS clouds
• Highly scalable
• Flexible
  – Hypervisor agnostic
  – Network topologies
  – Multiple storage options
  – Scales to tens of thousands of hypervisors
Typical Deployment
            Admin
                                                    Internet
                    Management Server
                    Cluster

                               Primary
                                                          Router
                               MySQL
                                   Backup                 Load Balancer
                                   MySQL
                                                           L3 Core Switch
Top of Rack
     Switch



                                                                               Object Storage
  Servers
               …              …                …       …              …
                                                                            Availability Zone 1
            Pod 1          Pod 2            Pod 3                  Pod N
Challenge of creating a production
       scale performance set up
What we want…
• 30,000 hosts
• 100s of Storage nodes
• High Network bandwidth
• High end switches
• …
What we have in a QA Lab…
Handful of servers
One/Two Storage pools
Shared switch
Scalability Challenges
Continuous monitoring of the infrastructure
      Hosts up, VMs up, Routers, Capacity…
Orchestration of large number of resources
Clustered management servers
Outage of a hypervisor host
Outage of a management server
Outage of network
Solution?




SIMULATOR
Simulator


                          Mgmt.
                          Server       Zone
 User API                                        MySQL
                                     Simulator
              Load        Mgmt.
            Balancer      Server
Admin API

                          Mgmt.    MySQL
                          Server

                          Mgmt.
                          Server
Simulator
• Hypervisor type in itself
• Implements commonly used commands of hypervisor host
   –   Start/Stop
   –   List VMs in the host
   –   Program Security Group Rules
   –   Add host to maintenance mode
• Deploy Simulator VMs
   –   Using a Simulator Template
   –   Start/Stop
   –   Migrate
   –   Volume attached
   –   Take snapshot of the volume
• Storage pools
Test Setup Configurations
• Management server hosts
  – Dual core Intel(R) Xeon(R) CPU, 2.27GHz, ht enabled,
    4 processor
  – 16 G RAM
• Database
  – Quad-Core AMD Opteron(tm), 2.1GHz, ht enabled, 8
    processor
  – 32 G RAM
• Java heap size
  – (5 – 12) GB [Depending on use case]
Demo
Router Check interval
Redundant Virtual Router setup
4000 Accounts => 8000 RVRs
RouterStatusMonitor task which runs for all routers to monitor each
router status
Default check interval = 5 mins

After about an hour, interval between successive checks shot up to 56 mins

Fix:
Introduce a new global config to configure the pool size for router checks

Pool size = 100
8000/100 = 80 * 3 s (to perform RVR check)
                  = 240 s (4 min) to complete RVR check tasks
Router Check interval




router.check.poolsize
Async Job Response Time
As number of VMs increase time taken to deploy instances
increased?
Not always
If Network id is not passed, CS spends significant time searching for
the network to place the VM
After Fix:
Deploy VM time
Baselines For common Use cases
CPU Utilization
DB connections
Steady State Measures – when no external API is
being fired
Time taken for Async job [Deploy VM] to complete
MS failures and time to reconnect all hosts
List API response time, with varied page size
parameters
Future work
•   Enhance Simulator Features
•   VR performance
•   Hypervisor specific agents
•   Storage Metrics
•   …
mvn install -Dsimulator
cp agent-simulator/tomcatconf/components-simulator.xml.in
client//target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-
INF/classes/components-simulator.xml
Edit client//target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-
INF/classes/environment.properties to point to the new xml
mvn -P developer -pl developer -Ddeploydb
mvn -P developer -pl developer -Ddeploydb-simulator
mvn -pl :cloud-client-ui jetty:run -Dsimulator
Q&A

More Related Content

PPTX
CloudStack + SDN
PPT
CloudStack and SDN
PPT
Scalable networking in Apache CloudStack
PDF
12th Japan CloudStack User Group Meetup MidoNet with scalable virtual router
PPTX
CloudStack DC Meetup - Apache CloudStack Overview and 4.1/4.2 Preview
PDF
21.10.09 Microsoft Event, Microsoft Presentation
PPTX
Apache CloudStack Architecture by Alex Huang
PPTX
Virtualization in the Cloud @ Build a Cloud Day SFO May 2012
CloudStack + SDN
CloudStack and SDN
Scalable networking in Apache CloudStack
12th Japan CloudStack User Group Meetup MidoNet with scalable virtual router
CloudStack DC Meetup - Apache CloudStack Overview and 4.1/4.2 Preview
21.10.09 Microsoft Event, Microsoft Presentation
Apache CloudStack Architecture by Alex Huang
Virtualization in the Cloud @ Build a Cloud Day SFO May 2012

What's hot (20)

PPTX
PDF
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
PPTX
PDF
Hacking apache cloud stack
PDF
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-1
PPTX
Nova for Physicalization and Virtualization compute models
PDF
5 scalability Cloudstack Developer Day
PPTX
Open stack journey from folsom to grizzly
ODP
Cloudstack networking2
PPTX
Windows server 2012 failover clustering new features
PPTX
Xen and Apache cloudstack
PPT
DevCloud and CloudMonkey
PDF
Under the Hood: Open vSwitch & OpenFlow in XCP & XenServer
PDF
Windsor: Domain 0 Disaggregation for XenServer and XCP
PDF
2 architectural at CloudStack Developer Day
PPT
Apache CloudStack AlpesJUG
PPTX
Improvements in Failover Clustering in Windows Server 2012
PPTX
Architectures with Windows Azure
PDF
1 Introduction at CloudStack Developer Day
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
Hacking apache cloud stack
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-1
Nova for Physicalization and Virtualization compute models
5 scalability Cloudstack Developer Day
Open stack journey from folsom to grizzly
Cloudstack networking2
Windows server 2012 failover clustering new features
Xen and Apache cloudstack
DevCloud and CloudMonkey
Under the Hood: Open vSwitch & OpenFlow in XCP & XenServer
Windsor: Domain 0 Disaggregation for XenServer and XCP
2 architectural at CloudStack Developer Day
Apache CloudStack AlpesJUG
Improvements in Failover Clustering in Windows Server 2012
Architectures with Windows Azure
1 Introduction at CloudStack Developer Day
Ad

Similar to CloudStack Performance Testing (20)

PPT
10 Minute Overview of Apache CloudStack
PPT
CloudStack Intro NYC
PPTX
Citrix CloudStack - Build Your Own Scalable Infrastructure Cloud with CloudStack
PDF
OpenStack Momentum
PDF
PHP Day 2011 PHP goes to the cloud
PDF
An Introduction to Azure IaaS
PDF
Scaling With Sun Systems For MySQL Jan09
PPTX
eBay From Ground Level to the Clouds
PDF
Paving the Way to IT-as-a-Service
PPTX
Dell web monsters-oct2011-v6-public
PPT
Ram chinta hug-20120922-v1
PPTX
Cloud stack overview
PDF
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-2
PPT
PDF
Scvmm 2012 (maarten wijsman)
PPTX
CloudStack Collaboration Conference 12; Refactoring cloud stack
PPTX
vBrownBag OpenStack Networking Talk
PPTX
Cloud computing
PDF
Changing Landscape of Data Centers
10 Minute Overview of Apache CloudStack
CloudStack Intro NYC
Citrix CloudStack - Build Your Own Scalable Infrastructure Cloud with CloudStack
OpenStack Momentum
PHP Day 2011 PHP goes to the cloud
An Introduction to Azure IaaS
Scaling With Sun Systems For MySQL Jan09
eBay From Ground Level to the Clouds
Paving the Way to IT-as-a-Service
Dell web monsters-oct2011-v6-public
Ram chinta hug-20120922-v1
Cloud stack overview
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-2
Scvmm 2012 (maarten wijsman)
CloudStack Collaboration Conference 12; Refactoring cloud stack
vBrownBag OpenStack Networking Talk
Cloud computing
Changing Landscape of Data Centers
Ad

More from buildacloud (20)

PDF
The Future of SDN in CloudStack by Chiradeep Vittal
PPTX
Policy Based SDN Solution for DC and Branch Office by Suresh Boddapati
PDF
L4-L7 services for SDN and NVF by Youcef Laribi
POTX
Jenkins, jclouds, CloudStack, and CentOS by David Nalley
PPTX
Intro to Zenoss by Andrew Kirch
ODP
Guaranteeing Storage Performance by Mike Tutkowski
PDF
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
PPT
Introduction to Apache CloudStack by David Nalley
PDF
Managing infrastructure with Application Policy by Mike Cohen
PPTX
Intro to Zenoss by Andrew Kirch
PPTX
Monitoring CloudStack in context with Converged Infrastructure by Mike Turnlund
PDF
Rest api design by george reese
PPTX
Enterprise grade firewall and ssl termination to ac by will stevens
PDF
State of the cloud by reuven cohen
PDF
Securing Your Cloud With the Xen Hypervisor by Russell Pavlicek
PPTX
DevCloud - Setup and Demo on Apache CloudStack
PDF
Cloud Network Virtualization with Juniper Contrail
PPTX
Ian rae panel cloud stack & cloud storage where are we at, and where do we ne...
PDF
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
PPT
CloudStack University by Sebastien Goasguen
The Future of SDN in CloudStack by Chiradeep Vittal
Policy Based SDN Solution for DC and Branch Office by Suresh Boddapati
L4-L7 services for SDN and NVF by Youcef Laribi
Jenkins, jclouds, CloudStack, and CentOS by David Nalley
Intro to Zenoss by Andrew Kirch
Guaranteeing Storage Performance by Mike Tutkowski
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
Introduction to Apache CloudStack by David Nalley
Managing infrastructure with Application Policy by Mike Cohen
Intro to Zenoss by Andrew Kirch
Monitoring CloudStack in context with Converged Infrastructure by Mike Turnlund
Rest api design by george reese
Enterprise grade firewall and ssl termination to ac by will stevens
State of the cloud by reuven cohen
Securing Your Cloud With the Xen Hypervisor by Russell Pavlicek
DevCloud - Setup and Demo on Apache CloudStack
Cloud Network Virtualization with Juniper Contrail
Ian rae panel cloud stack & cloud storage where are we at, and where do we ne...
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
CloudStack University by Sebastien Goasguen

CloudStack Performance Testing

  • 1. CloudStack Performance Testing Challenges, Learning, Results Sowmya Krishnan
  • 2. Apache CloudStack • Turnkey platform for delivering IaaS clouds • Highly scalable • Flexible – Hypervisor agnostic – Network topologies – Multiple storage options – Scales to tens of thousands of hypervisors
  • 3. Typical Deployment Admin Internet Management Server Cluster Primary Router MySQL Backup Load Balancer MySQL L3 Core Switch Top of Rack Switch Object Storage Servers … … … … … Availability Zone 1 Pod 1 Pod 2 Pod 3 Pod N
  • 4. Challenge of creating a production scale performance set up What we want… • 30,000 hosts • 100s of Storage nodes • High Network bandwidth • High end switches • … What we have in a QA Lab… Handful of servers One/Two Storage pools Shared switch
  • 5. Scalability Challenges Continuous monitoring of the infrastructure Hosts up, VMs up, Routers, Capacity… Orchestration of large number of resources Clustered management servers Outage of a hypervisor host Outage of a management server Outage of network
  • 7. Simulator Mgmt. Server Zone User API MySQL Simulator Load Mgmt. Balancer Server Admin API Mgmt. MySQL Server Mgmt. Server
  • 8. Simulator • Hypervisor type in itself • Implements commonly used commands of hypervisor host – Start/Stop – List VMs in the host – Program Security Group Rules – Add host to maintenance mode • Deploy Simulator VMs – Using a Simulator Template – Start/Stop – Migrate – Volume attached – Take snapshot of the volume • Storage pools
  • 9. Test Setup Configurations • Management server hosts – Dual core Intel(R) Xeon(R) CPU, 2.27GHz, ht enabled, 4 processor – 16 G RAM • Database – Quad-Core AMD Opteron(tm), 2.1GHz, ht enabled, 8 processor – 32 G RAM • Java heap size – (5 – 12) GB [Depending on use case]
  • 10. Demo
  • 11. Router Check interval Redundant Virtual Router setup 4000 Accounts => 8000 RVRs RouterStatusMonitor task which runs for all routers to monitor each router status Default check interval = 5 mins After about an hour, interval between successive checks shot up to 56 mins Fix: Introduce a new global config to configure the pool size for router checks Pool size = 100 8000/100 = 80 * 3 s (to perform RVR check) = 240 s (4 min) to complete RVR check tasks
  • 13. Async Job Response Time As number of VMs increase time taken to deploy instances increased? Not always If Network id is not passed, CS spends significant time searching for the network to place the VM After Fix:
  • 15. Baselines For common Use cases CPU Utilization DB connections Steady State Measures – when no external API is being fired Time taken for Async job [Deploy VM] to complete MS failures and time to reconnect all hosts List API response time, with varied page size parameters
  • 16. Future work • Enhance Simulator Features • VR performance • Hypervisor specific agents • Storage Metrics • …
  • 17. mvn install -Dsimulator cp agent-simulator/tomcatconf/components-simulator.xml.in client//target/cloud-client-ui-4.1.0-SNAPSHOT/WEB- INF/classes/components-simulator.xml Edit client//target/cloud-client-ui-4.1.0-SNAPSHOT/WEB- INF/classes/environment.properties to point to the new xml mvn -P developer -pl developer -Ddeploydb mvn -P developer -pl developer -Ddeploydb-simulator mvn -pl :cloud-client-ui jetty:run -Dsimulator
  • 18. Q&A

Editor's Notes

  • #6: Typical challenges / questions to be answered as a result of a performance runs of an IaaS productLast three may appear to be more of fault tolerance of a system, it is related to perf since these failures are harder to find in a high scale set up as compared to a smaller one. (Takes more time to identify a failure)
  • #13: router.check.interval ,  CheckRouterCommandSimulator delay8K Routers,