SlideShare a Scribd company logo
FERNANDO 
HONIG 
Autoscaling 
+Chef +New Relic 
DevOps & Automation
ABOUT 
ME 
FERNANDO 
HONIG 
Senior Automation Engineer 
More than 10 years of experience 
Worked at Intel, IBM, HP 
@fernandohonig 
fernando.honig@rackspace.co.uk 
http://github.com/fernandohonig
RACKSPACE & DevOps Automation 
CONFIGURATION 
MANAGEMENT 
APPLICATION 
SCALE 
APPLICATION 
INSIGHT 
YOU CODE 
THE APP 
WE’LL DO 
THE REST
PROBLEMS 
Why to Autoscale? 
How/When to Autoscale? 
AUTOSCALING SCENARIOS 
SELF-HEALING 
New Relic Webhooks 
Application Stressing 
Load Balancer and Autoscaling 
HEAT ORCHESTRATION 
Full Deployment Stack 
Horizontal Scale Up 
BLUE/GREEN DEPLOYMENTS 
Jenkins + Chef + Autoscale 
Autoscaling 
+Chef +New Relic
AUTOSCALING: What? 
The act of changing the 
pool of resources 
able to serve requests 
without manual intervention
PROBLEMS: Why?
PROBLEMS: Why?
AUTOSCALING: Strategy 
 SEVERITY OF SPIKE: 
Is this a Reddit spike or a casual increase? 
 TIME TO PROVISION: 
Benchmark and test the time it takes to create new infrastructure. 
 EARLY WARNING: 
What is the earliest observed anomaly in a monitoring system that predicts 
this spike? 
 PER NODE CAPACITY: 
Load test individual nodes and your baseline platform to better understand 
how much natural elasticity is in your platform.
PROBLEMS: How? When? 
SCALE UP
PROBLEMS: How? When? 
SCALE 
DOWN 
NEW RELIC
PROBLEMS: Scaling down? 
SCALING DOWN, 
SESSIONS, NEW 
ARCHITECTURE 
WWW 
WEBSITE 
LOADBALANCER 
WWW 
WEBSITE 
LOADBALANCER
AUTOSCALING: Early warning!
 Monitor applications performance using NewRelic 
 Use NewRelic APDEX score to monitor application 
performance 
 Scale up on demand based on NewRelic stats 
(Self heal) 
 When threshold breached fire alert to webhook 
 Auto register node with application in NewRelic 
 Scale down when compute no longer needed 
AUTOSCALING: 
EARLY 
WARNING!
TOOLS! 
CONFIG MGMT CODE MGMT MONITORING
LOADBALANCER 
WEBSITE - SERVERS 
STEP 1: START 
WEBSITE STARTS HAVING MORE LOAD 
VISITORS 
WWW 
WEBSITE 
NEW RELIC
STEP 2: ALERT 
NEW RELIC APP MONITORING TRIGGERS 
A WEBHOOK FIRING AN AUTOSCALE EVENT 
WWW 
NEW RELIC AUTO SCALE SERVICE LOADBALANCER 
WEBSITE - SERVERS
STEP 3: SCALE UP 
AUTOSCALING GROUP LAUNCHES MORE 
COMPUTE CAPACITY 
WEBSITE – SERVERS ACTIVE 
WEBSITE+ 
SERVERS BUILDING 
WWW 
NEW RELIC AUTO SCALE SERVICE LOADBALANCER
STEP 4: CONFIGURE 
CHEF AUTOMATICALLY CONFIGURES 
THE NEW SERVERS 
WWW 
chef LOADBALANCER 
WEBSITE - SERVERS 
WEBSITE - SERVERS 
WEBSITE
STEP 5: COMPLETE 
THE NEW SERVERS ARE FULLY 
DEPLOYED & IN PRODUCTION 
CUSTOMER NEW RELIC 
NEW RELIC MONITORS THE 
WEBSITE & PROVIDES 
CUSTOMER WITH 
PRO-ACTIVE INSIGHT 
WWW 
WEBSITE 
LOADBALANCER 
WEBSITE - SERVERS
WWW 
WEBSITE 
SERVERS REMOVED 
STEP 6: DOWN 
WHEN APPLICATION RECOVERED 
OLD SERVERS ARE BEING REMOVED 
LOADBALANCER 
WEBSITE – SERVERS ACTIVE
DEMO
AUTOSCALING: Heat Orchestration
 Declare the infrastructure in one simple text 
