SlideShare ist ein Scribd-Unternehmen logo
1 von 72
Amazon Web Services
Duy Lam – April 2012
duylam@kms-technology.com
Skype: duypl.skype
What you can do after this
                      AutoScaling                 CloudWatch


                                                               Simple Queue
                                                                  Service
         Relational
         Database
          Service

                                                                  Load
                                                                Balancing


                                    Application
      Notification
                                       EC2
                                                                  …


use
                                         Public                               2
Agenda

Amazon Cloud Platform


 Amazon Compute Services


Amazon Services



        Public             3
Application as
           Service

          Platform as
            Service

        Infrastructure as
             Service


Cloud Computing
               Public       4
Regions

us-west-2


us-west-1
                                                                      ap-northeast-1
            us-east-1               eu-west-1




                                                     ap-southeast-1



                        sa-east-1




                                            Public                                     5
Availability Zones
    Regions




              Public   6
Usage of Regions and
                      Availability Zones


                                                         Regions
closer to specific customers, meet legal etc.




                                                Public             7
Data Transfer Cost

                       EC2
     EC2              machine
    machine             2
      1




    $!

              $!
                    Availability
                      Zone
                                     $      $


                                                EU (Ireland)
US-West (Northern California)

                                   Public                      8
Access Interfaces
                                      AWS
                                   Management
                                    Console(*)


                                   Java-based
                                    command
                                      line(*)



                                   AWS SDK(**)




                                   Web Service
                                    (REST or
                                   SOAP API)(**)

(*) : not all AWS services                         AWS SDKs (**)
(**) : all AWS services
                                      Public                 9
Agenda

Amazon Cloud Platform


 Amazon Compute Services


Amazon Services



        Public             10
Amazon Compute Services


     EC2                  CloudWatch


  Elastic Load              Auto
   Balancing               Scaling

                 Public                11
Amazon EC2 Web Service



                   Customized
Basic   Storage
                     AMIs




          Public            12
What is EC2 ?
“Amazon Elastic Compute Cloud (Amazon EC2) is a web service
that provides resizable computing capacity that you use to

build and host your software systems”



                                     an EC2 instance


                                 Availability Zone

                                                       Availability Zone




                            Public                                         13
Amazon Machine Image
                       & Instances
                                                                                                Large Instance Type

                                   launch instance                                        - 7.5 GB memory
                                                                                          - 4 EC2 Compute Units (*)
                                                                                          - 850 GB instance storage
                                                                  EC2 Instance
                                                                  (Large Instance Type)


       AMI
    (Template)
                                                                                                  High-CPU Medium
              A sample AMI                                                                            Instance Type
- OS: Ubuntu
- Platform: x86                                                                           - 1.7 GB of memory
                                                                                                                  (*)
- Storage devices: null                                           EC2 Instance            - 5 EC2 Compute Units
                                                                                          - 350 GB of instance storage
                                                                  (High-CPU Medium
                                                                    Instance Type)



  (*) 1 EC2 Compute Unit = 1.0 - 1.2 GHz 2007 Opteron or 2007 Xeon processor


                                                       Public                                                   14
Public AMI




    Public   15
Elastic Block Store
                             & Instance Store
                                                                               Detach
                                                                                                     Attach

                  Attach           instance store
                                 (ephemeral store)
                                                                  Instance A                                  Instance B

                                                                  Detaching
                  Attach
    Instance
                                                                                                        Persistence
                                    EBS volume



                                                                                                                   EBS volume



                                                               New EBS volume
Instance A                                                                              Instance B

               Create snapshot                        Create volume

                                                                                                        Instance
Backup                           EBS snapshot in Amazon S3


                                                             Public                                                         16
Root device storage

                          launch instance


AMI backed by instance store                Instance A
                                                         Attach more
                                                                       Root device storage




                          launch instance


                                            Instance B
   AMI backed by EBS
                                                         Attach more


                                            Public                                17
Elastic IP Addresses

                         10.0.0.190




      10.0.0.170                                     10.0.0.180




 ec2-122-248-202-170...com                   ec2-122-248-202-180...com
       1.1.1.1                                        1.1.1.2




                             Internet user

                             Public                                      18
Pricing Model
Usage hour per EC2 instance
Data Transfer per EC2 instance (both “in”
 and “out”) in different Availability Zone or
 Region
Data Transfer per Elastic IP Address (both
 “in” and “out”)

Other impact factors: Region, OS, Instance Type, Long-term Contract, Bidding


                                    Public                                 19
Demo




 Public   20
Amazon EC2 Web Service



                   Customized
Basic   Storage
                     AMIs




          Public            21
Storage Types

                 Elastic Block Store volume   Instance store
Persistent                    V
Cross-instance                V
access
Back up                       V
Size limits      Up to 1TiB per volume        Up to 3.3TiB per
                                              instance
Free                                                     V




                               Public                            22
EBS Incremental Backup
                                                                              create EBS volume



                                        10 GB                          5 GB
                                                                                                  15 GB

                      create snapshot                create snapshot




               0 GB                     10 GB                      15 GB
EC2 instance


                                   Time




                                                Public                                                23
Block device mapping
                                 <device name>=<value>



OS:     Amazon Linux
Kernel: aki-13d5aa41
….

                       /dev/sdb=none            /dev/sdc=ephemeral0
Block device mapping

                                             count up based on the instance type



  AMI template
                            /dev/sdd=snap-a08912c9:15:true



                             Public                                     24
EBS Pricing Model
Storage volume (in GB) per month
I/O request (in million)

Other impact factors: Region




                               Public   25
Amazon EC2 Web Service



                   Customized
Basic   Storage
                     AMIs




          Public            26
Needs of customized AMI
To meet the your own needs
To share
To sell




                Public        27
AMI Creation Process

                                        Windows         Linux/UNIX
Root storage device




                      EBS-backed
                      AMI                          1

                                                       From existing AMI
                      Instance store-     2
                      backed AMI
                                                       Fresh installation




                                          Public                            28
(1) Creating EBS-Backed AMIs
                                                Create image from
                                                   customized
                                                    instance
  Launch the              Customize
   instance                instance
                                                Create snapshot of            Register image
                                                   root device                from snapshot



PROMPT> ec2-create-image instance-id


                OR
                                                      PROMPT> ec2-register --root-device-name
                                                      /dev/sda1 -b /dev/sda1=snap-12345678




                                       Public                                              29
(2) Creating Windows
     instance store-backed AMI
                                                     Bundle
                                                                                 Register
  Launch the             Customize                 customized
                                                                                 bundled
   instance               instance                  instance
                                                                                  image
                                                      to S3


