SlideShare a Scribd company logo
1 of 45
Virtual Stress-Free Testing in the Cloud Jinesh Varia Technology Evangelist Amazon Web Services
Cloud Computing Defined “Cloud Computing is large pool of easily usable and accessible virtualized resources that can be dynamically reconfigured to adjust to a variable load and operated on a pay-per-use model” ACM  “Cloud Computing is a style of computing where massively scalable IT-related capabilities are provided ‘as a service’ across the Internet to multiple external customers” Gartner
Cloud Computing Defined “Cloud Computing is large pool of easily usable and accessible virtualized resources that can be dynamically reconfigured to adjust to a variable load and operated on a pay-per-use model” ACM  “Cloud Computing is a style of computing where massively scalable IT-related capabilities are provided ‘as a service’ across the Internet to multiple external customers” Gartner
The Cloud
Amazon EC2:  Compute on Demand
    Amazon S3 The Internet Customer runinstance Amazon EC2
Provision servers using command line interfaces runinstances(image-id, minCount, maxCount, instanceType, {m1.small, m1.large, m1.xlarge, c1.medium, and c1.xlarge} keyName, Placement.AvailabilityZone,{us-east-1a, us-east-1b, us-east-1c, eu-west-1a, eu-west-1b} 			…) PROMPT> ec2-run-instances ami-235fba4a -k gsg-keypair
WebSphere Hibernate Java Linux Amazon Machine Image Amazon Machine Image - AMI PHP Apache Perl Postgress Linux-Ubuntu Ruby Rails MySQL Fedora-6 Amazon Machine Image Amazon Machine Image Amazon S3 AMI AMI AMI
Amazon S3 AMI AMI AMI Amazon EC2
Bundle Environments with 3 commands PROMPT> ec2-bundle-vol -d /mnt		-k <your-private-key>		-c <your-x509-cert>		-u <userid> 		-r i386 		-p sampleimage PROMPT> ec2-upload-bundle -b <your-s3-bucket>-m /mnt/sampleimage.manifest.xml-a <aws-access-key-id>-s <aws-secret-access-key> PROMPT> ec2-register <your-s3-bucket>/sampleimage.manifest.xml
Today’s ‘Era of Tera’ Uncertainty Uncertainty in Business (“Slashdot/Techcrunched”) Uncertainty in Economy Users and Data flood Millions of Users and PBs of data Latency Matters  Performance is now directly related to customer service Global-Scale Spanning Multiple Geographies Diverse Environments  Mobile Platforms Middleware on Variety of DB Servers, App Servers
Scale: 50 servers to 5000 servers in 3 days Amazon EC2 easily scaled to handle additional trafficPeak of 5000 instances Number of EC2 Instances “Techcrunched” Launch of Facebook modification. Steady state of ~40 instances 4/12/2008 4/14/2008 4/15/2008 4/16/2008 4/18/2008 4/19/2008 4/20/2008 4/17/2008 4/13/2008
How to Test in this “Era of Tera” How will you test to see whether your website is spike-proof ? How will you test your website if 50M users are going to hit your website in next 2 hours? How will you test for 750K concurrent users ? How will you test your latency from different parts of the world ? How will you test when you have minimal testing budget in this economy ? How will you test on different environments ?
Everything’s Changed, Nothing’s different Stress Testing Load Testing Web Performance Testing Web App (AJAX) testing Usability Testing Unit Testing Regression Tests Integration Tests
Everything’s Changed, Nothing’s different
Common problems in our world of testing “I cannot reproduce the bug” (environment mismatch) “Its just take too much time to configure the tools” “Site works fine in US, but does not work from EU” “Its too expensive to set up, maintain and update a test lab” “Its takes too much time and efforts to set up a test lab” “Test phase last for only 2 months : Underutilized Test Boxes”
On-demand Test Labs Physical Test Labs become out-dated too fast Maintaining Test Labs is pain Configuration Latest patches Test lab when you need, For the duration you need “Need it now” “Need only for 3 month Test cycle” Elastic scale (Grow and Shrink requirements based on pre-defined SLA) Throw-away Test labs (Get a brand new lab every time) No more begging for more servers required
Increased Utilization
AMIs for Reuse and Repros Virtualization Create test environments dynamically Bundle AMIs With basic dependencies and OS of your choice Share AMIs Share entire environments with dev/prod teams with few clicks
Testing as a Service : “Push it to the Cloud” Traditional enterprise solutions are complex Incur High upfront license fees Steep learning curve in Open source tools Testing as a Service Stress, Load, Performance Testing services Pay as you go Meter bandwidth in/out Meter Instance Usage hours Meter CPU Usage-based costing model
Concurrent users Requests per minute Average response time Error rate percentage Total page requests per time interval Maximum response time per time interval Pages by error code Pages by response time Analyze Metrics ,[object Object]
Requests per minute
Error rate percentage
Total page requests per time interval
Maximum response time per time interval
Pages by error code
Pages by response time
Average response time,[object Object]
Make Testing a Background activity ,[object Object]
AJAX Testing
Functional Testing
Acceptance Testing
Usability Testing
Cross-Browser Testing
Web Services Testing-Integration  testing -Lost testing -Stress Testing -Performance Testing -Follow the Sun Tests
“Let’s run it again!” Test more and Test Often Iterative process of test-analyze-fix-test Testing is a background activity Real-time results in Dashboards  Automation through Web Services Set up test labs on-demand Automated scripts to launch infrastructure you need Cost-effective Automated Testing Infrastructure up only during the build and test time Build run at 2AM on 2 Instances for 2 Hours : Cost of ~$1/Day
Test #60650 EC2 instances spawned Served 500K concurrent Users and 10 Million Hits in 1 Hour Test #0 GOAL:  3M Users/Hits in 1 Hour 200K concurrent Users Local : 100 Concurrent User test Test-Fix-Test Iterative Process Timeline Test #25300 EC2 instances spawned Crash point: 170K concurrent users Served 3M Users in 1 Hour Test #160 EC2 instances spawned Crash point: 500 concurrent users
Test #60650 EC2 instances spawned Served 500K concurrent Users and 10 Million Hits in 1 Hour Test #0 GOAL:  3M Users/Hits in 1 Hour 200K concurrent Users Local : 100 Concurrent User Fail Goal: Exceeded Timeline : 3 Months  Actual Testing time: 60 hours Test-Fix-Test Iterative Process Timeline Test #25300 EC2 instances spawned Crash point: 170K concurrent users Served 3M Users in 1 Hour Test #160 EC2 instances spawned Crash point: 500 concurrent users
Generations of Testing* * James Whittaker Blog posts on “Future of Testing”