file (YAML) 
 Create, update, connect and manage 
groups of cloud resources and their 
software components as a single unit 
(stack) 
 Automated, repeatable 
HEAT 
ORCHESTRATION
PROBLEM: Environments 
 DEV = UAT = PRD: 
Do we have the same architecture across all environments? 
 TROUBLESHOOTING: 
Is the problem related to the infrastructure or code? 
 QUICK ENVIRONMENT TEST: 
If we need an environment just for a few hours, or for a specific purpose?
TOOLS! 
CONFIG MGMT CODE MGMT MONITORING
heat_template_version: 2013-05-23 
description: 
# a description of the template 
parameters: 
# declaration of input parameters 
resources: 
# declaration of template resources 
outputs: 
# declaration of output parameters 
HEAT 
ORCHESTRATION
HEAT ORCHESTRATION: Code! 
http://goo.gl/xApJg1
ELK 
LOADBALANCER 
STEP 1: DEPLOY 
THE TEMPLATE CONTAINS THE 
AUTOSCALING GROUP, THE LB, 
THE POLICIES AND WEBHOOKS 
TEMPLATE CONTAINS ALL THE 
CHEF INFORMATION TO 
BOOTSTRAP THE NODE 
WITHIN THE RIGHT 
ENVIRONMENT AND ROLE. 
CUSTOMER 
STACK
ELK 
LOADBALANCER 
TEMPLATE CONTAINS ALL THE 
CHEF INFORMATION TO 
BOOTSTRAP THE NODE 
WITHIN THE RIGHT 
ENVIRONMENT AND ROLE. 
CUSTOMER 
STACK 
STEP 2: SCALE 
THE TEMPLATE CONTAINS THE 
AUTOSCALING GROUP, THE LB, 
THE POLICIES, AND WEBHOOKS 
AUTO SCALE SERVICE
STEP 3: CONFIGURE 
THE STACK WILL BE CONFIGURED 
AND ADDED TO THE LB BASED ON 
CHEF AUTOMATION 
ELK 
chef LOADBALANCER 
TEMPLATE CONTAINS ALL THE 
CHEF INFORMATION TO 
BOOTSTRAP THE NODE 
WITHIN THE RIGHT 
ENVIRONMENT AND ROLE. 
STACK
DEMO
AUTOSCALING: B/G Deployment
PROBLEM: Deployments 
 TIME TO MARKET: 
Why spend 8hs for doing a deployment? Can’t I just code my app? 
 AUTOMATION: 
I am human, I forgot to execute this step, rollback is needed. 
 BRAND NEW ENVIRONMENT: 
What if my old component is not compatible with the new one?
 Increase efficiency in the application release cycle 
 Allow the customer to focus on their core business 
 Fully automated one click deployment 
 Faster delivery of code to production 
 Easy roll back and in timely manner 
