how to build resilient & scalable php applications on amazon web services

Download How to Build Resilient & Scalable PHP Applications on Amazon Web Services

If you can't read please download the document

Upload: jamiebegin

Post on 27-Nov-2014

3.477 views

Category:

Technology


2 download

DESCRIPTION

Slides accompanying RightBrain Network's January 10, 2013 at CodeMash 2013. (The animation that explains much of the autoscaling functionality is not supported by SlideShare. Please contact me directly for the original PowerPoint file.)

TRANSCRIPT

  • 1. Cloud-based SoftwareEngineering, Infrastructure, & DevOps.

2. A BIT ABOUT US Were a software consultancy, located near AnnArbor, Michigan, that specializes in cloud-based deploymentsand application architecture. Founded and host AWS Michigan, the regional user group.(Check us out: www.awsmichigan.org) Member of Amazons Consulting Partner Network & haveconsulted on over 70 AWS deployments since 2006. 3. WorseInfrastructure-as-a-ServiceCloud Computing PlatformEver! 4. ACTUALLY THOUGH AWS has never had a complete regional failure. Themost recent wide-spread outage (affecting Elastic LoadBalancers in US-East-1 on Christmas Eve) impactedonly 6.8% of ELBs. Applications have to be built with a cloud-baseddeployment in mind. Never use a single EC2instance for anything important. If your application completely dies, its likely your fault. 5. TRADITIONAL HOSTING VS EC2:A REAL WORLD EXAMPLE *Actual Google Analytics data from one of our clients using traditional dedicated hosting to serve approximately one million pageviews/mo. 6. TRADITIONAL DEDICATEDSERVERS 7. TRADITIONAL DEDICATEDSERVERS $ $ $ $ $ $ $ 8. TRADITIONAL DEDICATEDSERVERS 9. EC2 AUTOSCALING 10. EC2 AUTOSCALINGAutoscaling is the heart and soul of EC2. 11. AWS GEOGRAPHYREGIONSAVAILABILITY ZONES US-East-1 (N. Virginia) US-West-1 (N. California)US-West-2a US-West-2 (Oregon) US-West-2b EU-West-1 (Ireland)US-West-2c AP-Southeast-1 (Singapore) AP-Northeast-1 (Tokyo) AP-Southeast-1 (Sydney) SA-East-1 (Sao Paulo) 12. TYPICAL A.S. CONFIGElastic Load US-East-1Balancer (ELB) US-East-1a US-East-1c EC2 EC2 EC2 EC2App ServerApp Server RDS RDS Active DBStandby DBScale-Up Event 13. TYPICAL A.S. CONFIG Elastic Load US-East-1 Balancer(ELB)US-East-1a US-East-1cEC2 EC2 EC2 EC2 App ServerApp ServerRDS RDS Active DBAutomatic Database Failover 14. TYPICAL A.S. CONFIGElastic LoadUS-East-1 Balancer (ELB) US-East-1a US-East-1c EC2 EC2 EC2 EC2App ServerApp Server RDS RDSStandby DBActive DB 15. TYPICAL A.S. CONFIGElastic LoadUS-East-1 Balancer (ELB) US-East-1a US-East-1c EC2 EC2 EC2 EC2App ServerApp Server RDS RDS RDSStandby DBActive DB 16. TYPICAL A.S. CONFIG Elastic Load US-East-1 Balancer(ELB)US-East-1a US-East-1cEC2 EC2 EC2 EC2 App ServerApp ServerRDS RDSRDS Standby DBActive DBSelf-healing Network 17. TYPICAL A.S. CONFIG Elastic Load US-East-1 Balancer(ELB)US-East-1a US-East-1cEC2 EC2 EC2 EC2 App ServerApp ServerRDS RDSRDS Standby DBActive DBSelf-healing Network 18. TYPICAL A.S. CONFIGElastic LoadUS-East-1 Balancer (ELB) US-East-1a US-East-1c EC2 EC2 EC2 EC2 App Server App Server RDS RDS RDSStandby DBActive DBScale-Down Event 19. SOUND RATHER COMPLICATED? Well, it kinda is Elastic Beanstalk simplifies all of this by abstracting away theunderlying AWS resources. Using Elastic Beanstalk, Michael Gimbel will now show youhow to deploy a PHP app to AWS that does everything Ivediscussedin 20 minutes. 20. SIGNS YOUVE OUTGROWN ELASTIC BEANSTALK Need to use Nginx or a custom-compiled version ofApache. Want to use autoscaling logic that utilizes multiple metricsor custom metrics. Deployment workflow includes more advanced tools suchas Puppet or Chef. 21. SIGNS YOUVE OUTGROWNELASTIC BEANSTALK Youve hired someone who actually likes managingservers 22. BEYOND THE BEANSTALK Learn to love CloudFormation. Discover the many SaaS and open-source products on themarket that make your life easier: New Relic Application profiling and monitoring Newvem Google Analytics for AWS. Simian Army and Janitor Monkey Open source tools from Netflix Iron.io IronWorker, a cloud-based job scheduler Bees With Machine Guns Open source load testing 23. Scalable, Redundant Wordpress Deployment 24. THANKS FOR ATTENDING! Jamie Begin & Michael GimbelEmail: [email protected]: @ r b n _ j a m i eQuestions?