On the 54th day, I learned the following things about Cloud Computing.
- Amazon EC2 or virtual machines provides scalable computing capacity in the AWS cloud.
- It enables you to scale up or scale down the instances to handle changes in requirements. You don't need to buy another server. You can just increase or decrease the requirement on the same server.
- You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure it security, and manage the networking and the storage.
- Amazon EC2 is having two storage options i.e EBS and instance store. EBS is kept on the side of the physical server but instance store is present in host memory. Instance store is fast as compare to EBS.
- Preconfigured templates are available known as Amazon Machine Image like microsoft image, ubuntu image, etc.
- By default, when you create an EC2 account with amazon, your account is limited to a maximum of 20 EC2 instances per region with two default High I/O instances.
There are seven types of instances.
- General purpose -> Balanced Memory and CPU
- Compute Opmtimized -> More CPUs than RAM
- Memory Opmtimized -> More RAMs
- Storage Optimized -> Low Latency in which More Storage is Required
- Accelerated Computing/GPU -> Graphics Optimized
- High Memory Optimized -> High RAMs, Nitro System(Specialized hypervisor to increase the performance)
- Previous Version Instances
- General purpose instances provide a balance of compute, memory and networking resources and can be used for a variety of workloads.
- There are 3 series in a general purpose instance.A SeriesA1M SeriesM4M5M5aM5adM5dT SeriesT2t2.micro (Free tier eligible)T3T3a
- Instances are available in four sizes.Nano or Micro (contains 1 virtual CPU, approximately 2GB RAM)SmallMediumLarge (Higher configuration of virtual CPUs and RAM)
- A Series contains medium and large sizes.
- M Series contains only large size.
- T Series contains all the sizes from nano to large.
- A1-instances: are ideally suitable for scale-out workloads(suddenly adding more configurations and managing them) that are supported by the Arm ecosystem.
- Arm ecosystem: Arm ecosystem provide customers with wide range of products to get market faster than the competition.
- Microservice: It is a distinct method of developing software systems that tries to focus on building single-function modules with well defined interfaces and operations.
- These instances are well-suited for the following applications.WebServerContainerized microservicesCaching fleets(Stores the subset of data)Distributed data storesApplication that requires Arm instruction set
- M4 instances: The new M4 instances use a custom Intel Xeon E5-2676 v3 Haswell processor and it is optimized specifically for EC2.vCPU (Virtual CPU) -> 2 to 40 (max)RAM -> 8 GB to 160 GB (max)Instance storage -> EBS only
- M5, M5a, M5ad and M5d instances: These instances provide an ideal cloud infrastructure, offering a balance of compute, memory and networking resources for a broad range of applications.It is used in the gaming server, web server, small and medium databases.vCPU -> 2 to 96 (max)RAM -> 8 GB to 384 GB (max)Instance storage -> EBS and NVMe SSD (Nitro system SSD)
- T2, T3, and T3a instances: These instances provide a baseline of CPU performance from 5% to 40% with the ability to burst to a higher level(may increase above 40% but not necessary) when required by your workload.An unlimited instances can sustain high CPU performance for any period of time whenever required.It is not used for real time scenario. Instead it is used for practicing purpose like:WebsitesCode repositoriesDevelopment, build, testMicroservices of small applicationsvCPU -> 2 to 8RAM -> 0.5 GB to 32 GB
- Compute optimized instances are ideal for compute-bound applications(processing several requests at the same time) that benefit from high performance processors.
- It is cheap and cost-effective.
- There are three types of series in it.C3 (It was the previous instance. Updated version is C5)C4C5C5n
- C4 instances are optimized for compute intensive workloads and deliver very cost effective high performance at a low price per compute ratio.vCPU -> 2 to 36RAM -> 3.75 to 60 GBStorage -> EBS onlyNetwork Bandwidth -> 10 Gbps
- Its usecases areWeb serverBatch ProcessingMMO GamingVideo Encoding
- C5 instances are optimized for compute intensive workloads and deliver very cost effective high performance at a high price per compute ratio.
- It is powered by AWS Nitro system.vCPU -> 2 t0 72RAM -> 4 to 192 GBIntance storage -> EBS and NVMe SSDNetwork Bandwidth -> Upto 25 Gbps
- Its usecases areHigh performance web serverGamingVideo Encoding
- Note:C5 supports maximum 25 EBS volumeC5 uses Elastics network adapterC5 uses new EC2 hypervisor
That's all about my today's learning I hope this article is valuable for you
Exciting journey ahead! Looking forward to diving into EC2 and uncovering its role in DevOps. Your insights are always valuable!