BLUE-GREEN 
DEPLOYMENTS
TOOLS! 
CONFIG MGMT CODE MGMT WORKFLOW
WWW 
LOADBALANCER 
STEP 1: DESIGN 
CUSTOMER DEVELOPS NEW VERSION 
OF THEIR WEBSITE (WEBSITE 2.0) 
CUSTOMER 
WEBSITE 1.0 
WEBSITE1.0 - SERVERS
STEP 2: DEPLOY 
CUSTOMER DEPLOYS NEW VERSION 
OF THEIR WEBSITE (WEBSITE 2.0) 
JENKINS 
NO FURTHER INTERACTION REQUIRED 
FULLY AUTOMATED FROM HERE ON OUT 
WWW 
LOADBALANCER 
CUSTOMER 
WEBSITE 1.0 
WEBSITE1.0 - SERVERS
STEP 3: SCALE UP 
AUTO SCALE SPINS UP NEW SERVERS 
JENKINS 
WWW 
WEBSITE 1.0 
WEBSITE 1.0 - SERVERS 
AUTO SCALE SERVICE 
WEBSITE 2.0 - SERVERS 
LOADBALANCER
STEP 4: CONFIGURE 
CHEF AUTOMATICALLY CONFIGURES 
THE NEW SERVERS 
WWW 
WEBSITE 1.0 
chef LOADBALANCER 
WEBSITE 2.0 - SERVERS WEBSITE 1.0 - SERVERS
STEP 5: SCALE DOWN 
JENKINS INITITIATES THE AUTOMATIC 
SPIN DOWN OF THE OLD SERVERS 
JENKINS 
WWW 
WEBSITE 1.0 
LOADBALANCER 
WEBSITE 2.0 - SERVERS 
AUTO SCALE SERVICE 
WEBSITE 1.0 SERVERS
STEP 6: PRODUCTION 
WWW 
WEBSITE 2.0 
WEBSITE 2.0 - SERVERS 
THE NEW WEBSITE IS FULLY 
DEPLOYED & IN PRODUCTION 
CUSTOMER NEW RELIC 
NEW RELIC MONITORS THE WEBSITE 
& PROVIDES CUSTOMER WITH 
PRO-ACTIVE INSIGHT 
LOADBALANCER
DEMO
SUMMARY 
 Autoscaling and Strategies behind 
 Application Architecture and scaling 
 Deployment enhancement using AS
Q&A
WHAT’S 
NEXT? 
www.rackspace.co.uk/devops
THANK YOU 
www.rackspace.co.uk/devops 
RACKSPACE® | 5 MILLINGTON ROAD | HAYES, UNITED KINGDOM UB3 4AZ 
RACKSPACE® | 1 FANATICAL PLACE, CITY OF WINDCREST | SAN ANTONIO, TX 78218 
US SALES: 1-800-961-2888 | US SUPPORT: 1-800-961-4454 RACKSPACE.COM 
UK SALES: +44 (0)20 8712 6507 | UK SUPPORT: 0800 988 0300 | WWW.RACKSPACE.CO.UK 
© RACKSPACE LTD. | RACKSPACE® AND FANATICAL SUPPORT® ARE SERVICE MARKS OF RACKSPACE US, INC. REGISTERED IN THE UNITED STATES AND OTHER COUNTRIES. | WWW.RACKSPACE.COM

More Related Content

What's hot

Building Better Chef Community Cookbooks
Building Better Chef Community CookbooksBuilding Better Chef Community Cookbooks
Building Better Chef Community Cookbooks
Tim Smith
 
Voice is the New Keyboard - Voice Interfaces in 2018 and Beyond
Voice is the New Keyboard - Voice Interfaces in 2018 and BeyondVoice is the New Keyboard - Voice Interfaces in 2018 and Beyond
Voice is the New Keyboard - Voice Interfaces in 2018 and Beyond
Keanan Koppenhaver
 
Building for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile webBuilding for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile web
Robin Glen
 
Building elements and experiences at Net-A-Porter
Building elements and experiences at Net-A-PorterBuilding elements and experiences at Net-A-Porter
Building elements and experiences at Net-A-Porter
Robin Glen
 
Serial Control Item in Oracle EBS
Serial Control Item in Oracle EBSSerial Control Item in Oracle EBS
Serial Control Item in Oracle EBS
Bizinsight Consulting Inc
 
Atp 11 b pocket guide(1)
Atp 11 b pocket guide(1)Atp 11 b pocket guide(1)
Atp 11 b pocket guide(1)
ankushwaskar19
 
Chat-Ops : PHP Berkshire
Chat-Ops : PHP BerkshireChat-Ops : PHP Berkshire
Chat-Ops : PHP Berkshire
fullybaked
 
Using Amazon Prime For Your Business
Using Amazon Prime For Your BusinessUsing Amazon Prime For Your Business
Using Amazon Prime For Your Business
Linnworks
 
Integrating Funambol with CalDAV and LDAP
Integrating Funambol with CalDAV and LDAPIntegrating Funambol with CalDAV and LDAP
Integrating Funambol with CalDAV and LDAP
Roberto Polli
 
Terraform Testing with InSpec Demo
Terraform Testing with InSpec DemoTerraform Testing with InSpec Demo
Terraform Testing with InSpec Demo
Annie Hedgpeth
 
