Please enable JavaScript.
Coggle requires JavaScript to display documents.
Ec2-Note (type (Spot instance (defintion (2 minute notice before terminate…
Ec2-Note
type
Reserved Instance
-
definition
-
-
-
Demo Monthly calculator show all upfrant, partial upfront, pricing
3 type of
-
Convertible RI
different config nstance family, operating system, and tenancy
-
-
schedule RI
-
predictable, recurring schedule that require on fraction of daily, weekly or monthly
-
Purchase dedicated host
-
can use per core, per socket, per VM license
On demand
-
-
-
Used case:
- New applicaton to be tested
- App with short term or spiky
Spot instance
defintion
-
SUPPLEMENT On-Demand Instances, where appropriate, and are not meant to handle 100% of your workload.
-
-
-
used case
In EMR (elastic Map Reduce )have an non-spot,instance be the "Master" node a
nd then use Spot Fleets as your core & task nodes; essentially giving you tremendous compute power for a fraction of the cost in comparison to say using regular on-demand instances, and
if the Spot instances get terminated - it's no problem, the tasks will just be redistributed to another Spot instance as and when they are provisioned.
However, you can use all Spot Instances for any stateless, non-production application, such as development and test servers, where occasional downtime is acceptable.
Various fault-tolerant and flexible applications. Examples include web servers, API backends, continuous integration/continuous development, and Hadoop data processing (gig data)
Workloads that constantly save data to persistent storage—including Amazon Simple Storage Service (Amazon S3), Amazon Elastic Block Store (Amazon EBS), Amazon Elastic File System (Amazon EFS), Amazon DynamoDB, or Amazon Relational Database Service (Amazon RDS)—can work effectively with Spot Instances.
pricing structure
-
-
if your spot instance request is 1 dollar & the spot price is <1 or =1 then the spot instance assign to you
-
-
-
definition for both
-
-
draw diagram
5 physical server
-
dedicated instance
2 server(hypervisor), Ec2 start stop move to other server
-
life cycle
Ec2 stop state
-
While the instance is stopped, you can treat its root volume like any other volume, and modify it for e.g. repair file system problems or update software or change the instance type, user data, EBS otpmization attributes etc
-
EBS Volume can be detached from the stopped instance, and attached to a running instance, modified, detached from the running instance, and then reattached to the stopped instance.
It should be reattached using the storage device name that’s specified as the root device in the block device mapping for the instance.
-
2.Charges are only incurred for the EBS storage and not for the2. instance hourly charge or data transfer.
Charges for full hour are incurred for every transition from stopped to running, even if the transition is within the same hour for e
.g. if you stop and start your instances 2 times in an hour, you would be charged for 3 full hours, one for the start and then for the 2 transitions as if you had 3 instances running during that hour
EBS backed
-
-
An instance can stopped & started in case the instance fails a status check or is not running as expected
-
-
Ec2 running state
After the instance is launched, it enters into the running state
Charges are incurred for every hour or partial hour the instance is running even if it is idle
start state
An instance when stopped and started is launched on a new host
Any data on an instance store volume (not root volume) would be lost while data on the EBS volume persists
reboot state
-
An instance retains it public DNS, public and private IP address during the reboot(2 Pub and 1 priv)
-
Amazon recommends to use Amazon EC2 to reboot the instance instead of running the operating system reboot command from your instance as it performs a hard reboot if the instance does not cleanly shutdown within four minutes also creates an API record in CloudTrail, if enabled.
-
kEY pair FOR Ec2
-
-
putty key gen
-
- Save private key as ppk file
-
-
1.AMI
launch permission
You can share an AMI with specific AWS accounts without making the AMI public. All you need is the AWS account IDs
-
To allow IAM users to create or modify resources and perform tasks, you must create IAM policies that grant IAM users permissions for the specific resources and API actions they'll need to use, and then attach those policies to the IAM users or groups that require those permissions.
-
block device
-
-
-
Examples include hard disks, CD-ROM drives, and flash drives. A block device can be physically attached to a computer or accessed remotely as if it were physically attached to the computer. Amazon EC2 supports two types of block devices
type of block device
-
Instance store volumes (virtual devices whose underlying hardware is physically attached to the host computer for the instance)
-
-
2.EBS
-
This means that an EBS volume can move from one piece of hardware to another within the same availability zone.
-
-
-
tag
billing report can be based on tag name. exmaple: wordpress-HR, wordpress-Marketing
-
-
Market Place
PAID
-
The PAID instance is charged according to the rates set by the owner of the AMI, as well as the standard usage fees for the related web services,
.
-
-
-