PROMPT> ec2-bundle-instance instance-id               PROMPT> ec2-register <s3-bucket>/image.manifest.xml
                                                        -n image_name


                  OR                                                        OR




                                          Public                                                     30
Amazon Compute Services


     EC2                  CloudWatch


  Elastic Load              Auto
   Balancing               Scaling

                 Public                31
Amazon CloudWatch Web Service


  EC2 instances   Load Balancers




  EBS volumes     RDS instances

  CloudWatch service                  •   CPU utilization
                                      •   Network traffic
                               000    •   I/O
                                      •   Latency
                                                     CloudWatch metrics

                             Public                              32
CloudWatch modes

           • At 5-minutes frequency
 Basic     • Free of charge



           • For EC2 instances
Detailed   • At 1-minute frequency
           • $3.5+ per instance per month


               Public                       33
Enable detailed monitoring
PROMPT> ec2-run-instances ami-id --monitor


PROMPT> ec2-monitor-instances instance-id




                               Public        34
CloudWatch Alarms
“Watches a single metric over a time period and invokes
actions when the value of the metric exceeds a given
threshold over a number of time periods”



        Amazon                          ALARM state
       SNS topic
                                                      INSUFFICIENT_DATA state




         Auto
        Scaling
         policy              OK state


                           Public                                     35
Pricing Model
Per EC2 instance / month
Per custom metric / month
Per Alarm / month
API Requests (per 1,000 Get, List, or Put
 requests)

Other impact factors: Region




                               Public        36
Demo




 Public   37
Amazon Compute Services


     EC2                  CloudWatch


  Elastic Load              Auto
   Balancing               Scaling

                 Public                38
Amazon Elastic Load Balancing
       Web Service




             Public             39
Overview for Developer
Sticky Sessions
"X-Forwarded-Port", "X-Forwarded-For"
 and "X-Forwarded-Proto" Support
Known issue: HTTP 60 seconds timeout
 for request




                  Public                 40
Pricing Model
Usage hour per Load Balancer instance
Data processed (in GB) per Load Balancer
 instance

Other impact factors: Region




                               Public   41
Demo




 Public   42
Amazon Compute Services


     EC2                  CloudWatch


  Elastic Load              Auto
   Balancing               Scaling

                 Public                43
Amazon AutoScaling Web Service


              trigger                     Scale Up




                                              Monitor
                        Auto Scaling

    trigger
                                        Scale Down




                               Public                   44
Type of Scaling
Manual scaling
Scaling by Schedule: in a future time
Scaling by Policy : triggered by a
 CloudWatch alarm




                    Public               45
Pricing Model




* Regular Amazon EC2 and Amazon CloudWatch service fees applied

                                                   Public         46
Demo




 Public   47
Agenda

Amazon Cloud Platform


 Amazon Compute Services


Amazon Services



        Public             48
Amazon Services

Relational             Simple
Database               Storage
 Service               Service

 Simple                Simple
 Queue                Notification
 Service               Service

             Public                  49
Amazon Relational Database
      Web Service
                     Resizable capacity
                      for databases
                     Amazon firewall
                     Flexible back up
                      methods
                     Replication (only on
                      MySQL)
                     Monitoring
            Public                     50
Create new DB Instance




                   Update DB Security Group before
                   connecting to the instance




          Public                                     51
MySQL Replication
Multi-AZ deployment
To increase database availability



Read Replicas
For read-heavy database workloads


                     Public         52
Pricing Model
Per DB Instance Class / month
Storage (in GB) / month
I/O (in million) / month
Back up storage / month
Bandwidth (in GB both “in” / ”out”) / month

Other impact factors: Region, Multi-AZ Deployment, Reserved Instances



                                   Public                               53
Amazon Services

Relational             Simple
Database               Storage
 Service               Service

 Simple                Simple
 Queue                Notification
 Service               Service

             Public                  54
Amazon Simple Storage
             Web Service
  Amazon S3 is storage for the Internet


               HTTP PUT request
User A                                    S3
                                        bucket
           HTTP GET response
User B


                               Public            55
Key Features
Control access to buckets and
 objects
Versioning objects in a bucket




                 Public           56
Pricing Model
Storage (in GB) / month
Requests (in 1000 unit) / month
Bandwidth (in GB both “in” / ”out”) / month

Other impact factors: Region, Reduced Redundancy Storage option




                                  Public                          57
Demo




 Public   58
Amazon Services

Relational             Simple
Database               Storage
 Service               Service

 Simple                Simple
 Queue                Notification
 Service               Service

             Public                  59
Amazon Simple Queue
                 Web Service
                   HTTP GET or POST request

                     message (text)                    Message 1
 Machine A
                                                            Message 2

                                                            Message 3
                       HTTP GET or POST response

                        message (text)                 Message 4
 Machine B


Your application
                                                        Amazon Queue
                                              Public                    60
Key Features
64 KB of text in a message
Not first in, first out delivery of messages
Locking the message: Visibility Timeout




Control access to a queue
                      Public                    61
Pricing Model
$0.01 per 10k requests
"out" bandwidth (in GB)

Other impact factors: Region




                               Public   62
Demo




 Public   63
Amazon Services

Relational             Simple
Database               Storage
 Service               Service

 Simple                Simple
 Queue                Notification
 Service               Service

             Public                  64
Amazon Simple Notification
                 Web Service
                                                HTTP POST request
                                                                      http://receiver.com/message
                                                  message (text)
                                                                                          Subscriber


            HTTP GET request
                               Notification
                                                       Email
             message (text)       topic            message (text)       receiver@email.com
                                                                                   Subscriber
Program A
                                      SNS
                                               Simple Queue Service

                                                   message (text)           Queue

                                                                                    Subscriber


                                                     SMS (in US)

                                                   Message (text)       800-201-7575
                                                                             Subscriber



                                      Public                                              65
Key Features
Message: UTF-8 encoded up to 8 KB
Control access to a topic




                  Public             66
Pricing Model
$0.06 per 100k API Requests (free first
 100k requests) / month
Amount of notifications (free first part) /
 month
"out" bandwidth (in GB)

Other impact factors: Region




                               Public          67
Demo




 Public   68
CLOSING
More
for
you



       Public   70
Getting started
http://aws.amazon.com/free/
https://github.com/duylam/kms-
 amazon-web-services




                 Public           71
THANK YOU

Weitere ähnliche Inhalte

Andere mochten auch