Phoenix for Rubyists - Rubyconf Brazil 2016
Phoenix for Rubyists - Rubyconf Brazil 2016Phoenix for Rubyists - Rubyconf Brazil 2016
Phoenix for Rubyists - Rubyconf Brazil 2016
Mike North
 
REST in-practice, in practice!
REST in-practice, in practice!REST in-practice, in practice!
REST in-practice, in practice!
Codemotion
 
Voice controlled home automation
Voice controlled home automationVoice controlled home automation
Voice controlled home automation
Gopal Amlekar
 
Webinar: Postman 101 for Developers
Webinar: Postman 101 for DevelopersWebinar: Postman 101 for Developers
Webinar: Postman 101 for Developers
Postman
 
Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!
Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!
Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!
Rencore
 
WTF is PWA?
WTF is PWA?WTF is PWA?
WTF is PWA?
Alan Semenov
 
WordPress Development: Tracking Your Code With Version Control
WordPress Development: Tracking Your Code With Version ControlWordPress Development: Tracking Your Code With Version Control
WordPress Development: Tracking Your Code With Version Control
Sterling Hamilton
 
Deploy, Manage & Scale Your Apps with Elastic Beanstalk
Deploy, Manage & Scale Your Apps with Elastic BeanstalkDeploy, Manage & Scale Your Apps with Elastic Beanstalk
Deploy, Manage & Scale Your Apps with Elastic Beanstalk
Amazon Web Services
 
Rebuilding our Foundation
Rebuilding our FoundationRebuilding our Foundation
Rebuilding our Foundation
Jessica Mauerhan
 
Integrations: Using Postman in Your Workflows
Integrations: Using Postman in Your WorkflowsIntegrations: Using Postman in Your Workflows
Integrations: Using Postman in Your Workflows
Postman
 

What's hot (20)

Building Better Chef Community Cookbooks
Building Better Chef Community CookbooksBuilding Better Chef Community Cookbooks
Building Better Chef Community Cookbooks
 
Voice is the New Keyboard - Voice Interfaces in 2018 and Beyond
Voice is the New Keyboard - Voice Interfaces in 2018 and BeyondVoice is the New Keyboard - Voice Interfaces in 2018 and Beyond
Voice is the New Keyboard - Voice Interfaces in 2018 and Beyond
 
Building for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile webBuilding for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile web
 
Building elements and experiences at Net-A-Porter
Building elements and experiences at Net-A-PorterBuilding elements and experiences at Net-A-Porter
Building elements and experiences at Net-A-Porter
 
Serial Control Item in Oracle EBS
Serial Control Item in Oracle EBSSerial Control Item in Oracle EBS
Serial Control Item in Oracle EBS
 
Atp 11 b pocket guide(1)
Atp 11 b pocket guide(1)Atp 11 b pocket guide(1)
Atp 11 b pocket guide(1)
 
Chat-Ops : PHP Berkshire
Chat-Ops : PHP BerkshireChat-Ops : PHP Berkshire
Chat-Ops : PHP Berkshire
 
Using Amazon Prime For Your Business
Using Amazon Prime For Your BusinessUsing Amazon Prime For Your Business
Using Amazon Prime For Your Business
 
Integrating Funambol with CalDAV and LDAP
Integrating Funambol with CalDAV and LDAPIntegrating Funambol with CalDAV and LDAP
Integrating Funambol with CalDAV and LDAP
 
Terraform Testing with InSpec Demo
Terraform Testing with InSpec DemoTerraform Testing with InSpec Demo
Terraform Testing with InSpec Demo
 
Phoenix for Rubyists - Rubyconf Brazil 2016
Phoenix for Rubyists - Rubyconf Brazil 2016Phoenix for Rubyists - Rubyconf Brazil 2016
Phoenix for Rubyists - Rubyconf Brazil 2016
 
REST in-practice, in practice!
REST in-practice, in practice!REST in-practice, in practice!
REST in-practice, in practice!
 
Voice controlled home automation
Voice controlled home automationVoice controlled home automation
Voice controlled home automation
 
Webinar: Postman 101 for Developers
Webinar: Postman 101 for DevelopersWebinar: Postman 101 for Developers
Webinar: Postman 101 for Developers
 
Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!
Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!
Provisioning SPFx Solutions to SharePoint Online using PnP, ALM APIs and more!
 
