This article is one step ahead of my previous article. Here we will learn how to configure a load balancer on AWS using Ansible.
This article is one step ahead of my previous article. Here we will learn how to configure a load balancer on AWS using Ansible.
First, let’s understand what is a load balancer?
A load balancer does the work of routing client requests across all servers capable of fulfilling those requests in a manner that maximizes speed and capacity utilization and ensures that no one server is overworked, which could degrade performance.
A load balancer performs the following functions:
To begin with the setup we launch four instances on AWS named ‘ansibleweb’ _which serves as the webservers on the backend, and one instance named ‘load-balancer’ _which is configured as the front end load balancer. We have launched these instances using the Ansible playbook ‘_instancelaunch.yml_’.
This playbook is available for download on the given link
For a detailed explanation of launching instances on AWS using Ansible kindly refer to my article on **[Deploying Web Server on AWS through ANSIBLE](https://medium.com/faun/deploy-web-server-on-aws-through-ansible-a4c2e26df182?source=friends_link&sk=4472d3323d46d2412e19ae2db5d4da22).**
The playbook ‘instancelaunch.yml’ is run through the command :
ansible-playbook --ask-vault-pass instancelaunch.yml
playbook: instancelaunch.yml
The vault holds the value of variables myaccess and _mysecret _which are used in the _tasks/main.yml _file of role instance. Once the playbook runs successfully 5 instances are launched on AWS as shown.
main.yml file of the role instance
Provisioning AWS EC2 Instances and Security Group using Ansible Playbook and then Deploying HTTPD Web Server and HAProxy Load Balancer Server using Ansible Roles.
Ansible is an open-source automation tool, or platform, used for IT tasks such as configuration management, application deployment, intra service orchestration, and provisioning.
AWS: What Is Load Balancing? Recently started reading a lot about AWS and doing some practical things to be in hand-on touch with the concept.
We compare AWS Application Load Balancer (ALB) with NGINX Open Source and NGINX Plus as a Layer 7 reverse proxy and load balancer. ALB has more features than at its debut in 2016, but we conclude that NGINX and NGINX Plus still provide more functionality and much more predictable pricing.
This Edureka Live session on ‘Types of EC2 Instances in AWS’ will give a complete walkthrough of AWS EC2 service and tell you what are the various types of EC2 instances available and how instances work in AWS. Types of EC2 Instances in AWS | AWS EC2 tutorial | AWS Cloud | AWS CLI Tutorial