Cross platform mobile development with Corona
Cross platform mobile development with CoronaCross platform mobile development with Corona
Cross platform mobile development with CoronaKMS Technology
 
KMS story and How Vietnam to export software outsourcing services or build so...
KMS story and How Vietnam to export software outsourcing services or build so...KMS story and How Vietnam to export software outsourcing services or build so...
KMS story and How Vietnam to export software outsourcing services or build so...KMS Technology
 
Caching and IPC with Redis
Caching and IPC with RedisCaching and IPC with Redis
Caching and IPC with RedisKMS Technology
 
Git - Boost Your DEV Team Speed and Productivity
Git - Boost Your DEV Team Speed and ProductivityGit - Boost Your DEV Team Speed and Productivity
Git - Boost Your DEV Team Speed and ProductivityKMS Technology
 
About KMS Technology - Updated on July 2013
About KMS Technology - Updated on July 2013About KMS Technology - Updated on July 2013
About KMS Technology - Updated on July 2013KMS Technology
 
Contributors for Delivering a Successful Testing Project Seminar
Contributors for Delivering a Successful Testing Project SeminarContributors for Delivering a Successful Testing Project Seminar
Contributors for Delivering a Successful Testing Project SeminarKMS Technology
 
Increase Chances to Be Hired as Software Developers - 2014
Increase Chances to Be Hired as Software Developers - 2014Increase Chances to Be Hired as Software Developers - 2014
Increase Chances to Be Hired as Software Developers - 2014KMS Technology
 
Mobile Development Career
Mobile Development CareerMobile Development Career
Mobile Development CareerKMS Technology
 
Developing Apps for Windows Phone 8
Developing Apps for Windows Phone 8Developing Apps for Windows Phone 8
Developing Apps for Windows Phone 8KMS Technology
 
What's new in the Front-end development nowadays?
What's new in the Front-end development nowadays?What's new in the Front-end development nowadays?
What's new in the Front-end development nowadays?KMS Technology
 
Big Data Overview 2013-2014
Big Data Overview 2013-2014Big Data Overview 2013-2014
Big Data Overview 2013-2014KMS Technology
 
Cross Platform Mobile Development with C# and Xamarin
Cross Platform Mobile Development with C# and XamarinCross Platform Mobile Development with C# and Xamarin
Cross Platform Mobile Development with C# and XamarinKMS Technology
 
Preparations For A Successful Interview
Preparations For A Successful InterviewPreparations For A Successful Interview
Preparations For A Successful InterviewKMS Technology
 
Become Software Tester or Developer
Become Software Tester or DeveloperBecome Software Tester or Developer
Become Software Tester or DeveloperKMS Technology
 
Software Technology Trends in 2013-2014
Software Technology Trends in 2013-2014Software Technology Trends in 2013-2014
Software Technology Trends in 2013-2014KMS Technology
 
Technology Trends in 2013-2014
Technology Trends in 2013-2014Technology Trends in 2013-2014
Technology Trends in 2013-2014KMS Technology
 
Book sharing - Getting to Yes
Book sharing - Getting to YesBook sharing - Getting to Yes
Book sharing - Getting to YesKMS Technology
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOpsKMS Technology
 

Andere mochten auch (20)

Cross platform mobile development with Corona
Cross platform mobile development with CoronaCross platform mobile development with Corona
Cross platform mobile development with Corona
 
KMS' Stories
KMS' StoriesKMS' Stories
KMS' Stories
 
KMS story and How Vietnam to export software outsourcing services or build so...
KMS story and How Vietnam to export software outsourcing services or build so...KMS story and How Vietnam to export software outsourcing services or build so...
KMS story and How Vietnam to export software outsourcing services or build so...
 
Caching and IPC with Redis
Caching and IPC with RedisCaching and IPC with Redis
Caching and IPC with Redis
 
KMS Introduction
KMS IntroductionKMS Introduction
KMS Introduction
 
Git - Boost Your DEV Team Speed and Productivity
Git - Boost Your DEV Team Speed and ProductivityGit - Boost Your DEV Team Speed and Productivity
Git - Boost Your DEV Team Speed and Productivity
 
About KMS Technology - Updated on July 2013
About KMS Technology - Updated on July 2013About KMS Technology - Updated on July 2013
About KMS Technology - Updated on July 2013
 
Contributors for Delivering a Successful Testing Project Seminar
Contributors for Delivering a Successful Testing Project SeminarContributors for Delivering a Successful Testing Project Seminar
Contributors for Delivering a Successful Testing Project Seminar
 
Increase Chances to Be Hired as Software Developers - 2014
Increase Chances to Be Hired as Software Developers - 2014Increase Chances to Be Hired as Software Developers - 2014
Increase Chances to Be Hired as Software Developers - 2014
 
Mobile Development Career
Mobile Development CareerMobile Development Career
Mobile Development Career
 
Developing Apps for Windows Phone 8
Developing Apps for Windows Phone 8Developing Apps for Windows Phone 8
Developing Apps for Windows Phone 8
 
What's new in the Front-end development nowadays?
What's new in the Front-end development nowadays?What's new in the Front-end development nowadays?
What's new in the Front-end development nowadays?
 
Big Data Overview 2013-2014
Big Data Overview 2013-2014Big Data Overview 2013-2014
Big Data Overview 2013-2014
 
Cross Platform Mobile Development with C# and Xamarin
Cross Platform Mobile Development with C# and XamarinCross Platform Mobile Development with C# and Xamarin
Cross Platform Mobile Development with C# and Xamarin
 
Preparations For A Successful Interview
Preparations For A Successful InterviewPreparations For A Successful Interview
Preparations For A Successful Interview
 
Become Software Tester or Developer
Become Software Tester or DeveloperBecome Software Tester or Developer
Become Software Tester or Developer
 
Software Technology Trends in 2013-2014
Software Technology Trends in 2013-2014Software Technology Trends in 2013-2014
Software Technology Trends in 2013-2014
 
Technology Trends in 2013-2014
Technology Trends in 2013-2014Technology Trends in 2013-2014
Technology Trends in 2013-2014
 
Book sharing - Getting to Yes
Book sharing - Getting to YesBook sharing - Getting to Yes
Book sharing - Getting to Yes
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
 

Ähnlich wie Amazon web services

Netflix Moving To Cloud
Netflix Moving To CloudNetflix Moving To Cloud
Netflix Moving To CloudHien Luu
 
Amazon Clouds in Action
Amazon Clouds in ActionAmazon Clouds in Action
Amazon Clouds in Actionzenyk
 
Case study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash BadoneCase study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash BadoneAkash Badone
 