WTF is PWA?
WTF is PWA?WTF is PWA?
WTF is PWA?
 
WordPress Development: Tracking Your Code With Version Control
WordPress Development: Tracking Your Code With Version ControlWordPress Development: Tracking Your Code With Version Control
WordPress Development: Tracking Your Code With Version Control
 
Deploy, Manage & Scale Your Apps with Elastic Beanstalk
Deploy, Manage & Scale Your Apps with Elastic BeanstalkDeploy, Manage & Scale Your Apps with Elastic Beanstalk
Deploy, Manage & Scale Your Apps with Elastic Beanstalk
 
Rebuilding our Foundation
Rebuilding our FoundationRebuilding our Foundation
Rebuilding our Foundation
 
Integrations: Using Postman in Your Workflows
Integrations: Using Postman in Your WorkflowsIntegrations: Using Postman in Your Workflows
Integrations: Using Postman in Your Workflows
 

Similar to Autoscaling, Chef and New Relic

Sleep better by automating monitoring for your app (CakeFest 2013)
Sleep better by automating monitoring for your app (CakeFest 2013)Sleep better by automating monitoring for your app (CakeFest 2013)
Sleep better by automating monitoring for your app (CakeFest 2013)
Juan Basso
 
Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...
Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...
Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...
New Relic
 
Optimizing for Change (Henrik Joreteg)
Optimizing for Change (Henrik Joreteg)Optimizing for Change (Henrik Joreteg)
Optimizing for Change (Henrik Joreteg)
Future Insights
 
Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad
Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad
Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad
DC Sitecore User Group
 
WordCamp Bucharest 2017
WordCamp Bucharest 2017WordCamp Bucharest 2017
WordCamp Bucharest 2017
Alexandra Anghel
 
Cloud Networking
Cloud NetworkingCloud Networking
Cloud Networking
Kirthana Palaniswamy
 
PHP, OAuth, Web Services and YQL
PHP, OAuth, Web Services and YQLPHP, OAuth, Web Services and YQL
PHP, OAuth, Web Services and YQL
kulor
 
Bringing JAMStack to the Enterprise
Bringing JAMStack to the EnterpriseBringing JAMStack to the Enterprise
Bringing JAMStack to the Enterprise
C4Media
 
The web - What it has, what it lacks and where it must go - Istanbul
The web - What it has, what it lacks and where it must go - IstanbulThe web - What it has, what it lacks and where it must go - Istanbul
The web - What it has, what it lacks and where it must go - Istanbul
Robert Nyman
 
Антон Бойко "Azure Web Apps deep dive"
Антон Бойко "Azure Web Apps deep dive"Антон Бойко "Azure Web Apps deep dive"
Антон Бойко "Azure Web Apps deep dive"
Fwdays
 
The web - What it has, what it lacks and where it must go
The web - What it has, what it lacks and where it must goThe web - What it has, what it lacks and where it must go
The web - What it has, what it lacks and where it must go
Robert Nyman
 
Dont Break Live lightning talk
Dont Break Live lightning talkDont Break Live lightning talk
Dont Break Live lightning talk
Jamie Schmid
 
Offline of web applications
Offline of web applicationsOffline of web applications
Offline of web applications
FDConf
 
Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014
Jan Jongboom
 
WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...
WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...
WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...
Alexandra Anghel
 
Webhooks
WebhooksWebhooks
Webhooks
Priyank Thada
 
QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...
QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...
QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...
Sangeeta Narayanan
 
Azure appservice
Azure appserviceAzure appservice
Azure appservice
Raju Kumar
 
DevOps and Cloud Native
DevOps and Cloud NativeDevOps and Cloud Native
DevOps and Cloud Native
Alistair Israel
 
What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03
What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03
What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03
Dennis Parrott
 

Similar to Autoscaling, Chef and New Relic (20)

Sleep better by automating monitoring for your app (CakeFest 2013)
Sleep better by automating monitoring for your app (CakeFest 2013)Sleep better by automating monitoring for your app (CakeFest 2013)
Sleep better by automating monitoring for your app (CakeFest 2013)
 
Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...
Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...
Appboy: Operating in the Cloud for 850 Million Monthly Active Users, FutureSt...
 