More Related Content

What's hot

Cloud Testing: The Future of software Testing
Cloud Testing: The Future of software TestingCloud Testing: The Future of software Testing
Cloud Testing: The Future of software TestingBugRaptors
 
Agile Testing in the Cloud
Agile Testing in the CloudAgile Testing in the Cloud
Agile Testing in the CloudCygnet Infotech
 
From Relational Database Management to Big Data: Solutions for Data Migration...
From Relational Database Management to Big Data: Solutions for Data Migration...From Relational Database Management to Big Data: Solutions for Data Migration...
From Relational Database Management to Big Data: Solutions for Data Migration...Cognizant
 
Performance Testing webinar
Performance Testing   webinarPerformance Testing   webinar
Performance Testing webinarAbhinav Das
 
Gomez Blazing Fast Cloud Best Practices
Gomez Blazing Fast Cloud Best Practices Gomez Blazing Fast Cloud Best Practices
Gomez Blazing Fast Cloud Best Practices Compuware APM
 
Test automation in project management
Test automation in project managementTest automation in project management
Test automation in project managementambreprasad77
 
Introduction to RightScale
Introduction to RightScaleIntroduction to RightScale
Introduction to RightScaleAkelios
 
How to Make Your Move to the Cloud with Confidence
How to Make Your Move to the Cloud with ConfidenceHow to Make Your Move to the Cloud with Confidence
How to Make Your Move to the Cloud with ConfidenceCloud Spectator
 
Kemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphereKemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphereAndrea Mauro
 
[India Merge World Tour] Electric Cloud
[India Merge World Tour] Electric Cloud[India Merge World Tour] Electric Cloud
[India Merge World Tour] Electric CloudPerforce
 