Amazon Web Services EC2 Basics
Amazon Web Services EC2 BasicsAmazon Web Services EC2 Basics
Amazon Web Services EC2 BasicsOnur ŞALK
 
プラットフォーム分科会_20100804
プラットフォーム分科会_20100804プラットフォーム分科会_20100804
プラットフォーム分科会_20100804Yoshiki Ushida
 
Taking Web Application Deployment from Infancy to Maturity in AWS
Taking Web Application Deployment from Infancy to Maturity in AWSTaking Web Application Deployment from Infancy to Maturity in AWS
Taking Web Application Deployment from Infancy to Maturity in AWSP3 InfoTech Solutions Pvt. Ltd.
 
Cloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarbor
Cloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarborCloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarbor
Cloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarborSvetlin Nakov
 
Amazon Ec2 Application Design
Amazon Ec2 Application DesignAmazon Ec2 Application Design
Amazon Ec2 Application Designguestd0b61e
 
NHGRI Cloud Computing talk
NHGRI Cloud Computing talkNHGRI Cloud Computing talk
NHGRI Cloud Computing talkDeepak Singh
 
Amazon Web Services - Elastic Beanstalk
Amazon Web Services - Elastic BeanstalkAmazon Web Services - Elastic Beanstalk
Amazon Web Services - Elastic BeanstalkAmazon Web Services
 
AWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant ApplicatonsAWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant ApplicatonsAmazon Web Services
 
Introducing Amazon RDS Using Oracle Database
Introducing Amazon RDS Using Oracle DatabaseIntroducing Amazon RDS Using Oracle Database
Introducing Amazon RDS Using Oracle DatabaseJamie Kinney
 
Developing And Running A Website On Amazon S E
Developing And Running A Website On Amazon S EDeveloping And Running A Website On Amazon S E
Developing And Running A Website On Amazon S Ejaymuntz
 
SAP REST Summit 2009 - Atom At Work
SAP REST Summit 2009 - Atom At WorkSAP REST Summit 2009 - Atom At Work
SAP REST Summit 2009 - Atom At WorkJuergen Schmerder
 
Oracle on aws overview sep 2011
Oracle on aws overview   sep 2011Oracle on aws overview   sep 2011
Oracle on aws overview sep 2011Jamie Kinney
 
Cloumon enterprise
Cloumon enterpriseCloumon enterprise
Cloumon enterpriseGruter
 
S111477 scale-in-cloud-jburg-v1909d
S111477 scale-in-cloud-jburg-v1909dS111477 scale-in-cloud-jburg-v1909d
S111477 scale-in-cloud-jburg-v1909dTony Pearson
 
IBM Spectrum Scale on the Cloud
IBM Spectrum Scale on the CloudIBM Spectrum Scale on the Cloud
IBM Spectrum Scale on the CloudTony Pearson
 

Ähnlich wie Amazon web services (20)

Netflix Moving To Cloud
Netflix Moving To CloudNetflix Moving To Cloud
Netflix Moving To Cloud
 
Amazon Clouds in Action
Amazon Clouds in ActionAmazon Clouds in Action
Amazon Clouds in Action
 
Case study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash BadoneCase study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash Badone
 
Amazon Web Services EC2 Basics
Amazon Web Services EC2 BasicsAmazon Web Services EC2 Basics
Amazon Web Services EC2 Basics
 
プラットフォーム分科会_20100804
プラットフォーム分科会_20100804プラットフォーム分科会_20100804
プラットフォーム分科会_20100804
 
Taking Web Application Deployment from Infancy to Maturity in AWS
Taking Web Application Deployment from Infancy to Maturity in AWSTaking Web Application Deployment from Infancy to Maturity in AWS
Taking Web Application Deployment from Infancy to Maturity in AWS
 
Cloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarbor
Cloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarborCloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarbor
Cloud for Developers: Azure vs. Google App Engine vs. Amazon vs. AppHarbor
 
Amazon Ec2 Application Design
Amazon Ec2 Application DesignAmazon Ec2 Application Design
Amazon Ec2 Application Design
 
NHGRI Cloud Computing talk
NHGRI Cloud Computing talkNHGRI Cloud Computing talk
NHGRI Cloud Computing talk
 
Amazon Web Services - Elastic Beanstalk
Amazon Web Services - Elastic BeanstalkAmazon Web Services - Elastic Beanstalk
Amazon Web Services - Elastic Beanstalk
 
Jeff barr Seattle_interactive_2011_q4
Jeff barr Seattle_interactive_2011_q4Jeff barr Seattle_interactive_2011_q4
Jeff barr Seattle_interactive_2011_q4
 
AWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant ApplicatonsAWS Summit 2011: Designing Fault Tolerant Applicatons
AWS Summit 2011: Designing Fault Tolerant Applicatons
 
Introducing Amazon RDS Using Oracle Database
Introducing Amazon RDS Using Oracle DatabaseIntroducing Amazon RDS Using Oracle Database
Introducing Amazon RDS Using Oracle Database
 
Developing And Running A Website On Amazon S E
Developing And Running A Website On Amazon S EDeveloping And Running A Website On Amazon S E
Developing And Running A Website On Amazon S E
 
AWSome Day Dublin - June 2016
AWSome Day Dublin - June 2016AWSome Day Dublin - June 2016
AWSome Day Dublin - June 2016
 
SAP REST Summit 2009 - Atom At Work
SAP REST Summit 2009 - Atom At WorkSAP REST Summit 2009 - Atom At Work
SAP REST Summit 2009 - Atom At Work
 
Oracle on aws overview sep 2011
Oracle on aws overview   sep 2011Oracle on aws overview   sep 2011
Oracle on aws overview sep 2011
 
Cloumon enterprise
Cloumon enterpriseCloumon enterprise
Cloumon enterprise
 
S111477 scale-in-cloud-jburg-v1909d
S111477 scale-in-cloud-jburg-v1909dS111477 scale-in-cloud-jburg-v1909d
S111477 scale-in-cloud-jburg-v1909d
 
IBM Spectrum Scale on the Cloud
IBM Spectrum Scale on the CloudIBM Spectrum Scale on the Cloud
IBM Spectrum Scale on the Cloud
 

Mehr von KMS Technology

A journey to a Full Stack Tester
A journey to a Full Stack Tester A journey to a Full Stack Tester
A journey to a Full Stack Tester KMS Technology
 
React & Redux, how to scale?
React & Redux, how to scale?React & Redux, how to scale?
React & Redux, how to scale?KMS Technology
 
