On Demand instance :- This is a default mode, if we use this instance 3.5 years have to pay for 4 years, if we have start and stop the instance the new billong start, but rebooting the instance same billing started
======================
(1) pay by hours
(2) Any partial hour converted to full hour
(3) New billing cycle starts whenever any instance change running state
(4) Billing cycle ends when instance change to stoping state
Reserved instance :- This instance work in time duration, suppose we want run any application 3-4 year we can use this instance, possible duration 1 year or 3 year
====================
(1) 2 term available- 1 year or 3 years
(2) 3 payment options
- Full Upfront
- Partial Upfront
- No Upfront (not for 3 years term)
(3)Lots of saving in comparison to On-demand
(4)Gives your capity Guarantee as well
(5)You commit the usage for chosen term
(6)You can re-sell on AWS if you choose not to use
(7)consider for full term
Scheduled Reservation:-
(1) Available for 3 frequencies- Daily, weekly or monthly
(2) Saving when compare to On-Demand
(3)Good for recurring workloads requiring lesser numner of hours
(4) 1 year available
Spot instance :- Unused capacity at AWS given in market for bidding
(2)Look at pricing history and dicated bid price
(3)Instance are terminated with 2 miniuts notice when market price goes above bid price
(4)If terminated by AWS last partial hours is free
(5)Optionally use spot Block options with bid to block the instance (maximum 6 hours)
Dedicated Instances:-
(1)Comparatively, higher rates that on demand instance
(2)In additional to that $2 per hour - An additional fee is charged once per hour in which at lease one Dedicated instance of any type is running in a region
Dedicated Host:-
(1)Pay for full Physical host, irrespective of number of instance running
(2)Suitable when you want to use hardware boud licenses
(3)Underlying Host does not change when you stop and start an instance
============================================================
Instance Family
Current Generation Instance Types
====================================================
General purpose
a1.medium | a1.large | a1.xlarge | a1.2xlarge | a1.4xlarge | m4.large | m4.xlarge | m4.2xlarge | m4.4xlarge | m4.10xlarge | m4.16xlarge | m5.large | m5.xlarge | m5.2xlarge | m5.4xlarge | m5.12xlarge | m5.24xlarge | m5.metal | m5a.large | m5a.xlarge | m5a.2xlarge | m5a.4xlarge | m5a.12xlarge | m5a.24xlarge | m5ad.large | m5ad.xlarge | m5ad.2xlarge | m5ad.4xlarge | m5ad.12xlarge | m5ad.24xlarge | m5d.large | m5d.xlarge | m5d.2xlarge | m5d.4xlarge | m5d.12xlarge | m5d.24xlarge | m5d.metal | t2.nano | t2.micro | t2.small | t2.medium | t2.large | t2.xlarge | t2.2xlarge | t3.nano | t3.micro | t3.small | t3.medium | t3.large | t3.xlarge | t3.2xlarge
Compute optimized
c4.large | c4.xlarge | c4.2xlarge | c4.4xlarge | c4.8xlarge | c5.large | c5.xlarge | c5.2xlarge | c5.4xlarge | c5.9xlarge | c5.18xlarge | c5d.xlarge | c5d.2xlarge | c5d.4xlarge | c5d.9xlarge | c5d.18xlarge | c5n.large | c5n.xlarge | c5n.2xlarge | c5n.4xlarge | c5n.9xlarge | c5n.18xlarge
Memory optimized
r4.large | r4.xlarge | r4.2xlarge | r4.4xlarge | r4.8xlarge | r4.16xlarge | r5.large | r5.xlarge | r5.2xlarge | r5.4xlarge | r5.12xlarge | r5.24xlarge | r5.metal | r5a.large | r5a.xlarge | r5a.2xlarge | r5a.4xlarge | r5a.12xlarge | r5a.24xlarge | r5ad.large | r5ad.xlarge | r5ad.2xlarge | r5ad.4xlarge | r5ad.12xlarge | r5ad.24xlarge | r5d.large | r5d.xlarge | r5d.2xlarge | r5d.4xlarge | r5d.12xlarge | r5d.24xlarge | r5d.metal | u-6tb1.metal | u-9tb1.metal | u-12tb1.metal | x1.16xlarge | x1.32xlarge | x1e.xlarge | x1e.2xlarge | x1e.4xlarge | x1e.8xlarge | x1e.16xlarge | x1e.32xlarge | z1d.large | z1d.xlarge | z1d.2xlarge | z1d.3xlarge | z1d.6xlarge | z1d.12xlarge | z1d.metal
Storage optimized
d2.xlarge | d2.2xlarge | d2.4xlarge | d2.8xlarge | h1.2xlarge | h1.4xlarge | h1.8xlarge | h1.16xlarge | i3.large | i3.xlarge | i3.2xlarge | i3.4xlarge | i3.8xlarge | i3.16xlarge | i3.metal
Accelerated computing
f1.2xlarge | f1.4xlarge | f1.16xlarge | g3s.xlarge | g3.4xlarge | g3.8xlarge | g3.16xlarge | p2.xlarge | p2.8xlarge | p2.16xlarge | p3.2xlarge | p3.8xlarge | p3.16xlarge | p3dn.24xlarg
=======================================================================
Volume Type:-
(1)General Purpose SSD (gp2)*
Description:- General purpose SSD volume that balances price and performance for a wide variety of workloads
Volume Size:- 1 GiB - 16 TiB
Max. IOPS**/Volume:-16,000***
(2)Provisioned IOPS SSD (io1)
Description:- Highest-performance SSD volume for mission-critical low-latency or high-throughput workloads
Volume Size:- 4 GiB - 16 TiB
Max. IOPS**/Volume:-64,000****
(3)Throughput Optimized HDD (st1)
Description:- Low-cost HDD volume designed for frequently accessed, throughput-intensive workloads
Volume Size:- 500 GiB - 16 TiB
Max. IOPS**/Volume:-500
(4)Cold HDD (sc1)
Description:- Lowest cost HDD volume designed for less frequently accessed workloads
Volume Size:- 500 GiB - 16 TiB
Max. IOPS**/Volume:-500
========================================================================
EBS Volume:-
* The root volume, we can not change it's type, based on AMI the type of volume is fixed, and boot volume showing in form of gp2, IO1, Magnetic
* There are five types of volume
* In linux operating system the root volume should be mounted on /dev/xvda
* In windows operating system the root volume should be mounted on /dev/sda1
* while we have take snapshot of any EBS volume it is store in incremental form
* Snapshot alway store in s3, before store in s3 it also compress
* if EBS volume in encrypted format then snapshot will be in encrypted otherwise it will store in normaly
* we can increase in root EBS volume but can not decrease
* shanpshot should be same availability zone so we can attached to the same availability zone server
* We can increase EBS volume size on line and off line also.
* We can take copy of snapshot also and attached that copy to any availability zone.
========================================================================
ELB:-
* ELB can be public or private (depends on Subsets you choose to launch it)
* It is highly recommended that you choose 2 subnets of different AZ to launch ELB
* You can move Web-server to private Subnet and keep only ELB in public Subnet. With a VPC all instances take to each other
* Traffic gets distributed between 2 AZs in round robin fashion
* Whin in an AZ, the instance having least number of open connection gets the next request
* ELB should alway be accessed by using DNS and not IP
* Define health check with care and look at the status of instances
* If we don't know exact ULR path in ELB configuration then we can select TCP instead of HTTP
* In case we have not equal no of instance then we should check cross-zone load balancing this algorithms help to distributed tarffic equaly
* connection Draning means if our any instance fell unhealth then in mentioned option we provide particlular time and ELB stop to send taffic to that instance
========================================================================
Launch configuration:-
* Collection of attribute value to be used for launching ec2 instance
* When system need any new instance then autoscaling group will be lanuch the instance according to the lanuch configuration
Auto-Scaling Group-
* Define:- Min, Max & Desired (optional)
* ELB (optional)
* Subnets (choose this accross 2 AZs)
* Cooldown period
* Scale-Out policy (with Warmup Period)
* Scale-in policy (Connection draining)
=============================================================
* ELB should be public subnet where as instances should be in private subnet
* In autoscaling group we need to give group size that means how many instaces you want to launch
* In auto scaling group must have choose VPC and in VPC must choose subnet and these subnet should be private
* In auto scaling we can set alarm and after gerenation of alarm provide the time period to lanuch a new ec2 instance this time may 5 min or more and also mentioned the average CPU utilization where want to generate the alarm.
* In the same way we can decrease the auto scaling size when load average goes down
* We can remove instance in three way (1) fix number (2) in persentage (3) set something
* We pass the ELB id in autoscaling group with the help of this process autoscaling group launch the instances
* cool down period means for which the auto scaling group for the wait when it excute on scale in or scale out policy (default time 300)
=====================================================================
* There are two types of disk
(1)EBS:-EBS is your traditional hard disk
(2)Instance storage:- This is not persistent, if stop the ec2 instance and start it again then data goes way
* shutdown Behaviour:- when enable this feature this is asking for shutdown or termination
* Delete on Termimation menas when I deleted the ec2 instance the hard disk automatically deleted
* I ecu is equal to 1 Gigahurts
Status checks:- when we launch any instance there are two types of checks
(1) System Status Checks
(2) instace status checks
Description:- ec2 instance description as given below
(1)instace id :- this is a unique id
(2)instace status
(3)instace type
(4)Every instance have two ip address one is public and other is private, only public ip accessable from out side
(5)Availability zone
(6)Security group:- It show the rule which we have added to ec2 instance
(7)AMI ID:- it show the AMI id
(8)platefrom:- linux/windows/any os
(9)VPC:-show the vpc id
(10)subnet id :- show the subnet id of ec2 instance
0 coment�rios:
Note: only a member of this blog may post a comment.