SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Experiences with AWS and RightScale
             By: Max Gribov
          max@sigilsoftware.com

Presented at New York PHP, March 22, 2011
           http://www.nyphp.org
AWS Basic Services



    EC2 – Elastic Computing platform, “servers”

    EBS – Elastic Block Storage, “presistent
    storage”

    S3 – Simple Storage, “offline backups”

    API to manage it all
AWS Advanced Services



    These are all supported by RightScale

    Elastic Load Balancing

    Relational Database Service (RDS)

    Simple Queue Service (SQS)

    Virtual Private Cloud (VPC)
AWS Advanced Services



    These are NOT supported by RightScale (at
    least on my paid account)

    Simple Notification Service (SNS)

    Simple Email Service (SES)
AWS Advanced Services



    These will compete with RightScale (uh-0h)

    Elastic Beanstalk

    CloudFormation
AWS Regions

    US East

    US West

    EU

    AP-Tokyo

    AP-Singapore

    Different pricing

    Extra charge when transferring data between
    regions
AWS Availability Zones

    Contained with a Region

    US East has 4

    No extra charge to transfer data within same
    zone

    Extra charge to transfer data between
    availability zones

    Will also have to pay if using public IP's during
    transfer (EIP to EIP) regardless of zoning
AWS Instances

    On-Demand Instances – the basic instance

    Reserved Instances - pay low fee, reserve
    instance, pay less per hour and don't pay if not
    using. End up being cheaper than on-demand.

    Spot Instances (NOT in RightScale) - bid on
    unused capacity, pricing fluctuates with
    demand. Can use it as long as your bid
    exceeds current price. Good for batch
    processing.

    Micro Instances – do not have their own
    storage, have to use EBS to boot. Weak and
Question!





    I have all these EC2 instances and EBS
    volumes and S3 snapshots, but how do I make
    them into an architecture?
Well, what did we do before AWS

    Buy some machines

    Put some OS on them

    Configure some services

    Deploy as an “architecture” (redundancy,
    monitoring, etc)

    Deploy our application

    Monitor

    Run out of capacity

    Go to Step 1
The Promise of the Cloud



    Provisioning is fast

    Pay for what you use

    Use no more than you need now

    Grow and shrink as needed
The Promise of the Cloud
            
                @devops_borat:
                Cloud is rarely fail. Is
                only when datacenter
                segfaults.
Enter RightScale


    An advanced web GUI, built on top of AWS
    API, to manage and monitor a cloud
    deployment

    Has a RESTful API to perform same tasks as
    the GUI (in beta)

    Handles provisioning, configuration,
    management and monitoring of cloud servers
    (EC2+EBS+S3)

    Also allows management of some of the
    advanced AWS services
RightScale basics

    Free account:
    
        No access to advanced Server Templates
    
        No auto-scaling Server Arrays
    
        No multiple user accounts
    
        http://www.rightscale.com/products/plans-pricing
RightScale Basics


    Multicloud Images – turn EC2 instances into
    servers

    Templates – turn a generic server into “web
    server”, “database server”, etc

    RightScripts – essential components of
    templates, run during boot/shutdown/operation
RightScale Basics

    Deployment – contains individual servers and
    Server Arrays (e.g. QA, Prod, Dev)

    Server Array – contains a number of identical
    servers performing same function (i.e. a cluster)

    Server Arrays can grow and shrink based on
    Alert Escalations or on a schedule

    Alert - “My CPU is 100% used” ( + notification)

    Alert Escalation - “Now that my CPU is so used,
    I vote to grow array by n members”
Some Details


    Everything can be cloned - make your QA
    deployment a copy of your Prod deployment

    Everything can be customized – start with
    RightScale MySQL Template and turn it into
    your own MongoDB Template

    RightScale keeps your custom stuff in Version
    Control
MultiCloud Images

    AMI

    Can be restricted to specific AWS Regions

    Provides basic OS
Templates

    Turns an instance into a specific server

    Is a collection of RightScripts and their Inputs

    For example, MySQL EBS template provides a
    MySQL server with a striped EBS volume,
    automated backups and replication

    Can clone an existing template and customize it
    by manipulating its RightScripts

    Live in revision control