Common design principles and design patterns in automation testing
Common design principles and design patterns in automation testingCommon design principles and design patterns in automation testing
Common design principles and design patterns in automation testingKMS Technology
 
JavaScript - No Longer A Toy Language
JavaScript - No Longer A Toy LanguageJavaScript - No Longer A Toy Language
JavaScript - No Longer A Toy LanguageKMS Technology
 
Introduction To Single Page Application
Introduction To Single Page ApplicationIntroduction To Single Page Application
Introduction To Single Page ApplicationKMS Technology
 
AWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic BeanstalkAWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic BeanstalkKMS Technology
 
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...KMS Technology
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberKMS Technology
 
Cross-platform Mobile Development with C# and Xamarin Webinar
Cross-platform Mobile Development with C# and Xamarin WebinarCross-platform Mobile Development with C# and Xamarin Webinar
Cross-platform Mobile Development with C# and Xamarin WebinarKMS Technology
 
Software Testing Process & Trend
Software Testing Process & TrendSoftware Testing Process & Trend
Software Testing Process & TrendKMS Technology
 
Software Technology Trends
Software Technology TrendsSoftware Technology Trends
Software Technology TrendsKMS Technology
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingKMS Technology
 

Mehr von KMS Technology (15)

A journey to a Full Stack Tester
A journey to a Full Stack Tester A journey to a Full Stack Tester
A journey to a Full Stack Tester
 
React & Redux, how to scale?
React & Redux, how to scale?React & Redux, how to scale?
React & Redux, how to scale?
 
Sexy React Stack
Sexy React StackSexy React Stack
Sexy React Stack
 
Common design principles and design patterns in automation testing
Common design principles and design patterns in automation testingCommon design principles and design patterns in automation testing
Common design principles and design patterns in automation testing
 
KMSNext Roadmap
KMSNext RoadmapKMSNext Roadmap
KMSNext Roadmap
 
JavaScript - No Longer A Toy Language
JavaScript - No Longer A Toy LanguageJavaScript - No Longer A Toy Language
JavaScript - No Longer A Toy Language
 
Introduction To Single Page Application
Introduction To Single Page ApplicationIntroduction To Single Page Application
Introduction To Single Page Application
 
AWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic BeanstalkAWS: Scaling With Elastic Beanstalk
AWS: Scaling With Elastic Beanstalk
 
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
 
KMS Introduction
KMS IntroductionKMS Introduction
KMS Introduction
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
 
Cross-platform Mobile Development with C# and Xamarin Webinar
Cross-platform Mobile Development with C# and Xamarin WebinarCross-platform Mobile Development with C# and Xamarin Webinar
Cross-platform Mobile Development with C# and Xamarin Webinar
 
Software Testing Process & Trend
Software Testing Process & TrendSoftware Testing Process & Trend
Software Testing Process & Trend
 
Software Technology Trends
Software Technology TrendsSoftware Technology Trends
Software Technology Trends
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
 

Kürzlich hochgeladen

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
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
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
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
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"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
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
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
 

Kürzlich hochgeladen (20)

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
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
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
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
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"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
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
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
 