Identifying Workloads to Move to the Cloud
Identifying Workloads to Move to the CloudIdentifying Workloads to Move to the Cloud
Identifying Workloads to Move to the CloudRightScale
 
AWS Webcast - Neudesic Data Centermigrationtoaws
AWS Webcast - Neudesic Data CentermigrationtoawsAWS Webcast - Neudesic Data Centermigrationtoaws
AWS Webcast - Neudesic Data CentermigrationtoawsAmazon Web Services
 
Transform Your Cloud Validation Strategy from Cloudy to Clear
Transform Your Cloud Validation Strategy from Cloudy to ClearTransform Your Cloud Validation Strategy from Cloudy to Clear
Transform Your Cloud Validation Strategy from Cloudy to ClearTechWell
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architectureFaren faren
 
Muves3 Elastic Grid Java One2009 Final
Muves3 Elastic Grid Java One2009 FinalMuves3 Elastic Grid Java One2009 Final
Muves3 Elastic Grid Java One2009 FinalElastic Grid, LLC.
 
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...VMworld
 

What's hot (20)

Cloud Testing: The Future of software Testing
Cloud Testing: The Future of software TestingCloud Testing: The Future of software Testing
Cloud Testing: The Future of software Testing
 
Agile Testing in the Cloud
Agile Testing in the CloudAgile Testing in the Cloud
Agile Testing in the Cloud
 
Cloud testing
Cloud testingCloud testing
Cloud testing
 
Cloud testing
Cloud testingCloud testing
Cloud testing
 
From Relational Database Management to Big Data: Solutions for Data Migration...
From Relational Database Management to Big Data: Solutions for Data Migration...From Relational Database Management to Big Data: Solutions for Data Migration...
From Relational Database Management to Big Data: Solutions for Data Migration...
 
Performance Testing webinar
Performance Testing   webinarPerformance Testing   webinar
Performance Testing webinar
 
Gomez Blazing Fast Cloud Best Practices
Gomez Blazing Fast Cloud Best Practices Gomez Blazing Fast Cloud Best Practices
Gomez Blazing Fast Cloud Best Practices
 
Test automation in project management
Test automation in project managementTest automation in project management
Test automation in project management
 
Introduction to RightScale
Introduction to RightScaleIntroduction to RightScale
Introduction to RightScale
 
How to Make Your Move to the Cloud with Confidence
How to Make Your Move to the Cloud with ConfidenceHow to Make Your Move to the Cloud with Confidence
How to Make Your Move to the Cloud with Confidence
 
Kemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphereKemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphere
 
[India Merge World Tour] Electric Cloud
[India Merge World Tour] Electric Cloud[India Merge World Tour] Electric Cloud
[India Merge World Tour] Electric Cloud
 
Identifying Workloads to Move to the Cloud
Identifying Workloads to Move to the CloudIdentifying Workloads to Move to the Cloud
Identifying Workloads to Move to the Cloud
 
AWS Webcast - Neudesic Data Centermigrationtoaws
AWS Webcast - Neudesic Data CentermigrationtoawsAWS Webcast - Neudesic Data Centermigrationtoaws
AWS Webcast - Neudesic Data Centermigrationtoaws
 
Transform Your Cloud Validation Strategy from Cloudy to Clear
Transform Your Cloud Validation Strategy from Cloudy to ClearTransform Your Cloud Validation Strategy from Cloudy to Clear
Transform Your Cloud Validation Strategy from Cloudy to Clear
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
Cloud architecture
Cloud architectureCloud architecture
Cloud architecture
 
Muves3 Elastic Grid Java One2009 Final
Muves3 Elastic Grid Java One2009 FinalMuves3 Elastic Grid Java One2009 Final
Muves3 Elastic Grid Java One2009 Final
 
Cloud Migration: Moving to the Cloud
Cloud Migration: Moving to the CloudCloud Migration: Moving to the Cloud
Cloud Migration: Moving to the Cloud
 
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
 

Viewers also liked

The Virtual Team Challenge
The Virtual Team ChallengeThe Virtual Team Challenge
The Virtual Team ChallengeLance Poehler
 
Leading A Virtual Team by Julian E. Dipp
Leading A Virtual Team by Julian E. DippLeading A Virtual Team by Julian E. Dipp
Leading A Virtual Team by Julian E. DippJulian Dipp
 