RightScripts

    Can be in any language a server supports

    Get their parameters from the RightScale GUI

    Configure servers on boot

    Can be used during operation (ex: create full
    MySQL backup, promote slave to master)

    Can run on server shut down

    Can write your own and plug them into existing
    (or custom) ServerTemplates

    Live in revision control
RightScale Monitoring

    All servers run collectd

    RightScale collects and graphs a lot of data

    Email alerts

    No SMS alerts – this can be changed by using
    mobile@carrier.com though
RightScale Monitoring
Our Setup

    2 Deployments: QA and Prod

    Built Prod first, then cloned it and changed
    instance types to build QA

    Has 3 auto-scale web server arrays

    Has MySQL master/slave

    Has MongoDB replica pair
Load Balancing

    Using RightScale template with nginx and
    haproxy as LB's

    Haproxy is used because RightScale wrote
    pool management script for it – in reality could
    have used only nginx

    Using real server instead of AWS LB provides
    greater flexibility and customization, like rewrite
    rules

    Had to modify RightScripts and Templates to
    have a multi-pool LB
Database

    RightScale MySQL failover is done via DNS
    and low TTL on the record

    DNSMadeEasy is used to dynamically assign
    MySQL servers to master.domain.com and
    slave.domain.com

    Failover is manual, as per RightScale
    suggestion (but could be automated)

    MySQL backup is part of the template

    MySQL template includes EBS striping

    Had to roll own MongoDB template
Webserver Pools

    Have 3 pools in each deployment

    nginx+php-cgi

    Heavily customized RightScale PHP server
    template – no nginx+php-cgi template

    Customization was pretty easy

    Auto-scale by 2 if CPU load is high on more
    than 51% of the servers
Backups

    All backups are S3 snapshots

    MySQL template comes with snapshotting out
    of the box

    Created own scripts to do S3 snapshots on
    other servers
Conclusion

    RightScale gave us a good base (templates
    and scripts) to set up our own architecture

    RightScale provided good support for some
    high-level engineering/arch questions as well
    as small daily issues

    Did not have to write any code to take
    advantage of the Promise of the Cloud(tm)
Resources

    Cloud-related things I follow on twitter:
    https://twitter.com/#!/neuropunks/cloud/members

    http://phpfog.com - Heroku-like environment for
    PHP apps

    http://orchestra.io - Heroku-like environment for
    PHP apps

    http://www.slideshare.net/ijansch/php-and-the-cloud

Weitere ähnliche Inhalte

Was ist angesagt?

DAT103 Introducing Amazon RedShift - AWS re: Invent 2012
DAT103 Introducing Amazon RedShift - AWS re: Invent 2012DAT103 Introducing Amazon RedShift - AWS re: Invent 2012
DAT103 Introducing Amazon RedShift - AWS re: Invent 2012Amazon Web Services
 
AWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant systemAWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant systemNaoya Hashimoto
 
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkDeploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkAmazon Web Services
 
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012Amazon Web Services
 
Amazon Web Service EC2 & S3
Amazon Web Service EC2 & S3Amazon Web Service EC2 & S3
Amazon Web Service EC2 & S3Pravin Vaja
 
AWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic BeanstalkAWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic BeanstalkKMS Technology
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVAmazon Web Services
 
使用 Amazon Athena 直接分析儲存於 S3 的巨量資料
使用 Amazon Athena 直接分析儲存於 S3 的巨量資料使用 Amazon Athena 直接分析儲存於 S3 的巨量資料
使用 Amazon Athena 直接分析儲存於 S3 的巨量資料Amazon Web Services
 
Creating a RDS MySQL instance from AWS Console and CloudFormation
Creating a RDS MySQL instance from AWS Console and CloudFormationCreating a RDS MySQL instance from AWS Console and CloudFormation
Creating a RDS MySQL instance from AWS Console and CloudFormationSubhamay Bhattacharyya
 
Introduction to EC2
Introduction to EC2Introduction to EC2
Introduction to EC2Mark Squires
 
Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)Jason "JP" Pomerleau
 