Amazon web services

  • 1. Amazon Web Services Duy Lam – April 2012 duylam@kms-technology.com Skype: duypl.skype
  • 2. What you can do after this AutoScaling CloudWatch Simple Queue Service Relational Database Service Load Balancing Application Notification EC2 … use Public 2
  • 3. Agenda Amazon Cloud Platform Amazon Compute Services Amazon Services Public 3
  • 4. Application as Service Platform as Service Infrastructure as Service Cloud Computing Public 4
  • 5. Regions us-west-2 us-west-1 ap-northeast-1 us-east-1 eu-west-1 ap-southeast-1 sa-east-1 Public 5
  • 6. Availability Zones Regions Public 6
  • 7. Usage of Regions and Availability Zones Regions closer to specific customers, meet legal etc. Public 7
  • 8. Data Transfer Cost EC2 EC2 machine machine 2 1 $! $! Availability Zone $ $ EU (Ireland) US-West (Northern California) Public 8
  • 9. Access Interfaces AWS Management Console(*) Java-based command line(*) AWS SDK(**) Web Service (REST or SOAP API)(**) (*) : not all AWS services AWS SDKs (**) (**) : all AWS services Public 9
  • 10. Agenda Amazon Cloud Platform Amazon Compute Services Amazon Services Public 10
  • 11. Amazon Compute Services EC2 CloudWatch Elastic Load Auto Balancing Scaling Public 11
  • 12. Amazon EC2 Web Service Customized Basic Storage AMIs Public 12
  • 13. What is EC2 ? “Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable computing capacity that you use to build and host your software systems” an EC2 instance Availability Zone Availability Zone Public 13
  • 14. Amazon Machine Image & Instances Large Instance Type launch instance - 7.5 GB memory - 4 EC2 Compute Units (*) - 850 GB instance storage EC2 Instance (Large Instance Type) AMI (Template) High-CPU Medium A sample AMI Instance Type - OS: Ubuntu - Platform: x86 - 1.7 GB of memory (*) - Storage devices: null EC2 Instance - 5 EC2 Compute Units - 350 GB of instance storage (High-CPU Medium Instance Type) (*) 1 EC2 Compute Unit = 1.0 - 1.2 GHz 2007 Opteron or 2007 Xeon processor Public 14
  • 15. Public AMI Public 15
  • 16. Elastic Block Store & Instance Store Detach Attach Attach instance store (ephemeral store) Instance A Instance B Detaching Attach Instance Persistence EBS volume EBS volume New EBS volume Instance A Instance B Create snapshot Create volume Instance Backup EBS snapshot in Amazon S3 Public 16
  • 17. Root device storage launch instance AMI backed by instance store Instance A Attach more Root device storage launch instance Instance B AMI backed by EBS Attach more Public 17
  • 18. Elastic IP Addresses 10.0.0.190 10.0.0.170 10.0.0.180 ec2-122-248-202-170...com ec2-122-248-202-180...com 1.1.1.1 1.1.1.2 Internet user Public 18
  • 19. Pricing Model Usage hour per EC2 instance Data Transfer per EC2 instance (both “in” and “out”) in different Availability Zone or Region Data Transfer per Elastic IP Address (both “in” and “out”) Other impact factors: Region, OS, Instance Type, Long-term Contract, Bidding Public 19
  • 21. Amazon EC2 Web Service Customized Basic Storage AMIs Public 21
  • 22. Storage Types Elastic Block Store volume Instance store Persistent V Cross-instance V access Back up V Size limits Up to 1TiB per volume Up to 3.3TiB per instance Free V Public 22
  • 23. EBS Incremental Backup create EBS volume 10 GB 5 GB 15 GB create snapshot create snapshot 0 GB 10 GB 15 GB EC2 instance Time Public 23
  • 24. Block device mapping <device name>=<value> OS: Amazon Linux Kernel: aki-13d5aa41 …. /dev/sdb=none /dev/sdc=ephemeral0 Block device mapping count up based on the instance type AMI template /dev/sdd=snap-a08912c9:15:true Public 24
  • 25. EBS Pricing Model Storage volume (in GB) per month I/O request (in million) Other impact factors: Region Public 25
  • 26. Amazon EC2 Web Service Customized Basic Storage AMIs Public 26
  • 27. Needs of customized AMI To meet the your own needs To share To sell Public 27
  • 28. AMI Creation Process Windows Linux/UNIX Root storage device EBS-backed AMI 1 From existing AMI Instance store- 2 backed AMI Fresh installation Public 28
  • 29. (1) Creating EBS-Backed AMIs Create image from customized instance Launch the Customize instance instance Create snapshot of Register image root device from snapshot PROMPT> ec2-create-image instance-id OR PROMPT> ec2-register --root-device-name /dev/sda1 -b /dev/sda1=snap-12345678 Public 29
  • 30. (2) Creating Windows instance store-backed AMI Bundle Register Launch the Customize customized bundled instance instance instance image to S3 PROMPT> ec2-bundle-instance instance-id PROMPT> ec2-register <s3-bucket>/image.manifest.xml -n image_name OR OR Public 30
  • 31. Amazon Compute Services EC2 CloudWatch Elastic Load Auto Balancing Scaling Public 31
  • 32. Amazon CloudWatch Web Service EC2 instances Load Balancers EBS volumes RDS instances CloudWatch service • CPU utilization • Network traffic 000 • I/O • Latency CloudWatch metrics Public 32
  • 33. CloudWatch modes • At 5-minutes frequency Basic • Free of charge • For EC2 instances Detailed • At 1-minute frequency • $3.5+ per instance per month Public 33
  • 34. Enable detailed monitoring PROMPT> ec2-run-instances ami-id --monitor PROMPT> ec2-monitor-instances instance-id Public 34
  • 35. CloudWatch Alarms “Watches a single metric over a time period and invokes actions when the value of the metric exceeds a given threshold over a number of time periods” Amazon ALARM state SNS topic INSUFFICIENT_DATA state Auto Scaling policy OK state Public 35
  • 36. Pricing Model Per EC2 instance / month Per custom metric / month Per Alarm / month API Requests (per 1,000 Get, List, or Put requests) Other impact factors: Region Public 36
  • 38. Amazon Compute Services EC2 CloudWatch Elastic Load Auto Balancing Scaling Public 38
  • 39. Amazon Elastic Load Balancing Web Service Public 39
  • 40. Overview for Developer Sticky Sessions "X-Forwarded-Port", "X-Forwarded-For" and "X-Forwarded-Proto" Support Known issue: HTTP 60 seconds timeout for request Public 40
  • 41. Pricing Model Usage hour per Load Balancer instance Data processed (in GB) per Load Balancer instance Other impact factors: Region Public 41
  • 43. Amazon Compute Services EC2 CloudWatch Elastic Load Auto Balancing Scaling Public 43
  • 44. Amazon AutoScaling Web Service trigger Scale Up Monitor Auto Scaling trigger Scale Down Public 44
  • 45. Type of Scaling Manual scaling Scaling by Schedule: in a future time Scaling by Policy : triggered by a CloudWatch alarm Public 45
  • 46. Pricing Model * Regular Amazon EC2 and Amazon CloudWatch service fees applied Public 46
  • 48. Agenda Amazon Cloud Platform Amazon Compute Services Amazon Services Public 48
  • 49. Amazon Services Relational Simple Database Storage Service Service Simple Simple Queue Notification Service Service Public 49
  • 50. Amazon Relational Database Web Service Resizable capacity for databases Amazon firewall Flexible back up methods Replication (only on MySQL) Monitoring Public 50
  • 51. Create new DB Instance Update DB Security Group before connecting to the instance Public 51
  • 52. MySQL Replication Multi-AZ deployment To increase database availability Read Replicas For read-heavy database workloads Public 52
  • 53. Pricing Model Per DB Instance Class / month Storage (in GB) / month I/O (in million) / month Back up storage / month Bandwidth (in GB both “in” / ”out”) / month Other impact factors: Region, Multi-AZ Deployment, Reserved Instances Public 53
  • 54. Amazon Services Relational Simple Database Storage Service Service Simple Simple Queue Notification Service Service Public 54
  • 55. Amazon Simple Storage Web Service Amazon S3 is storage for the Internet HTTP PUT request User A S3 bucket HTTP GET response User B Public 55
  • 56. Key Features Control access to buckets and objects Versioning objects in a bucket Public 56
  • 57. Pricing Model Storage (in GB) / month Requests (in 1000 unit) / month Bandwidth (in GB both “in” / ”out”) / month Other impact factors: Region, Reduced Redundancy Storage option Public 57
  • 59. Amazon Services Relational Simple Database Storage Service Service Simple Simple Queue Notification Service Service Public 59
  • 60. Amazon Simple Queue Web Service HTTP GET or POST request message (text) Message 1 Machine A Message 2 Message 3 HTTP GET or POST response message (text) Message 4 Machine B Your application Amazon Queue Public 60
  • 61. Key Features 64 KB of text in a message Not first in, first out delivery of messages Locking the message: Visibility Timeout Control access to a queue Public 61
  • 62. Pricing Model $0.01 per 10k requests "out" bandwidth (in GB) Other impact factors: Region Public 62
  • 64. Amazon Services Relational Simple Database Storage Service Service Simple Simple Queue Notification Service Service Public 64
  • 65. Amazon Simple Notification Web Service HTTP POST request http://receiver.com/message message (text) Subscriber HTTP GET request Notification Email message (text) topic message (text) receiver@email.com Subscriber Program A SNS Simple Queue Service message (text) Queue Subscriber SMS (in US) Message (text) 800-201-7575 Subscriber Public 65
  • 66. Key Features Message: UTF-8 encoded up to 8 KB Control access to a topic Public 66
  • 67. Pricing Model $0.06 per 100k API Requests (free first 100k requests) / month Amount of notifications (free first part) / month "out" bandwidth (in GB) Other impact factors: Region Public 67
  • 70. More for you Public 70