Effective Virtual Teams & Virtual Team Leadership - Tactics & Strategies
Effective Virtual Teams & Virtual Team Leadership - Tactics & StrategiesEffective Virtual Teams & Virtual Team Leadership - Tactics & Strategies
Effective Virtual Teams & Virtual Team Leadership - Tactics & StrategiesSatellite Team Solutions
 
Leadership questionnaire felj
Leadership questionnaire feljLeadership questionnaire felj
Leadership questionnaire feljFeljone Ragma
 
Virtual Teams
Virtual TeamsVirtual Teams
Virtual Teamsjkleppang
 

Viewers also liked (6)

virtual team
virtual teamvirtual team
virtual team
 
The Virtual Team Challenge
The Virtual Team ChallengeThe Virtual Team Challenge
The Virtual Team Challenge
 
Leading A Virtual Team by Julian E. Dipp
Leading A Virtual Team by Julian E. DippLeading A Virtual Team by Julian E. Dipp
Leading A Virtual Team by Julian E. Dipp
 
Effective Virtual Teams & Virtual Team Leadership - Tactics & Strategies
Effective Virtual Teams & Virtual Team Leadership - Tactics & StrategiesEffective Virtual Teams & Virtual Team Leadership - Tactics & Strategies
Effective Virtual Teams & Virtual Team Leadership - Tactics & Strategies
 
Leadership questionnaire felj
Leadership questionnaire feljLeadership questionnaire felj
Leadership questionnaire felj
 
Virtual Teams
Virtual TeamsVirtual Teams
Virtual Teams
 

Similar to Virtual Stress-free Testing in the Cloud

Tools. Techniques. Trouble?
Tools. Techniques. Trouble?Tools. Techniques. Trouble?
Tools. Techniques. Trouble?Testplant
 
IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...
IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...
IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...IEEEGLOBALSOFTSTUDENTPROJECTS
 
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...IEEEFINALSEMSTUDENTPROJECTS
 
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...IEEEMEMTECHSTUDENTPROJECTS
 
Final Report To Executive ManagersXXXXXCCA 625Un
Final Report To Executive ManagersXXXXXCCA 625UnFinal Report To Executive ManagersXXXXXCCA 625Un
Final Report To Executive ManagersXXXXXCCA 625UnChereCheek752
 
1,2,3 … Testing : Is this thing on(line)? with Mike Martin
1,2,3 … Testing : Is this thing on(line)? with Mike Martin1,2,3 … Testing : Is this thing on(line)? with Mike Martin
1,2,3 … Testing : Is this thing on(line)? with Mike MartinNETUserGroupBern
 
Why Scale Matters and How the Cloud is Really Different (at scale)
Why Scale Matters and How the Cloud is Really Different (at scale)Why Scale Matters and How the Cloud is Really Different (at scale)
Why Scale Matters and How the Cloud is Really Different (at scale)Amazon Web Services
 
Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...
Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...
Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...Andreas Grabner
 
Microservice Automated Testing on Kubernetes
Microservice Automated Testing on KubernetesMicroservice Automated Testing on Kubernetes
Microservice Automated Testing on KubernetesShane Galvin
 
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...Amazon Web Services
 
GIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SC
GIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SCGIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SC
GIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SCJim Tochterman
 
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...Adrian Cockcroft
 
How to Reduce your Spend on AWS
How to Reduce your Spend on AWSHow to Reduce your Spend on AWS
How to Reduce your Spend on AWSJoseph K. Ziegler
 
Leveraging The Cloud In 2009
Leveraging The Cloud In 2009Leveraging The Cloud In 2009
Leveraging The Cloud In 2009Ed Laczynski
 
What is Amazon Web Services & How to Start to deploy your apps ?
What is Amazon Web Services & How to Start to deploy your apps ?What is Amazon Web Services & How to Start to deploy your apps ?
What is Amazon Web Services & How to Start to deploy your apps ?Sébastien ☁ Stormacq
 
Scale, baby, scale!
Scale, baby, scale!Scale, baby, scale!
Scale, baby, scale!Julien SIMON
 