Wordpress site scaling architecture on cloud infrastructure with AWS
Wordpress site scaling architecture on cloud infrastructure with AWSWordpress site scaling architecture on cloud infrastructure with AWS
Wordpress site scaling architecture on cloud infrastructure with AWSLe Kien Truc
 
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Amazon Web Services
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon AuroraAmazon Web Services
 
Scaling web application in the Cloud
Scaling web application in the CloudScaling web application in the Cloud
Scaling web application in the CloudFederico Feroldi
 

Was ist angesagt? (20)

DAT103 Introducing Amazon RedShift - AWS re: Invent 2012
DAT103 Introducing Amazon RedShift - AWS re: Invent 2012DAT103 Introducing Amazon RedShift - AWS re: Invent 2012
DAT103 Introducing Amazon RedShift - AWS re: Invent 2012
 
AWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant systemAWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant system
 
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkDeploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
 
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
RMG207 Introduction to AWS CloudFormation - AWS re: Invent 2012
 
Amazon Web Service EC2 & S3
Amazon Web Service EC2 & S3Amazon Web Service EC2 & S3
Amazon Web Service EC2 & S3
 
Compute Services con AWS
Compute Services con AWSCompute Services con AWS
Compute Services con AWS
 
AWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic BeanstalkAWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic Beanstalk
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSV
 
使用 Amazon Athena 直接分析儲存於 S3 的巨量資料
使用 Amazon Athena 直接分析儲存於 S3 的巨量資料使用 Amazon Athena 直接分析儲存於 S3 的巨量資料
使用 Amazon Athena 直接分析儲存於 S3 的巨量資料
 
Creating a RDS MySQL instance from AWS Console and CloudFormation
Creating a RDS MySQL instance from AWS Console and CloudFormationCreating a RDS MySQL instance from AWS Console and CloudFormation
Creating a RDS MySQL instance from AWS Console and CloudFormation
 
Introduction to EC2
Introduction to EC2Introduction to EC2
Introduction to EC2
 
Azure vs. amazon
Azure vs. amazonAzure vs. amazon
Azure vs. amazon
 
Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)
 
Aws cli
Aws cliAws cli
Aws cli
 
Wordpress site scaling architecture on cloud infrastructure with AWS
Wordpress site scaling architecture on cloud infrastructure with AWSWordpress site scaling architecture on cloud infrastructure with AWS
Wordpress site scaling architecture on cloud infrastructure with AWS
 
Aws elastic compute cloud
Aws   elastic compute cloudAws   elastic compute cloud
Aws elastic compute cloud
 
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
 
AWS EC2 Fundametals
AWS EC2 FundametalsAWS EC2 Fundametals
AWS EC2 Fundametals
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
Scaling web application in the Cloud
Scaling web application in the CloudScaling web application in the Cloud
Scaling web application in the Cloud
 

Andere mochten auch

Calculation of rf for maddar & turmeric
Calculation of rf for maddar & turmericCalculation of rf for maddar & turmeric
Calculation of rf for maddar & turmericShawan Roy
 
Ai complete note
Ai complete noteAi complete note
Ai complete noteNajar Aryal
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureShawan Roy
 
Assignment on Camouflage Fabric
Assignment on Camouflage FabricAssignment on Camouflage Fabric
Assignment on Camouflage FabricShawan Roy
 
Foodallergyseminarlectureclass kathy lampman
Foodallergyseminarlectureclass kathy lampmanFoodallergyseminarlectureclass kathy lampman
Foodallergyseminarlectureclass kathy lampmankathylampman
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureShawan Roy
 
Presentation on Camouflage Fabric
Presentation on Camouflage FabricPresentation on Camouflage Fabric
Presentation on Camouflage FabricShawan Roy
 
Electromagnetic field (emf)
Electromagnetic field (emf)Electromagnetic field (emf)
Electromagnetic field (emf)Shawan Roy
 
Weft knit fabric geometry
Weft knit fabric geometryWeft knit fabric geometry
Weft knit fabric geometryShawan Roy
 
