• Home
  • WordPress
  • web Hosting
    • Free hosting
    • Cheap Hosting
    • comparison cloud , vps, shared, wordpress
    • managed wordpress hosting
    • managed cloud hosting
  • page Speed
  • Deals
  • Services
  • About

RAaz Kumar .com

wordpress tutorials seo hosting etc


aws load balancer tutorial

 

Types of Elastic Load Balancers in aws

—————————————————————–
There are three types of load balancers available. You can use the one that best fits your use case.

1. Classic Load Balancer (CLB)

Once configured, it distributes the load across all the registered instances regardless of what is present on the servers. it doesn’t support features like host-based routing or path-based routing

Hence, it can only be used to distribute traffic to a single URL.

2. Application Load Balancer (ALB) aws

This load balancer is specially designed for web applications with HTTP and HTTPS traffic.This load balancer works at this Application Layer, hence the name.

It also provides advanced routing features such as host-based and path-based routing and also works with containers and microservices.

Host-based Routing

Suppose you have two websites openthecloud.com and admin.openthecloud.com. Each website is hosted on two EC2 instances for high availability and you want to distribute the incoming web traffic between them.

If you were using the CLB you would have to create two load balancers, one for each website.
But you can do the same thing using a single ALB!

Hence you will be saving money as you will only be paying for a single ALB instead of two CLBs
Ex: cloud.google.com, gmail.google.com

Path-based Routing

Suppose the website of your company is openthecloud.com and the company’s blog is hosted on openthecloud.com/blog. The operations team has decided to host the main website and the blog on different instances.

Using ALB you can route traffic based on the path of the requested URL. So again a single ALB is enough to handle this for you.

 

aws load balancer

3. Network Load Balancer (NLB) aws

This load balancer operates at the Network layer of the OSI model, hence the name.

Suppose your company’s website is running on four m4-xlarge instances and you are using an ALB to distribute the traffic among them.

Now your company launched a new product today which got viral and your website starts to get millions of requests per second.

In this case, the ALB may not be able to handle the sudden spike in traffic.

This is where the NLB really shines. It has the capability to handle a sudden spike in traffic since it works at the connection level.

It also provides support for static IPs.

2. Application Load Balancer (ALB) Demo in aws

#!/bin/bash
sudo apt-get update -y
sudo apt-get install apache2 unzip -y
echo ‘<html><center><body bgcolor=”black” text=”#39ff14″ style=”font-family: Arial”>
<h1>@BecomeDevops</h1>
<h1>Load Balancer Demo</h1><h3>Availability Zone: ‘ > /var/www/html/index.html
curl http://169.254.169.254/latest/meta-data/placement/availability-zone >> /var/www/html/index.html
echo ‘</h3> <h3>Instance Id: ‘ >> /var/www/html/index.html
curl http://169.254.169.254/latest/meta-data/instance-id >> /var/www/html/index.html
echo ‘</h3> <h3>Public IP: ‘ >> /var/www/html/index.html
curl http://169.254.169.254/latest/meta-data/public-ipv4 >> /var/www/html/index.html
echo ‘</h3> <h3>Local IP: ‘ >> /var/www/html/index.html
curl http://169.254.169.254/latest/meta-data/local-ipv4 >> /var/www/html/index.html
echo ‘</h3></html> ‘ >> /var/www/html/index.html

Related topics:

  1. use nginx as reverse proxy and load balancer for apache wordpress
  2. Autoscaling & load balancing in google cloud
  3. how to write html in php
  4. nginx conf explained best config file performance tuning tips nginx.conf location errors tutorial
  5. Core Java Tutorial Free online

tutorials

  • Vivek Bindra Videos Transcription (business strategy)
  • git commands
  • new relic php agent install in 3 steps
  • new relic mysql install integration - 2 ways fix problems
  • new relic installation linux (infrastructure agent , php, mysql , nginx)
  • xampp tutorials 2021 installation errors fix wordpress phpmyadmin mysql apache
  • Redis performance metrics & tuning for nginx apache ubuntu & debian
  • Devops course Syllabus topics PDF AWS, Azure, cisco, redhat
    • aws load balancer tutorial
  • CCNA Syllabus pdf (CCNA / CCNP vs devops vs mcsa /MCSE)
  • how to create a website free of cost on google
  • what is vpn vs proxy vs tor, http vs https, http2, tcp vs udp, kali linux sql source code injection
  • nginx server tutorials (installation, configuration, performance tuning, security)
  • MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS
  • AUdio Editing Background Noise removal (Audacity, Adobe Premiere Addition, Camtasia Filmora Windows Obs)
  • Android Studio tutorials syllabus Topics Course details #AndroidApplicationDevelopment
  • [INTRO] Ethical hacking / cyber Security / Penetration testing Tutorial -{updates frequently}
  • redis install ubuntu 20.04 with wordpress php redis mysql configuration
  • ubuntu tutorials installation download issues etc
  • Php tutorials
  • HTML & CSS Tutorials
  • Core Java Tutorial Free online
  • Linux sysadmin tutorials linux system administrator
  • apache server tutorial (install,config, performance tuning, security, error handling)

 

 

wordpress Pagespeed optimization

Digitalocean free $100 Credit

Cloudways Review pricing promo codes

Siteground cpu limits Pricing

Shared Hosting

Managed wordpress Hosting

Managed Hosting Cloud server

VPS Hosting

Cloud Hosting – Unmanaged

Google cloud Pricing

Aws Pricing

Azure pricing

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

LEMP Install Ubuntu

Mysql Performance Tuning

Nginx Performance tuning

Linux Performance tuning

Php -fpm performance tuning

Redis Performance tuning

linux server security

nginx security best practices

wordpress security plugins

 

 

wordpress

 

Top 5  WP Google Analytics Plugins

WP Backup Plugins

Wp Comment Plugins

Top wordpress Security Plugins

WP Seo Plugins

WP Caching Plugins

Best Adsense Plugins for WordPress

Wp social Sharing Plugins

autoshare social media plugins

WP speed Optimization Plugins

Speedup WordPress google Score

More Wp tuts

Server Admin Cloud

 

Installing Nginx LEMP On ubuntu

Installing apache Lamp ubuntu

nginx fastcgi cache enable

php – fpm install  & Configuration

Opcache install & Configure

php -fpm pool manager explained

Mysql Install & Configuration

Redis Object cache install & configure

 

Nginx as Reverse Proxy and Load balancer

Load Balance / auto scaling in google cloud

Linux Commands PDF

Mysql Commands Pdf

Letsencrypt tutorial

mysqldump export & import 

Pagespeed Module install & configure

nginx.conf best file

mysql.conf best file

upgrade ubuntu

© 2023 - All Rights Reserved Disclaimer & Privacy Policy