AWS APAC Webinar Series: How to Reduce Your Spend on AWS
AWS APAC Webinar Series: How to Reduce Your Spend on AWSAWS APAC Webinar Series: How to Reduce Your Spend on AWS
AWS APAC Webinar Series: How to Reduce Your Spend on AWSAmazon Web Services
 

Similar to Virtual Stress-free Testing in the Cloud (20)

Tools. Techniques. Trouble?
Tools. Techniques. Trouble?Tools. Techniques. Trouble?
Tools. Techniques. Trouble?
 
IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...
IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...
IEEE 2014 JAVA CLOUD COMPUTING PROJECTS Automatic scaling of internet applica...
 
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
 
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
 
Final Report To Executive ManagersXXXXXCCA 625Un
Final Report To Executive ManagersXXXXXCCA 625UnFinal Report To Executive ManagersXXXXXCCA 625Un
Final Report To Executive ManagersXXXXXCCA 625Un
 
1,2,3 … Testing : Is this thing on(line)? with Mike Martin
1,2,3 … Testing : Is this thing on(line)? with Mike Martin1,2,3 … Testing : Is this thing on(line)? with Mike Martin
1,2,3 … Testing : Is this thing on(line)? with Mike Martin
 
Why Scale Matters and How the Cloud is Really Different (at scale)
Why Scale Matters and How the Cloud is Really Different (at scale)Why Scale Matters and How the Cloud is Really Different (at scale)
Why Scale Matters and How the Cloud is Really Different (at scale)
 
Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...
Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...
Performance Metrics for your Build Pipeline - presented at Vienna WebPerf Oct...
 
Microservice Automated Testing on Kubernetes
Microservice Automated Testing on KubernetesMicroservice Automated Testing on Kubernetes
Microservice Automated Testing on Kubernetes
 
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
 
GIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SC
GIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SCGIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SC
GIS & Cloud Computing - GAASC 2010 Fall Summit - Florence, SC
 
Path to continuous delivery
Path to continuous deliveryPath to continuous delivery
Path to continuous delivery
 
Testing Framework on AWS Cloud - Solution Set
Testing Framework on AWS Cloud - Solution SetTesting Framework on AWS Cloud - Solution Set
Testing Framework on AWS Cloud - Solution Set
 
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
 
Soasta Cloud Test
Soasta Cloud TestSoasta Cloud Test
Soasta Cloud Test
 
How to Reduce your Spend on AWS
How to Reduce your Spend on AWSHow to Reduce your Spend on AWS
How to Reduce your Spend on AWS
 
Leveraging The Cloud In 2009
Leveraging The Cloud In 2009Leveraging The Cloud In 2009
Leveraging The Cloud In 2009
 
What is Amazon Web Services & How to Start to deploy your apps ?
What is Amazon Web Services & How to Start to deploy your apps ?What is Amazon Web Services & How to Start to deploy your apps ?
What is Amazon Web Services & How to Start to deploy your apps ?
 
Scale, baby, scale!
Scale, baby, scale!Scale, baby, scale!
Scale, baby, scale!
 
AWS APAC Webinar Series: How to Reduce Your Spend on AWS
AWS APAC Webinar Series: How to Reduce Your Spend on AWSAWS APAC Webinar Series: How to Reduce Your Spend on AWS
AWS APAC Webinar Series: How to Reduce Your Spend on AWS
 

Recently uploaded

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

