Compute Related Notes

Logging Using awslogs Log Driver in Amazon ECS


Monitoring and logging can be as important as developing and deploying applications. Imagine managing an enterprise-level distributed application that runs on hundreds of containers. You must place your containers cleverly on instances to achieve a certain level of resilience and performance. On top of that, you would want to have visibility into CPU and memory usage so you’ll have an idea which task/tasks are resource-hungry at a given time. You may also want to check the disk space of your instance and see if you still have enough storage for your application. Fortunately, monitoring distributed applications hosted in AWS has [...]

Logging Using awslogs Log Driver in Amazon ECS2021-05-04T09:25:50+00:00

ECS Network Modes Comparison


Amazon Elastic Container Service (ECS) allows you to run Docker-based containers on the cloud. Amazon ECS has two launch types for operation: EC2 and Fargate. The EC2 launch type provides EC2 instances as hosts for your Docker containers. For the Fargate launch type, AWS manages the underlying hosts so you can focus on managing your containers instead. The details and configuration on how you want to run your containers are defined on the ECS Task Definition which includes options on networking mode.  In this post, we’ll talk about the different networking modes supported by Amazon ECS and determine which mode [...]

ECS Network Modes Comparison2021-05-03T12:55:41+00:00

Configuring Notifications for Amazon EC2 Auto Scaling Lifecycle Hooks


Auto Scaling Lifecycle Hooks In the previous post, we talked about Auto Scaling Lifecycle Hooks and how to configure it on your Auto Scaling group. You can view the article here. It’s better to read it first before proceeding with this section. In a nutshell, Auto Scaling Lifecycle Hooks allow you to put an instance in the “wait” state while the Auto Scaling group responds to a scale-out or scale-in event. While the instance is in the “wait” state, you perform actions such as installing the application before allowing traffic to the instance or sending out the application logs to [...]

Configuring Notifications for Amazon EC2 Auto Scaling Lifecycle Hooks2021-05-12T08:51:56+00:00

Step Scaling vs Simple Scaling Policies vs Target Tracking Policies in Amazon EC2


Bookmarks Simple Scaling  Target Tracking Step Scaling  Creating a Step Scaling Policy for an Auto Scaling Group Amazon’s EC2 Auto Scaling provides an effective way to ensure that your infrastructure is able to dynamically respond to changing user demands. For example, to accommodate a sudden traffic increase on your web application, you can set your Auto Scaling group to automatically add more instances. And when traffic is low, have it automatically reduce the number of instances. This is a cost-effective solution since it only provisions EC2 instances when you need them. EC2 Auto [...]

Step Scaling vs Simple Scaling Policies vs Target Tracking Policies in Amazon EC22021-05-12T06:42:22+00:00

Amazon EC2 Auto Scaling Lifecycle Hooks


Bookmarks Auto Scaling Lifecycle Hooks Configure Lifecycle Hooks on your Auto Scaling Groups Amazon EC2 Auto Scaling allows you to scale-out or scale-in your EC2 instances automatically based on policies you configured in response to changing demand on your application. Auto Scaling Groups lets you set a minimum and maximum number of EC2 instances to automatically resize your cluster based on a defined schedule or instance metrics such as CPU utilization, network traffic, etc. This is an excellent way to cut costs and make sure you have the correct number of instances since traffic on [...]

Amazon EC2 Auto Scaling Lifecycle Hooks2021-05-12T06:03:34+00:00

Elastic Fabric Adapter (EFA)


Bookmarks Limitations Pricing An Elastic Fabric Adapter (EFA) is a network device that you can attach to your Amazon EC2 instance to accelerate High Performance Computing (HPC) and machine learning applications. An EFA is an Elastic Network Adapter (ENA) with an additional OS-bypass functionality.  How It Works EFA integrates with  Libfabric 1.9.0 and it supports Open MPI 4.0.2 and Intel MPI 2019 Update 6 for HPC applications, and  Nvidia Collective Communications Library (NCCL) for machine learning applications. With an EFA, HPC applications use Intel Message Passing Interface (MPI) or Nvidia Collective Communications Library (NCCL) to [...]

Elastic Fabric Adapter (EFA)2021-05-06T14:04:07+00:00

ECS Task Placement Strategies


A task placement strategy is an algorithm for selecting instances for task placement or tasks for termination. When a task that uses the EC2 launch type is launched, Amazon ECS must determine where to place the task based on the requirements specified in the task definition, such as CPU and memory. Similarly, when you scale down the task count, Amazon ECS must determine which tasks to terminate.  A task placement constraint is a rule that is considered during task placement. You can use constraints to place tasks based on Availability Zone or instance type.  You can also associate attributes, which [...]

ECS Task Placement Strategies2021-05-03T12:55:32+00:00

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!