Assignment on latest development on dyeing technique
Assignment on latest development on dyeing techniqueAssignment on latest development on dyeing technique
Assignment on latest development on dyeing techniqueShawan Roy
 
Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)Shawan Roy
 
ASTM Standard on Apparel
ASTM Standard on ApparelASTM Standard on Apparel
ASTM Standard on ApparelShawan Roy
 
Presentation on Smart Textile
Presentation on Smart TextilePresentation on Smart Textile
Presentation on Smart TextileShawan Roy
 
Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)Shawan Roy
 
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)Shawan Roy
 
Presentation on children's wear
Presentation on children's wearPresentation on children's wear
Presentation on children's wearShawan Roy
 

Andere mochten auch (18)

Calculation of rf for maddar & turmeric
Calculation of rf for maddar & turmericCalculation of rf for maddar & turmeric
Calculation of rf for maddar & turmeric
 
Profile awg 2
Profile awg 2Profile awg 2
Profile awg 2
 
RN cleaner
RN cleanerRN cleaner
RN cleaner
 
Ai complete note
Ai complete noteAi complete note
Ai complete note
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structure
 
Assignment on Camouflage Fabric
Assignment on Camouflage FabricAssignment on Camouflage Fabric
Assignment on Camouflage Fabric
 
Foodallergyseminarlectureclass kathy lampman
Foodallergyseminarlectureclass kathy lampmanFoodallergyseminarlectureclass kathy lampman
Foodallergyseminarlectureclass kathy lampman
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structure
 
Presentation on Camouflage Fabric
Presentation on Camouflage FabricPresentation on Camouflage Fabric
Presentation on Camouflage Fabric
 
Electromagnetic field (emf)
Electromagnetic field (emf)Electromagnetic field (emf)
Electromagnetic field (emf)
 
Weft knit fabric geometry
Weft knit fabric geometryWeft knit fabric geometry
Weft knit fabric geometry
 
Assignment on latest development on dyeing technique
Assignment on latest development on dyeing techniqueAssignment on latest development on dyeing technique
Assignment on latest development on dyeing technique
 
Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)
 
ASTM Standard on Apparel
ASTM Standard on ApparelASTM Standard on Apparel
ASTM Standard on Apparel
 
Presentation on Smart Textile
Presentation on Smart TextilePresentation on Smart Textile
Presentation on Smart Textile
 
Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)
 
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
 
Presentation on children's wear
Presentation on children's wearPresentation on children's wear
Presentation on children's wear
 

Ähnlich wie PHP LAMP AWS RightSscale

AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...Amazon Web Services
 
AWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the CloudAWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the CloudAmazon Web Services
 
Architecting Cloud Apps
Architecting Cloud AppsArchitecting Cloud Apps
Architecting Cloud Appsjineshvaria
 
Dallas Breakfast Seminar
Dallas Breakfast SeminarDallas Breakfast Seminar
Dallas Breakfast SeminarNuoDB
 
Scaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudScaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudVladimir Ilic
 
AWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh Varia
AWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh VariaAWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh Varia
AWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh VariaAmazon Web Services
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudDavid Veksler
 
Architecting for the Cloud: Best Practices
Architecting for the Cloud: Best PracticesArchitecting for the Cloud: Best Practices
Architecting for the Cloud: Best PracticesAmazon Web Services
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...Amazon Web Services
 
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the CloudNWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the Cloudnwcloud
 
AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013Amazon Web Services
 
AWS Webcast - Understanding database options
AWS Webcast - Understanding database optionsAWS Webcast - Understanding database options
AWS Webcast - Understanding database optionsAmazon Web Services
 
Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Amazon Web Services
 
Aws webcast - Scaling on AWS 13 08-20
Aws webcast - Scaling on AWS 13 08-20Aws webcast - Scaling on AWS 13 08-20
Aws webcast - Scaling on AWS 13 08-20Amazon Web Services
 
AWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdfAWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdfnishajeni1
 

Ähnlich wie PHP LAMP AWS RightSscale (20)

AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
AWS re:Invent 2016: How to Launch a 100K-User Corporate Back Office with Micr...
 
Aws ops works
Aws ops worksAws ops works
Aws ops works
 
AWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the CloudAWS Webcast - Best Practices in Architecting for the Cloud
AWS Webcast - Best Practices in Architecting for the Cloud
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
 
Architecting Cloud Apps
Architecting Cloud AppsArchitecting Cloud Apps
Architecting Cloud Apps
 
AWS.doc
AWS.docAWS.doc
AWS.doc
 
AWS Architecting In The Cloud
AWS Architecting In The CloudAWS Architecting In The Cloud
AWS Architecting In The Cloud
 
Dallas Breakfast Seminar
Dallas Breakfast SeminarDallas Breakfast Seminar
Dallas Breakfast Seminar
 
Scaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudScaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloud
 
AWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh Varia
AWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh VariaAWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh Varia
AWS Architecting Cloud Apps - Best Practices and Design Patterns By Jinesh Varia
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloud
 
Architecting for the Cloud: Best Practices
Architecting for the Cloud: Best PracticesArchitecting for the Cloud: Best Practices
Architecting for the Cloud: Best Practices
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the CloudNWCloud Cloud Track - Best Practices for Architecting in the Cloud
NWCloud Cloud Track - Best Practices for Architecting in the Cloud
 
AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013
 
AWS Webcast - Understanding database options
AWS Webcast - Understanding database optionsAWS Webcast - Understanding database options
AWS Webcast - Understanding database options
 
AMAZON CLOUD Course Content
AMAZON CLOUD Course ContentAMAZON CLOUD Course Content
AMAZON CLOUD Course Content
 
Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2
 
Aws webcast - Scaling on AWS 13 08-20
Aws webcast - Scaling on AWS 13 08-20Aws webcast - Scaling on AWS 13 08-20
Aws webcast - Scaling on AWS 13 08-20
 
AWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdfAWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdf
 

Kürzlich hochgeladen

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
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
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"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
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
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
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
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
 
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
 
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
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
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
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"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
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
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
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
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
 
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!
 
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
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 