Virtual Stress-free Testing in the Cloud

  • 1. Virtual Stress-Free Testing in the Cloud Jinesh Varia Technology Evangelist Amazon Web Services
  • 2. Cloud Computing Defined “Cloud Computing is large pool of easily usable and accessible virtualized resources that can be dynamically reconfigured to adjust to a variable load and operated on a pay-per-use model” ACM “Cloud Computing is a style of computing where massively scalable IT-related capabilities are provided ‘as a service’ across the Internet to multiple external customers” Gartner
  • 3. Cloud Computing Defined “Cloud Computing is large pool of easily usable and accessible virtualized resources that can be dynamically reconfigured to adjust to a variable load and operated on a pay-per-use model” ACM “Cloud Computing is a style of computing where massively scalable IT-related capabilities are provided ‘as a service’ across the Internet to multiple external customers” Gartner
  • 5. Amazon EC2: Compute on Demand
  • 6. Amazon S3 The Internet Customer runinstance Amazon EC2
  • 7. Provision servers using command line interfaces runinstances(image-id, minCount, maxCount, instanceType, {m1.small, m1.large, m1.xlarge, c1.medium, and c1.xlarge} keyName, Placement.AvailabilityZone,{us-east-1a, us-east-1b, us-east-1c, eu-west-1a, eu-west-1b} …) PROMPT> ec2-run-instances ami-235fba4a -k gsg-keypair
  • 8. WebSphere Hibernate Java Linux Amazon Machine Image Amazon Machine Image - AMI PHP Apache Perl Postgress Linux-Ubuntu Ruby Rails MySQL Fedora-6 Amazon Machine Image Amazon Machine Image Amazon S3 AMI AMI AMI
  • 9. Amazon S3 AMI AMI AMI Amazon EC2
  • 10. Bundle Environments with 3 commands PROMPT> ec2-bundle-vol -d /mnt -k <your-private-key> -c <your-x509-cert> -u <userid> -r i386 -p sampleimage PROMPT> ec2-upload-bundle -b <your-s3-bucket>-m /mnt/sampleimage.manifest.xml-a <aws-access-key-id>-s <aws-secret-access-key> PROMPT> ec2-register <your-s3-bucket>/sampleimage.manifest.xml
  • 11. Today’s ‘Era of Tera’ Uncertainty Uncertainty in Business (“Slashdot/Techcrunched”) Uncertainty in Economy Users and Data flood Millions of Users and PBs of data Latency Matters Performance is now directly related to customer service Global-Scale Spanning Multiple Geographies Diverse Environments Mobile Platforms Middleware on Variety of DB Servers, App Servers
  • 12.
  • 13. Scale: 50 servers to 5000 servers in 3 days Amazon EC2 easily scaled to handle additional trafficPeak of 5000 instances Number of EC2 Instances “Techcrunched” Launch of Facebook modification. Steady state of ~40 instances 4/12/2008 4/14/2008 4/15/2008 4/16/2008 4/18/2008 4/19/2008 4/20/2008 4/17/2008 4/13/2008
  • 14.
  • 15. How to Test in this “Era of Tera” How will you test to see whether your website is spike-proof ? How will you test your website if 50M users are going to hit your website in next 2 hours? How will you test for 750K concurrent users ? How will you test your latency from different parts of the world ? How will you test when you have minimal testing budget in this economy ? How will you test on different environments ?
  • 16. Everything’s Changed, Nothing’s different Stress Testing Load Testing Web Performance Testing Web App (AJAX) testing Usability Testing Unit Testing Regression Tests Integration Tests
  • 18. Common problems in our world of testing “I cannot reproduce the bug” (environment mismatch) “Its just take too much time to configure the tools” “Site works fine in US, but does not work from EU” “Its too expensive to set up, maintain and update a test lab” “Its takes too much time and efforts to set up a test lab” “Test phase last for only 2 months : Underutilized Test Boxes”
  • 19. On-demand Test Labs Physical Test Labs become out-dated too fast Maintaining Test Labs is pain Configuration Latest patches Test lab when you need, For the duration you need “Need it now” “Need only for 3 month Test cycle” Elastic scale (Grow and Shrink requirements based on pre-defined SLA) Throw-away Test labs (Get a brand new lab every time) No more begging for more servers required
  • 21. AMIs for Reuse and Repros Virtualization Create test environments dynamically Bundle AMIs With basic dependencies and OS of your choice Share AMIs Share entire environments with dev/prod teams with few clicks
  • 22. Testing as a Service : “Push it to the Cloud” Traditional enterprise solutions are complex Incur High upfront license fees Steep learning curve in Open source tools Testing as a Service Stress, Load, Performance Testing services Pay as you go Meter bandwidth in/out Meter Instance Usage hours Meter CPU Usage-based costing model
  • 23.
  • 26. Total page requests per time interval
  • 27. Maximum response time per time interval
  • 30.
  • 31.
  • 37. Web Services Testing-Integration testing -Lost testing -Stress Testing -Performance Testing -Follow the Sun Tests
  • 38. “Let’s run it again!” Test more and Test Often Iterative process of test-analyze-fix-test Testing is a background activity Real-time results in Dashboards Automation through Web Services Set up test labs on-demand Automated scripts to launch infrastructure you need Cost-effective Automated Testing Infrastructure up only during the build and test time Build run at 2AM on 2 Instances for 2 Hours : Cost of ~$1/Day
  • 39.
  • 40. Test #60650 EC2 instances spawned Served 500K concurrent Users and 10 Million Hits in 1 Hour Test #0 GOAL: 3M Users/Hits in 1 Hour 200K concurrent Users Local : 100 Concurrent User test Test-Fix-Test Iterative Process Timeline Test #25300 EC2 instances spawned Crash point: 170K concurrent users Served 3M Users in 1 Hour Test #160 EC2 instances spawned Crash point: 500 concurrent users
  • 41. Test #60650 EC2 instances spawned Served 500K concurrent Users and 10 Million Hits in 1 Hour Test #0 GOAL: 3M Users/Hits in 1 Hour 200K concurrent Users Local : 100 Concurrent User Fail Goal: Exceeded Timeline : 3 Months Actual Testing time: 60 hours Test-Fix-Test Iterative Process Timeline Test #25300 EC2 instances spawned Crash point: 170K concurrent users Served 3M Users in 1 Hour Test #160 EC2 instances spawned Crash point: 500 concurrent users
  • 42.
  • 43. Generations of Testing* * James Whittaker Blog posts on “Future of Testing”
  • 44.
  • 45.
  • 46. User Testing at WeoGeo “We created a 6 question survey focused on our registration and email validation process and offered 2 cents per completed survey. After only 3 batches of 6 surveys (18 total for a whopping 36 cents!) we identified and confirmed problems with AOL, MSN Hotmail, and Yahoo! Mail. Other EC2 users had reported similar problems which quickly led us to a solution”
  • 47. Create actual test scenarios (Selenium) Usability testing Cross browser testing Analyze test results Test Links on the website Create Surveys to rate look and feel, navigation, search features of your website
  • 48. Generations of Testing * James Whittaker Blog posts on “Future of Testing” TestSourcing = CrowdSourcing + CloudComputing
  • 49. A Test problem : New Video Startup Suppose you just launched a new website that embeds videos on other websites... ... and you just landed a biz dev deal that will add 200X more load in less than two weeks! You want to know your site can handle 2000 concurrent video streams and the associated AJAX calls in between each clip. What would you do?
  • 50. A Solution The future of software (and testing) requires ultra-tight iteration loops. Cloud computing is poised to be a rocket on the back of agile techniques. Virtualize for consistent state management Crowd-source for quick human intelligence Massiveparallelization using both But first: How quickly can you obtain 2000 Firefox browsers?
  • 51. On-demand load testing service (pay only for what you use) Uses real Firefox browsers (based on Selenium automation technology) Bypasses traditional load testing approach of simulating HTTP traffic Only possible because of cloud computing Runs from EC2 US-East and EU-West Regions
  • 52. 2000 Browsers in 15 Minutes Massive amount of hardware required... ... yet available in minutes 334 High-CPU Extra Large EC2 Instances 2.6TB of RAM 2672 CPU Cores Over 550 mbps throughput
  • 53. Using Amazon EC2 15 minutes before a test: prepare hundreds of EC2 instances Each instance runs a Firefox browser and VNC X Server Failures are visually captured as screenshots Data is consolidated in a local EC2 availability zone and uploaded to S3 Our costs only occur when we have revenues, so our pricing can be very low
  • 54.
  • 55. Parallel Machines and People BrowserMob is just the tip of the iceberg! Imagine: What if quality could be verified in minutes instead of hours (1000s mins v/s 1 min) The key is parallel execution: Running automated tests in parallel (eg: unit tests, integration tests, browsers, etc) Using the crowd to temporarily increase your QA staff by 100X
  • 56. Cloud Computing is inevitable Testing in the Cloud Instant Test Labs in Minutes Testing as a Service Virtualization/AMI for Reuse and Repros Web Services for Automation On-Demand Workforce of Testers Client and Server Parallelization
  • 57. http://aws.amazon.com /sdb /sqs /ec2 Thank You! Jinesh Varia jvaria@amazon.com /s3 /support /forums /blog

