Ami

  • Uploaded by: Rekha Perumal Vijayan
  • 0
  • 0
  • August 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ami as PDF for free.

More details

  • Words: 733
  • Pages: 3
AMI Create an AMI (Amazon Machine Image)   



AMI = template VM Are regional. You can only launch an AMI from the region where it’s stored. You CAN copy AMI’s to other regions using the command line/console/API. Contains: o Template for root volume for the instance (OS, application servers, apps, etc) o Launch permissions that control with AWS accounts can use the AMI to launch instances o Block device mapping that specifies which volumes to attach when launching instance By default, any AMI you create is private. You can modify image permission to make it public.

AMI Types (EBS vs Instance Store) 

You can select your AMI based on: o Region o OS o Architecture (32 or 64 bit) o Launch Permissions o Storage for the Root Device (root vol), 2 types:  Instance Store (ephemeral storage)





Can’t “stop” an instance of this type, only reboot or terminate. If the underlying host fails, you will lose data.  You can reboot without losing data, if you stop the instance, the data will be wiped.  “Ephemeral storage” means exactly that, not persistent  The root device for an instance launched from the AMI is an instance store volume created from a template stored in S3  Cannot be detached and reattached to other EC2 instances EBS backed volumes  Are persistent  The root device for an instance launched from the AMI is an EBS volume created from an EBS snapshot  Can be stopped, you will not lose data if the underlying host fails.  Can be detached and reattached to other EC2 instances  By default, both root vols will be deleted on termination, but you can choose to keep an EBS vol on termination, not for ephemeral.

Elastic Load Balancers (ELB)   



ELB is never given a static IP address, just DNS name. ELBs can be “In Service” or “Out of Service” Thresholds o Unhealthy Threshold = how many intervals with no response before flagging as Out of Service o Healthy Threshold = how many intervals with response before flagging as In Service Support the following X-Forwarder headers: o X-Forwarded-For o X-Forwarded-Proto o X-Forwarded-Port

CloudWatch – Performance Monitoring Service       

Standard monitoring = 5 minutes o Turned on by default Detailed monitoring = 1 minute Monitors the hypervisor, NOT the guest OS o Does not monitor memory Dashboards – create/configure widgets to monitor your environment Alarms – notify when a given threshold is hit Events – automatically respond to state changes in your AWS resources Logs – aggregate, monitor & store logs. Agent installed onto EC2 instances

EBS Basics 

📒 Homepage ∙ User guide ∙ FAQ ∙ Pricing



EBS (Elastic Block Store) provides block level storage. That is, it offers storage volumes that can be attached as filesystems, like traditional network drives.



EBS volumes can only be attached to one EC2 instance at a time. In contrast, EFS can be shared but has a much higher price point (a comparison).

EBS Tips 

⏱RAID: Use RAID drives for increased performance.



⏱A worthy read is AWS’ post on EBS IO characteristics as well as their performance tips.



⏱One can provision IOPS (that is, pay for a specific level of I/O operations per second) to ensure a particular level of performance for a disk.



⏱A single EBS volume allows 10k IOPS max. To get the maximum performance out of an EBS volume, it has to be of a maximum size and attached to an EBS-optimized EC2 instance.



A standard block size for an EBS volume is 16kb.

EBS Gotchas and Limitations 

❗EBS durability is reasonably good for a regular hardware drive (annual failure rate of between 0.1% - 0.2%). On the other hand, that is very poor if you don’t have backups! By contrast, S3 durability is extremely high. If you care about your data, back it up to S3 with snapshots.



🔸EBS has an SLA with 99.95% uptime. See notes on high availability below.



❗EBS volumes have a volume type indicating the physical storage type. The types called “standard” (st1 or sc1) are actually old spinning-platter disks, which deliver only hundreds of IOPS — not what you want unless you’re really trying to cut costs. Modern SSD-based gp2 or io1 are typically the options you want.

Related Documents

Ami..
June 2020 15
Ami
November 2019 30
Ami
November 2019 35
Ami
August 2019 39
Ami
May 2020 24
Ami
May 2020 25

More Documents from "Ana Pereira"

Arrays Activity
August 2019 32
02_iam_lab
August 2019 17
Ami
August 2019 39
Bajaj
April 2020 17