Optimizing for Change (Henrik Joreteg)
Optimizing for Change (Henrik Joreteg)Optimizing for Change (Henrik Joreteg)
Optimizing for Change (Henrik Joreteg)
 
Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad
Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad
Sitecore DevOps Automating your Sitecore Deployments by Naveed Ahmad
 
WordCamp Bucharest 2017
WordCamp Bucharest 2017WordCamp Bucharest 2017
WordCamp Bucharest 2017
 
Cloud Networking
Cloud NetworkingCloud Networking
Cloud Networking
 
PHP, OAuth, Web Services and YQL
PHP, OAuth, Web Services and YQLPHP, OAuth, Web Services and YQL
PHP, OAuth, Web Services and YQL
 
Bringing JAMStack to the Enterprise
Bringing JAMStack to the EnterpriseBringing JAMStack to the Enterprise
Bringing JAMStack to the Enterprise
 
The web - What it has, what it lacks and where it must go - Istanbul
The web - What it has, what it lacks and where it must go - IstanbulThe web - What it has, what it lacks and where it must go - Istanbul
The web - What it has, what it lacks and where it must go - Istanbul
 
Антон Бойко "Azure Web Apps deep dive"
Антон Бойко "Azure Web Apps deep dive"Антон Бойко "Azure Web Apps deep dive"
Антон Бойко "Azure Web Apps deep dive"
 
The web - What it has, what it lacks and where it must go
The web - What it has, what it lacks and where it must goThe web - What it has, what it lacks and where it must go
The web - What it has, what it lacks and where it must go
 
Dont Break Live lightning talk
Dont Break Live lightning talkDont Break Live lightning talk
Dont Break Live lightning talk
 
Offline of web applications
Offline of web applicationsOffline of web applications
Offline of web applications
 
Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014
 
WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...
WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...
WordCamp Athens 2017 - Building an E-commerce Progressive Web App with React ...
 
Webhooks
WebhooksWebhooks
Webhooks
 
QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...
QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...
QConSF 2014 - How we learned to stop worrying and start deploying the Netflix...
 
Azure appservice
Azure appserviceAzure appservice
Azure appservice
 
DevOps and Cloud Native
DevOps and Cloud NativeDevOps and Cloud Native
DevOps and Cloud Native
 
What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03
What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03
What’s new in IBM BPM 8.5.7 CF2016.06 - CF2017.03
 

Recently uploaded

Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
Trending Blogers
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
hackersuli
 
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
ukwwuq
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
cuobya
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
bseovas
 
Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
AanSulistiyo
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
uehowe
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
Paul Walk
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
ysasp1
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
uehowe
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
Gen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needsGen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needs
Laura Szabó
 
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
bseovas
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
cuobya
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
cuobya
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
wolfsoftcompanyco
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
zoowe
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
SEO Article Boost
 
Design Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptxDesign Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptx
saathvikreddy2003
 
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
vmemo1
 

Recently uploaded (20)

Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
 
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
 
Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
Gen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needsGen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needs
 
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
 
Design Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptxDesign Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptx
 
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
 