Editor's Notes

  1. Stress test in the CloudCreate AMIs with libraries and dependenciesAdd “computer power” when needed and turn it off to reduce costsLoad test in the CloudGenerate load from one Availability Zone to test on other.Startup a pre-configured TestBox (EC2 instance) in minutesPerformance test in the CloudTest at Global scale - Latency from different parts of the worldStore all instrumentation data on S3, SimpleDB.Web App testingBrowser based Ajax/Selenium testing from different availability zones (US and EU)Create different deployment environments using scripts Usability TestingOn-demand workforceWhat does Testing in the Cloud mean:Automated, Virtual Test Labs that are live only when you need themStress test in the CloudFind the source of latency, Potential Crashes and/or points of Failure. Get Profile information thru logs and instrumentation and measureLoad test in the CloudGenerating load from one Availability zone to other “staging” servers on or off 100 concurrent browsing users that randomly click on links. Then, the load can be increased by 100 users every 10 minutes until the total expected user load of 100,000 users is reached.Performance test in the CloudHow fast the page is loading for a given user in given stateUsability Testing
  2. Testing in the CloudInstant Test Labs in MinutesTesting as a ServiceVirtualization/AMIs for Reuse and ReprosWeb Services for AutomationOn-Demand Workforce of Testers (“Elastic QA Staff”)Client and Server Parallelization
  3. Pay as you go - Increased utlization
  4. The Scheduler plans the plan, spawns the Load Generators, coordinates activities of the Load Generators, and plays traffic cop for all other tests being conducted in LoadStorm. The Load Generators (LG) produce the requests to the target web applications (server). They handle all communications with the server, including capturing returned pages and status codes. The LG builds an extensive record of raw data regarding the test metrics. The Summarizer uses the database of findings from the LG to calculate the metrics and KPIs that LoadStorm makes available through the graphs and tables for analysis.
  5. Testing as Background/Daily activity
  6. QTRAXNew Music Site for FREE Music Downloads, with 300,000 registered users
  7. TESTING CHALLENGEWanted to Test QTRAX.com “staging” sites located in LA-London-HKWanted to Test several different “real world” user scenario’s (Global)Wanted to Test over 3M users hitting web site in a (1) hour periodWanted to Test a “burst” of 200K concurrent users• QTRAX largest previous Load Test was 100 usersQTRAX TEST SETUPSOASTA Team worked with QTRAX to create (20) user scenariosSOASTA Team then provisioned (650) servers located in NJ, UK in 15 minutesQTRAX decided to monitored over a (800) areas of network, system, and applicationsQTRAX TESTStress and Load Test were Performed on the Qtrax Site located in Los Angeles Data CenterIterative Test Process, Lasted over (3) months, with a total of (60) Hours of actual Test TimeRamping up and spiking to 500,000 concurrent users or 2.32 Gbit per sec.Tested over 10M Hits per hour on the QTRAX siteRecored several TB’s of Test analytics and results Data.QTRAX RESULTSAggregated, correlated Test Data displayed LIVE thru real-time DashBoardsProblems were found-fixed-retested, until goal of 500,000 concurrent was hit
  8. The instant when average response times increased -- and at what user loadInformation about which application servers were not being balanced properly by the load balancersInformation about which application servers were having connection problemsInformation about which servers (Database, application server, web servers) were hitting CPU limitations at low virtual user levelsInformation about which user scenarios scaled well as the user load increasedMetrics around errors, error rates, and the causes of those errors
  9. The instant when average response times increased -- and at what user loadInformation about which application servers were not being balanced properly by the load balancersInformation about which application servers were having connection problemsInformation about which servers (Database, application server, web servers) were hitting CPU limitations at low virtual user levelsInformation about which user scenarios scaled well as the user load increasedMetrics around errors, error rates, and the causes of those errors
  10. Because some WeoGeo Market users reported that they were not receiving email notifications, we had a need for User Testing across a variety of email platforms.
  11. TestSourcing = CrowdSourcing + Cloud Computing
  12. Cloud Computing is changingIn this Era of Tera, Testing for Scale is imperativeTesting as a ServiceOn-DemandCloud TestingVirtualization for ReuseVirtualization for ReprosTest Labs in Minutes