Ntoes
Ntoes
cloud definition
explanation
cloud characteristics
cloud services
cloud models
server - location
another location
internet connectivity
elasticity -cloud
resource pooling
metered services
Pay as u Go
OS - Operating System
Application Software
Hardware
Cloud Services
Application
OS
Hardware ( cpu , mem, storage, network )
CLOUD DEPLOYMENT MODELS
AWS REGIONS
AWS AVAILABILITY ZONES (AZ)
AWS DATA CENTRES
high bandwidth
low latency
highly available
.ppk
.pem
OnDemand Instances
Reserved Instances
Spot Instances
Dedicated Hosts
Dedicated Instances
What Is An Instance?
An AWS EC2 Instance is nothing but a server in the cloud. Just like your physical
server, it comes with varying specs for compute, memory, networking, and storage.
There are a total of 11 instance types for all types of workloads. Choosing between
these instance types is a topic for another post.
Here, we’ll cover something even more basic—understanding how to strike the right
balance between performance and price of AWS instances.
SPOT INSTANCE
With a Spot instance, you can save money by purchasing the hourly compute power of
someone else’s unused EC2 instance.
The “Spot Price” is what you’ll pay. Spot instances are useful for running tasks
that aren’t critical, and can also be interrupted without disruption (AWS calls
these “fault-tolerant” workloads).
Think batch jobs, compute-intensive analysis, temporary auto-scaling to meet a
short-term spike, or another similar usage.
DEDICATED INSTANCE
These are virtual private cloud (VPC) instances that are blocked for use by a
single customer. They are Isolated at the host level, so all instances running on
the host would be reserved for a single customer. But there’s another option if you
want even more isolation and control over your infrastructure.
DEDICATED HOST
Dedicated Hosts enable the same level of isolation as Dedicated Instances, but
additionally, they give you visibility into the physical host. This is required if
your applications use libraries and frameworks with licensing terms that restrict
them to a single server. Or some applications may need to be hosted on a dedicated
server for compliance purposes. In these cases, a Dedicated Instance is your only
option.
Dedicated Instances are billed by the number of instances, whereas Dedicated Hosts
are billed by the host, irrespective of the number of instances you run on each
host. With that in mind, we’re ready to move to the next important section,
understanding the various pricing options for AWS instances.
ON-DEMAND PRICING
With on-demand pricing, you pay by the hour for usage of an AWS instance. This is
the benchmark pricing for AWS instances—meaning that you compare other pricing
models with this one when deciding which is best for you. The benefit of on-demand
pricing is that you don’t have to plan in advance how many instances you need. This
gives you maximum flexibility. However, it comes at a cost. On-demand pricing is
the highest of the lot.
SPOT INSTANCES
With Spot Instances, users bid for the price of spare EC2 Instances. There’s a
market price for spare instances, and only if this market price meets your instance
will you be allotted the instance. Similarly, when the market price reduces, you’ll
automatically lose your instance so your charge doesn’t shoot up. This model is a
bit more complex than on-demand pricing, but it could save 50-90% of your total
costs.
RESERVED INSTANCES
Finally, if you can reliably predict approximately how much compute resources your
applications need in advance, you should consider Reserved Instances (RIs). In this
model, users lock in.
If your concern is that your compute requirements may change over 3 years, AWS
allows you to choose convertible Reserved Instances, so you can switch between
instance types—for example, from an M3 to a C4. However, you can shift down to a
small instance like a T2.
LINUX INTERFACE
user
shell gnome(gui) , shell , bash
kernel
hardware
MAC INTERFACE
user
shell unix - kshell - korn shell
kernel
hardware
WINDOWS INTERFACE
user
shell GUI, CLI ,POWERSHELL
kernel
hardware
webserver -website
5. Ideal for Short-Term Projects: On-demand instances are perfect for short-term
projects or workloads with fluctuating resource requirements, as you can easily
adjust resources on the fly.
1. Development and Testing: On-demand instances are widely utilized for development
and testing environments, where resources are needed temporarily and can be shut
down when not in use, optimizing cost efficiency.
TO Remove all the directories from the directory use rm -rf * in the current
directory
to remove all the file's from the directory use rm * in the current directory
NETWORK - 3TYPES
Commands:
ipconfig
ping [name(or)ipaddress]
tracert [name(or)ipaddress]
5 Types of Classes
a ,b, c ,d, e
a 0 - 127
b 128 - 191
c 192 - 223 Unicasting
d 224 - 239 Multicasting
e 240 - 255 R&D , Special Use
A Class - 0 - 127
B - 255.255.0.0
C - 255.255.255.0
Class A
255.0.0.0
1.255.255.255
n.n.n.h
255th ip
Security Group --- > NACL -- > Network Access Control List
1 - 127
128 - 191
192 - 223
Subnet
Internet GateWay
Routing Table
NAT
Subnetting
Classless Ip Addressing
255.255.0.0 /16
255.255.255.0 /24
Step 3: 11111111.11111111.11111111.11000000
192.168.10.0 - 192.168.10.63
192.168.10.64 - 192.168.10.127
192.168.10.128 - 192.168.10.191
192.168.10.192 - 192.168.10.255
Step 1 : Requirement 1000 Hosts
Step 3 : 11111111.11111111.11111100.00000000
162.56.0.0 - 162.56.4.2
162.56.4.3 - 162.56.8.4
162.56.8.5 - 162.56.12.4
172.18.20.48 /28
11111111.11111111.11111111.11110000 Class - B
2^4 = 16
10.0.0.0 /24
10.0.0.0 - 10.0.0.63
10.0.0.64 - 10.0.0.127
10.0.0.128 - 10.0.0.191
10.0.0.192 - 10.0.0.255
64
255.255.248.0
172.18.8.0
172.18.16.0
172.18.24.0
172.18.32.0
172.18.40.0
ssh -i <keyfile> ec2-user@<private ip>
------------ REPLY
AWS SECURITY
1 Server - Ec2
Load Balancing
Auto Scaling
Managed Services -----------> AWS BeanStalk
#!/bin/bash
sudo apt-get update -y
sudo apt-get install apache2 -y
sudo systemctl start apache2
Test Topics
Aws Rds
Iam Role
Aws Lambda
Ec2
Vpc
Subnetting
/usr/local/apache2/htdocs/