PHP LAMP AWS RightSscale

  • 1. Experiences with AWS and RightScale By: Max Gribov max@sigilsoftware.com Presented at New York PHP, March 22, 2011 http://www.nyphp.org
  • 2. AWS Basic Services  EC2 – Elastic Computing platform, “servers”  EBS – Elastic Block Storage, “presistent storage”  S3 – Simple Storage, “offline backups”  API to manage it all
  • 3. AWS Advanced Services  These are all supported by RightScale  Elastic Load Balancing  Relational Database Service (RDS)  Simple Queue Service (SQS)  Virtual Private Cloud (VPC)
  • 4. AWS Advanced Services  These are NOT supported by RightScale (at least on my paid account)  Simple Notification Service (SNS)  Simple Email Service (SES)
  • 5. AWS Advanced Services  These will compete with RightScale (uh-0h)  Elastic Beanstalk  CloudFormation
  • 6. AWS Regions  US East  US West  EU  AP-Tokyo  AP-Singapore  Different pricing  Extra charge when transferring data between regions
  • 7. AWS Availability Zones  Contained with a Region  US East has 4  No extra charge to transfer data within same zone  Extra charge to transfer data between availability zones  Will also have to pay if using public IP's during transfer (EIP to EIP) regardless of zoning
  • 8. AWS Instances  On-Demand Instances – the basic instance  Reserved Instances - pay low fee, reserve instance, pay less per hour and don't pay if not using. End up being cheaper than on-demand.  Spot Instances (NOT in RightScale) - bid on unused capacity, pricing fluctuates with demand. Can use it as long as your bid exceeds current price. Good for batch processing.  Micro Instances – do not have their own storage, have to use EBS to boot. Weak and
  • 9. Question!  I have all these EC2 instances and EBS volumes and S3 snapshots, but how do I make them into an architecture?
  • 10. Well, what did we do before AWS  Buy some machines  Put some OS on them  Configure some services  Deploy as an “architecture” (redundancy, monitoring, etc)  Deploy our application  Monitor  Run out of capacity  Go to Step 1
  • 11. The Promise of the Cloud  Provisioning is fast  Pay for what you use  Use no more than you need now  Grow and shrink as needed
  • 12. The Promise of the Cloud  @devops_borat: Cloud is rarely fail. Is only when datacenter segfaults.
  • 13. Enter RightScale  An advanced web GUI, built on top of AWS API, to manage and monitor a cloud deployment  Has a RESTful API to perform same tasks as the GUI (in beta)  Handles provisioning, configuration, management and monitoring of cloud servers (EC2+EBS+S3)  Also allows management of some of the advanced AWS services
  • 14. RightScale basics  Free account:  No access to advanced Server Templates  No auto-scaling Server Arrays  No multiple user accounts  http://www.rightscale.com/products/plans-pricing
  • 15. RightScale Basics  Multicloud Images – turn EC2 instances into servers  Templates – turn a generic server into “web server”, “database server”, etc  RightScripts – essential components of templates, run during boot/shutdown/operation
  • 16. RightScale Basics  Deployment – contains individual servers and Server Arrays (e.g. QA, Prod, Dev)  Server Array – contains a number of identical servers performing same function (i.e. a cluster)  Server Arrays can grow and shrink based on Alert Escalations or on a schedule  Alert - “My CPU is 100% used” ( + notification)  Alert Escalation - “Now that my CPU is so used, I vote to grow array by n members”
  • 17. Some Details  Everything can be cloned - make your QA deployment a copy of your Prod deployment  Everything can be customized – start with RightScale MySQL Template and turn it into your own MongoDB Template  RightScale keeps your custom stuff in Version Control
  • 18. MultiCloud Images  AMI  Can be restricted to specific AWS Regions  Provides basic OS
  • 19. Templates  Turns an instance into a specific server  Is a collection of RightScripts and their Inputs  For example, MySQL EBS template provides a MySQL server with a striped EBS volume, automated backups and replication  Can clone an existing template and customize it by manipulating its RightScripts  Live in revision control
  • 20. RightScripts  Can be in any language a server supports  Get their parameters from the RightScale GUI  Configure servers on boot  Can be used during operation (ex: create full MySQL backup, promote slave to master)  Can run on server shut down  Can write your own and plug them into existing (or custom) ServerTemplates  Live in revision control
  • 21. RightScale Monitoring  All servers run collectd  RightScale collects and graphs a lot of data  Email alerts  No SMS alerts – this can be changed by using mobile@carrier.com though
  • 23. Our Setup  2 Deployments: QA and Prod  Built Prod first, then cloned it and changed instance types to build QA  Has 3 auto-scale web server arrays  Has MySQL master/slave  Has MongoDB replica pair
  • 24. Load Balancing  Using RightScale template with nginx and haproxy as LB's  Haproxy is used because RightScale wrote pool management script for it – in reality could have used only nginx  Using real server instead of AWS LB provides greater flexibility and customization, like rewrite rules  Had to modify RightScripts and Templates to have a multi-pool LB
  • 25. Database  RightScale MySQL failover is done via DNS and low TTL on the record  DNSMadeEasy is used to dynamically assign MySQL servers to master.domain.com and slave.domain.com  Failover is manual, as per RightScale suggestion (but could be automated)  MySQL backup is part of the template  MySQL template includes EBS striping  Had to roll own MongoDB template
  • 26. Webserver Pools  Have 3 pools in each deployment  nginx+php-cgi  Heavily customized RightScale PHP server template – no nginx+php-cgi template  Customization was pretty easy  Auto-scale by 2 if CPU load is high on more than 51% of the servers
  • 27. Backups  All backups are S3 snapshots  MySQL template comes with snapshotting out of the box  Created own scripts to do S3 snapshots on other servers
  • 28. Conclusion  RightScale gave us a good base (templates and scripts) to set up our own architecture  RightScale provided good support for some high-level engineering/arch questions as well as small daily issues  Did not have to write any code to take advantage of the Promise of the Cloud(tm)
  • 29. Resources  Cloud-related things I follow on twitter: https://twitter.com/#!/neuropunks/cloud/members  http://phpfog.com - Heroku-like environment for PHP apps  http://orchestra.io - Heroku-like environment for PHP apps  http://www.slideshare.net/ijansch/php-and-the-cloud