Autoscaling, Chef and New Relic

  • 1. FERNANDO HONIG Autoscaling +Chef +New Relic DevOps & Automation
  • 2. ABOUT ME FERNANDO HONIG Senior Automation Engineer More than 10 years of experience Worked at Intel, IBM, HP @fernandohonig fernando.honig@rackspace.co.uk http://github.com/fernandohonig
  • 3. RACKSPACE & DevOps Automation CONFIGURATION MANAGEMENT APPLICATION SCALE APPLICATION INSIGHT YOU CODE THE APP WE’LL DO THE REST
  • 4. PROBLEMS Why to Autoscale? How/When to Autoscale? AUTOSCALING SCENARIOS SELF-HEALING New Relic Webhooks Application Stressing Load Balancer and Autoscaling HEAT ORCHESTRATION Full Deployment Stack Horizontal Scale Up BLUE/GREEN DEPLOYMENTS Jenkins + Chef + Autoscale Autoscaling +Chef +New Relic
  • 5. AUTOSCALING: What? The act of changing the pool of resources able to serve requests without manual intervention
  • 8. AUTOSCALING: Strategy  SEVERITY OF SPIKE: Is this a Reddit spike or a casual increase?  TIME TO PROVISION: Benchmark and test the time it takes to create new infrastructure.  EARLY WARNING: What is the earliest observed anomaly in a monitoring system that predicts this spike?  PER NODE CAPACITY: Load test individual nodes and your baseline platform to better understand how much natural elasticity is in your platform.
  • 10. PROBLEMS: How? When? SCALE DOWN NEW RELIC
  • 11. PROBLEMS: Scaling down? SCALING DOWN, SESSIONS, NEW ARCHITECTURE WWW WEBSITE LOADBALANCER WWW WEBSITE LOADBALANCER
  • 13.  Monitor applications performance using NewRelic  Use NewRelic APDEX score to monitor application performance  Scale up on demand based on NewRelic stats (Self heal)  When threshold breached fire alert to webhook  Auto register node with application in NewRelic  Scale down when compute no longer needed AUTOSCALING: EARLY WARNING!
  • 14. TOOLS! CONFIG MGMT CODE MGMT MONITORING
  • 15. LOADBALANCER WEBSITE - SERVERS STEP 1: START WEBSITE STARTS HAVING MORE LOAD VISITORS WWW WEBSITE NEW RELIC
  • 16. STEP 2: ALERT NEW RELIC APP MONITORING TRIGGERS A WEBHOOK FIRING AN AUTOSCALE EVENT WWW NEW RELIC AUTO SCALE SERVICE LOADBALANCER WEBSITE - SERVERS
  • 17. STEP 3: SCALE UP AUTOSCALING GROUP LAUNCHES MORE COMPUTE CAPACITY WEBSITE – SERVERS ACTIVE WEBSITE+ SERVERS BUILDING WWW NEW RELIC AUTO SCALE SERVICE LOADBALANCER
  • 18. STEP 4: CONFIGURE CHEF AUTOMATICALLY CONFIGURES THE NEW SERVERS WWW chef LOADBALANCER WEBSITE - SERVERS WEBSITE - SERVERS WEBSITE
  • 19. STEP 5: COMPLETE THE NEW SERVERS ARE FULLY DEPLOYED & IN PRODUCTION CUSTOMER NEW RELIC NEW RELIC MONITORS THE WEBSITE & PROVIDES CUSTOMER WITH PRO-ACTIVE INSIGHT WWW WEBSITE LOADBALANCER WEBSITE - SERVERS
  • 20. WWW WEBSITE SERVERS REMOVED STEP 6: DOWN WHEN APPLICATION RECOVERED OLD SERVERS ARE BEING REMOVED LOADBALANCER WEBSITE – SERVERS ACTIVE
  • 21. DEMO
  • 23.  Declare the infrastructure in one simple text file (YAML)  Create, update, connect and manage groups of cloud resources and their software components as a single unit (stack)  Automated, repeatable HEAT ORCHESTRATION
  • 24. PROBLEM: Environments  DEV = UAT = PRD: Do we have the same architecture across all environments?  TROUBLESHOOTING: Is the problem related to the infrastructure or code?  QUICK ENVIRONMENT TEST: If we need an environment just for a few hours, or for a specific purpose?
  • 25. TOOLS! CONFIG MGMT CODE MGMT MONITORING
  • 26. heat_template_version: 2013-05-23 description: # a description of the template parameters: # declaration of input parameters resources: # declaration of template resources outputs: # declaration of output parameters HEAT ORCHESTRATION
  • 27. HEAT ORCHESTRATION: Code! http://goo.gl/xApJg1
  • 28. ELK LOADBALANCER STEP 1: DEPLOY THE TEMPLATE CONTAINS THE AUTOSCALING GROUP, THE LB, THE POLICIES AND WEBHOOKS TEMPLATE CONTAINS ALL THE CHEF INFORMATION TO BOOTSTRAP THE NODE WITHIN THE RIGHT ENVIRONMENT AND ROLE. CUSTOMER STACK
  • 29. ELK LOADBALANCER TEMPLATE CONTAINS ALL THE CHEF INFORMATION TO BOOTSTRAP THE NODE WITHIN THE RIGHT ENVIRONMENT AND ROLE. CUSTOMER STACK STEP 2: SCALE THE TEMPLATE CONTAINS THE AUTOSCALING GROUP, THE LB, THE POLICIES, AND WEBHOOKS AUTO SCALE SERVICE
  • 30. STEP 3: CONFIGURE THE STACK WILL BE CONFIGURED AND ADDED TO THE LB BASED ON CHEF AUTOMATION ELK chef LOADBALANCER TEMPLATE CONTAINS ALL THE CHEF INFORMATION TO BOOTSTRAP THE NODE WITHIN THE RIGHT ENVIRONMENT AND ROLE. STACK
  • 31. DEMO
  • 33. PROBLEM: Deployments  TIME TO MARKET: Why spend 8hs for doing a deployment? Can’t I just code my app?  AUTOMATION: I am human, I forgot to execute this step, rollback is needed.  BRAND NEW ENVIRONMENT: What if my old component is not compatible with the new one?
  • 34.
  • 35.  Increase efficiency in the application release cycle  Allow the customer to focus on their core business  Fully automated one click deployment  Faster delivery of code to production  Easy roll back and in timely manner BLUE-GREEN DEPLOYMENTS
  • 36. TOOLS! CONFIG MGMT CODE MGMT WORKFLOW
  • 37. WWW LOADBALANCER STEP 1: DESIGN CUSTOMER DEVELOPS NEW VERSION OF THEIR WEBSITE (WEBSITE 2.0) CUSTOMER WEBSITE 1.0 WEBSITE1.0 - SERVERS
  • 38. STEP 2: DEPLOY CUSTOMER DEPLOYS NEW VERSION OF THEIR WEBSITE (WEBSITE 2.0) JENKINS NO FURTHER INTERACTION REQUIRED FULLY AUTOMATED FROM HERE ON OUT WWW LOADBALANCER CUSTOMER WEBSITE 1.0 WEBSITE1.0 - SERVERS
  • 39. STEP 3: SCALE UP AUTO SCALE SPINS UP NEW SERVERS JENKINS WWW WEBSITE 1.0 WEBSITE 1.0 - SERVERS AUTO SCALE SERVICE WEBSITE 2.0 - SERVERS LOADBALANCER
  • 40. STEP 4: CONFIGURE CHEF AUTOMATICALLY CONFIGURES THE NEW SERVERS WWW WEBSITE 1.0 chef LOADBALANCER WEBSITE 2.0 - SERVERS WEBSITE 1.0 - SERVERS
  • 41. STEP 5: SCALE DOWN JENKINS INITITIATES THE AUTOMATIC SPIN DOWN OF THE OLD SERVERS JENKINS WWW WEBSITE 1.0 LOADBALANCER WEBSITE 2.0 - SERVERS AUTO SCALE SERVICE WEBSITE 1.0 SERVERS
  • 42. STEP 6: PRODUCTION WWW WEBSITE 2.0 WEBSITE 2.0 - SERVERS THE NEW WEBSITE IS FULLY DEPLOYED & IN PRODUCTION CUSTOMER NEW RELIC NEW RELIC MONITORS THE WEBSITE & PROVIDES CUSTOMER WITH PRO-ACTIVE INSIGHT LOADBALANCER
  • 43. DEMO
  • 44. SUMMARY  Autoscaling and Strategies behind  Application Architecture and scaling  Deployment enhancement using AS
  • 45. Q&A
  • 47. THANK YOU www.rackspace.co.uk/devops RACKSPACE® | 5 MILLINGTON ROAD | HAYES, UNITED KINGDOM UB3 4AZ RACKSPACE® | 1 FANATICAL PLACE, CITY OF WINDCREST | SAN ANTONIO, TX 78218 US SALES: 1-800-961-2888 | US SUPPORT: 1-800-961-4454 RACKSPACE.COM UK SALES: +44 (0)20 8712 6507 | UK SUPPORT: 0800 988 0300 | WWW.RACKSPACE.CO.UK © RACKSPACE LTD. | RACKSPACE® AND FANATICAL SUPPORT® ARE SERVICE MARKS OF RACKSPACE US, INC. REGISTERED IN THE UNITED STATES AND OTHER COUNTRIES. | WWW.RACKSPACE.COM