Hinweis der Redaktion

  1. Objectives:Understand how to integrate Amazon services into your applicationDeploy /manage your application on EC2
  2. RegionRegions are dispersed (spread in wide area) and located in separate geographic areas (US, EU, etc.). Each EC2 Region is designed to be completely isolated from the other Amazon EC2 Regions. This achieves the greatest possible failure independence and stability, and it makes the locality of each EC2 resource unambiguousRegion list:US East (Northern Virginia): us-east-1US West (Oregon) : us-west-2US West (Northern California) : us-west-1EU (Ireland) : eu-west-1Asia Pacific (Singapore) : ap-southeast-1Asia Pacific (Tokyo) : ap-northeast-1South America (Sao Paulo) : sa-east-1
  3. Availability ZoneAvailability Zones are distinct locations within a Region that are engineered to be isolated from failures in other Availability Zones and provide inexpensive, low latency network connectivity to other Availability Zones in the same RegionHowever, failures can occur that affect the availability of instance resources that are in the same location. Although this is rare, if you host all your Amazon EC2 instances in a single location that is affected by such a failure, your instances will be unavailable.
  4. By launching instances in separate Regions, you can design your application to be closer to specific customers or to meet legal or other requirements.By launching instances in separate Availability Zones, you can protect your applications from the failure of a single location
  5. While standard Amazon EC2 Regional Data Transfer charges of $.01 per GB in/out apply when transferring data between an Amazon EC2 instance and Amazon RDS DB Instance in different Availability Zones of the same RegionThere is no additional charge for data transferred between Amazon SimpleDB and other Amazon Web Services within the same Region
  6. The command-lineclient needs to be installed with some configurationAnd each service has its own command-line package, so it needs to download separately
  7. Quote from AWS EC2 Documentation“resizable”: With EC2, you use and pay for only the capacity that you need. This eliminates the need to make large and expensive hardware purchases, reduces the need to forecast traffic, and enables you to automatically scale your IT resources to deal with changes in requirements or spikes in popularity related to your application or serviceDiagramSimple visualization of EC2 in Amazon cloud platform: “instance” ~ “virtual machine”
  8. An Amazon Machine Image (AMI): is a template that contains a software configuration: operating system, application server, applications. If an instance fails, you can launch a new one from the AMI. Amazon publishes many AMIs that contain common software configurations for public use. In addition, members of the AWS developer community have published their own custom AMIsInstance Type: a specification that defines the memory, CPU, storage capacity, and hourly cost for an instance. Some instance types are designed for standard applications, whereas others are designed for CPU-intensive applications, or memory-intensive applications, etc.EC2 instance: an virtual machine
  9. You launch AMIs at your own risk. Amazon cannot vouch for the integrity or security of AMIs shared by other EC2 users. Therefore, you should treat shared Public AMIs are available from AmazonShould get a public AMI ID from a trusted source (use at your own risk)AMIs as you would any foreign code that you might consider deploying in your own data center and perform the appropriate due diligence. Ideally, you should get the AMI ID from a trusted source (a web site, another EC2 user, etc). If you do not know the source of an AMI, we recommend that you search the forums for comments on the AMI before launching it. Conversely, if you have questions or observations about a shared AMI, feel free to use the AWS forums to ask or comment
  10. Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with Amazon EC2 instances. Amazon EBS volumes are highly available and reliable storage volumes that can be attached to any running instance. The attached Amazon EBS volumes are exposed as storage volumes that persist independently from the life of the instancePersistence: the AMI backed instance store doesn’t support Stopped state. Rebooting doesn’t cause losing data on instance store
  11. The amount of instance store hdd depends on instance type
  12. Private address is reachable from within the Amazon EC2 networkPublic address that are directly mapped to each other through Network Address Translation (NAT) and are reachable from the InternetIf you use dynamic DNS to map an existing DNS name to a new instance&apos;s public IP address, it might take up to 24 hours for the IP address to propagate through the Internet. As a result, new instances might not receive traffic while terminated instances continue to receive requestYou can associate one Elastic IP address with only one instance at a time. When you associate an Elastic IP address with an instance, its current public IP address is released to the Amazon EC2 public IP address pool. If you disassociate an Elastic IP address from the instance, the instance is automatically assigned a new public IP address within a few minutesAll accounts are limited to 5 Elastic IP addresses because public (IPV4) Internet addresses are a scarce public resourceTo ensure our customers are efficiently using Elastic IP addresses, we impose a small hourly charge when these IP addresses are not mapped to an instance. When these IP addresses are mapped to an instance, they are free of charge
  13. Limit total storage is applied whichever you reach firstThe volume need not be attached to a running instance in order to take a snapshot. The snapshots can also be shared with specific AWS accounts or made publiclaunch instance from snapshot: demo laterAmazon EBS snapshots are incremental backups, meaning that only the blocks on the device that have changed since your last snapshot will be saved. If you have a device with 100GiB of data, but only 5GiB of data have changed since your last snapshot, only the 5GiB of modified data will be stored back to Amazon S3. Even though snapshots are saved incrementally, the snapshot deletion process is designed so that you need to retain only the most recent snapshot in order to restore the volume
  14. No device: to use this option only when you want to suppress a block device from attaching at launch time
  15. If you customize your instance with ephemeral storage devices or additional EBS volumes besides the root device, the new AMI contains block device mapping information for those storage devices and volumes. When you then launch an instance from your new AMI, the instance automatically launches with the additional devices and volumes
  16. $3.50 per instance per month (the per metric price below x 7 pre-defined metrics per instance). Custom metrics:  memory usage, transaction volumes, or error rates …
  17. In the following figure, the alarm threshold is set to 3 and the minimum breach is 3 periods. That is, the alarm invokes its action only when the threshold is breached for 3 consecutive periods. In the figure, this happens with the third through fifth time periods, and the alarm&apos;s state is set to ALARM. At period six, the value dips below the threshold, and the state reverts to OK. Later, during the ninth time period, the threshold is breached again, but not for the necessary three consecutive periods. Consequently, the alarm&apos;s state remains OKAn alarm has three possible states:OK—The metric is within the defined thresholdALARM—The metric is outside of the defined thresholdINSUFFICIENT_DATA—The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state
  18. Elastic Load Balancing can detect the health of Amazon EC2 instances. When it detects unhealthy load-balanced Amazon EC2 instances, it no longer routes traffic to those Amazon EC2 instances and spreads the load across the remaining healthy Amazon EC2 instancesElastic Load Balancing supports the ability to stick user sessions to specific EC2 instancesElastic Load Balancing supports use of both the Internet Protocol version 4 and 6 (IPv4 and IPv6)
  19. Sticky SessionsEnables the load balancer to bind a user&apos;s session to a specific application instance. This ensures that all requests coming from the user during the session will be sent to the same application instanceLoad-balancer-generated HTTP cookies, which allow browser-based session lifetimesApplication-generated HTTP cookies, which allow application-specific session lifetimes&quot;X-Forwarded-Port&quot; , &quot;X-Forwarded-For&quot; and &quot;X-Forwarded-Proto&quot; SupportBecause load balancers intercept traffic between clients and servers, your server access logs contain only the IP address of the load balancer. To see the original IP address/port/protocol of the client, use the X-Forwarded-* request header. Elastic Load Balancing stores the IP address of the client in the X-Forwarded-For request header and passes the header along to your serverHTTP 60 seconds timeout for requestWhen a load balancer forwards a HTTP request to instance, if the instance sends back the response after 60 seconds, the load balancer will automatically kill that HTTP routine and client will receive empty response (no http headers)
  20. $ curl –i http://host/balacing
  21. Auto Scaling allows you to scale your Amazon EC2 capacity up or down automatically according to conditions you define. Auto Scaling monitors the health of each EC2 instance that it launches. If any instance terminates unexpectedly, Auto Scaling detects the termination and launches a replacement instance. This capability helps you maintain a fixed, desired number of EC2 instances automatically.Auto Scaling is particularly well suited for applications that experience hourly, daily, or weekly variability in usage. Auto Scaling is enabled by Amazon CloudWatch and available at no additional charge beyond Amazon CloudWatch fees.
  22. Scheduled time in Unix cron syntax format
  23. Resizable capacity for databases : modify cpu, memory and storage at any time, even in running server instanceAmazon firewall : control access to your DB Instances. A DB Security Group acts like a firewall controlling network access to your DB InstanceFlexible back up methods : automated backups and DB Snapshots. Automated backups automatically back up your DB Instance during a specific, user-definable backup window, and keeps the backups for a limited, user-specified period of time (called the backup retention period); you can later recover your database to any point in time during that retention period. DB Snapshots are user-created snapshots that enable you to back up your DB Instance to a known state, and restore to that specific state at any time. Amazon RDS keeps all DB Snapshots until you delete them.Flexible scaling : Currently, replication is only supported for the MySQL engine. We plan to support replication options for Oracle in the future.Amazon RDS for MySQL provides two distinct replication options to serve different purposes.Monitoring: monitor metrics with Amazon CloudWatch
  24. Auto Minor Version Upgrade option enables your DB Instance to receive minor engine version upgrades automatically when they become availableDB Instance Class ~ EC2 Instance Type : indicate the CPU + RAM amount of DB instanceDB Instance Identifier is a customer-supplied identifier for a DB Instance. This identifier specifies a particular DB Instance when interacting with the Amazon RDS API and commands. The DB Instance identifier must be unique for that customer in an AWS regionDatabase Name depends on the database engine in use:For the MySQL database engine, the Database Name is the name of a database hosted in your Amazon DB Instance. An Amazon DB Instance can host multiple databases. Databases hosted by the same DB Instance must have a unique name within that instanceFor the Oracle database engine, Database Name is used to set the value of ORACLE_SID, which must be supplied when connecting to the Oracle RDS instance.
  25. If you are looking to use replication to increase database availability while protecting your latest database updates against unplanned outages, consider running your DB Instance as a Multi-AZ deployment. When you create or modify your DB Instance to run as a Multi-AZ deployment, Amazon RDS will automatically provision and manage a “standby” replica in a different Availability Zone. In the event of planned database maintenance, DB Instance failure, or an Availability Zone failure, Amazon RDS will automatically failover to the standby so that database operations can resume quickly without administrative intervention. Multi-AZ deployments utilize synchronous replication, making database writes concurrently on both the primary and standby so that the standby will be up-to-date in the event a failover occursIf you are looking to take advantage of MySQL’s built-in replication to scale beyond the capacity constraints of a single DB Instance for read-heavy database workloads, Amazon RDS makes it easier with Read Replicas. You can create a Read Replica of a given “source” DB Instance using the AWS Management Console or CreateDBInstanceReadReplica API. Once the Read Replica is created, database updates on the source DB Instance will be propagated to the Read Replica. You can create multiple Read Replicas for a given source DB Instance and distribute your application’s read traffic amongst them. In particular, updates are applied to your Read Replica(s) after they occur on the source DB Instance (“asynchronous” replication), and replication lag can vary significantly. This means recent database updates made to a standard (non Multi-AZ) source DB Instance may not be present on associated Read Replicas in the event of an unplanned outage on the source DB Instance. As such, Read Replicas do not offer the same data durability benefits as Multi-AZ deployments. While Read Replicas can provide some read availability benefits, they and are not designed to improve write availability.
  26. Data transferred between Amazon RDS and Amazon EC2 Instances in the same Availability Zone is free.Data transferred between Availability Zones for replication of Multi-AZ deployments is free.
  27. It allows customer to store and retrieve any amount of data on the web
  28. Control access to buckets and objectsAllow only downloading on anonymous userDon’t allow specific users to get list of objects in a bucketRestrict the access to a bucket / object from specific IP addressVersioning objects in a bucket : Versioning is a means of keeping multiple variants of an object in the same bucket. In one bucket, for example, you can have two objects with the same key, but different version IDs, such as photo.gif (version 111111) and photo.gif (version 121212). You might enable versioning to prevent objects from being deleted or overwritten by mistake, or to archive objects so that you can retrieve previous versions of them
  29. Data transferred between Amazon RDS and Amazon EC2 Instances in the same Availability Zone is free.Data transferred between Availability Zones for replication of Multi-AZ deployments is free.
  30. Run ruby scripts to setup first and remember to clean up
  31. It allows customer to store and retrieve any amount of data on the web
  32. Access control : to grant another AWS account a particular type of access to your queue (e.g., SendMessage) or for a specific period of time
  33. Requests : CreateQueue, ListQueues, DeleteQueue, SendMessage, SendMessageBatch, ReceiveMessage, …
  34. A topic is a communication channel to send messages and subscribe to notifications. It provides an access point for publishers and subscribers to communicate with each otherCurrently Amazon SNS will only accept US phone numbers as valid subscription end-points.
  35. Control access: to grant another AWS account a particular type of topic action (e.g., Publish) or to limit subscriptions to your topic to only the HTTPS protocol (avoid spam in email)