AWS - EC2

EC2

    Amazon Elastic Compute Cloud ( Amazon EC2 ) is a web service that provides resizable compute capacity in the cloud. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. (Virtual Machine in Cloud)


EC2 Options

  • On Demand - allow you to pay a fixed rate by the hour with no commitment.
  • Reserved - provide you with a capacity reservation, and offer a significant discount on the hourly charge for an instance. 1 Year or 3 Year Terms.
  • Spot - enable you to bid whatever price you want for instance capacity, providing for even greater savings if your applications have flexible start and end times.
  • Dedicated Hosts - Physical EC2 server dedicated for your use. Dedicated Hosts can help you reduce costs by allowing you to use your existing server-bound software licenses.


EC2 Instance Types

DR Mc GIFT PX



What is EBS

Amazon EBS allows you to create storage volumes and attach them to Amazon EC2 instances. Once attached, you can create a file system on top of these volumes, run a database, or use them in any other way you would use a block device. Amazon EBS volumes are placed in a specific Availability Zone, where they are automatically replicated to protect you from the failure of a single component.


EBS Volume Types

  • General Purpose SSD (GP2) (Up to 10,000 IOPS)
  • Provisioned IOPS SSD (IO1) (More than 10,000 IOPS)
  • Throughput Optimized HDD (ST1) (frequently accessed workloads)
  • Cold HDD (SC1) (less frequently accessed data)
  • Magnetic (Standard) (cheap, infrequently accessed storage)

You cannot mount 1 EBS volume to multiple EC2 instances, instead use EFS.

  • EBS Volumes can be changed on the fly ( except for magnetic standard)
  • Best practice to stop the EC2 instance and then change the volume
  • You can change volume types by taking a snapshot and then using the snapshot to create a new volume
  • If you change a volume on the fly you must wait for 6 hours before making another change
  • You can scale EBS Volumes up only
  • Volumes must be in the same AZ as the EC2 instances


Security Group Lab

  • All Inbound Traffic is Blocked By Default
  • All Outbound Traffic is Allowed
  • Changes to Security Groups take effect immediately
  • You can have any number of EC2 instances within a security group
  • You can have multiple security groups attached to EC2 Instances
  • Security Groups are STATEFUL - If you create an inbound rule allowing traffic in, that traffic is automatically allowed back out again.
  • You cannot block specific IP address using Security Groups, instead use Network Access Control Lists.
  • You can specify allow rules, but not deny rules.


Elastic Load Balancers

  • Instances monitored by ELB are reported as InService, or OutofServer
  • Health Checks check the instance health by talking to it
  • Have their own DNS name. You are never given an UP address
  • Read the ELB FAQ for Classic Load Balancers


EC2 meta data

curl http://169.254.169.254/latest/meta-data/


Placement Group

A placement group is a logical grouping of instances within a single Availability Zone. Using placement groups enables applications to participate in a low-latency, 10 Gbps network. Placement groups are recommended for applications that benefit from network latency, high network throughput, or both.


Sport Prices - Exam Tip

If the Spot instance is terminated by Amazon EC2, you will not be charged for a partical hour of usage. However, if you terminate the instance yourself, you will be charged for any hour in which the instance ran.


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值