Coder Social home page Coder Social logo

project-8's Introduction

Project-8

Load Balancer Solution with Apache

This project was continuation of project 7, implementing a distributed solution to the architecture by introducing a load balancer as seen in the diagram below.

  1. An EC2 machine was launched with linux ubuntu running in AWS console

  1. Apache2 installed on the machine

    • sudo apt update
    • sudo apt install apache2 -y
    • sudo apt-get install libxml2-dev

    #Enabling modules:

    • sudo a2enmod rewrite
    • sudo a2enmod proxy
    • sudo a2enmod proxy_balancer
    • sudo a2enmod proxy_http
    • sudo a2enmod headers
    • sudo a2enmod lbmethod_bytraffic

    #Restarting apache2 service

    • sudo systemctl restart apache2 #Ensuring Apache2 is running
    • sudo systemctl status apache2

  1. Configuring Load Balancer and Registering Webservers to its configuration files
    • sudo vi /etc/apache2/sites-available/000-default.conf

    • #Adding the info to the configuration file

<Proxy "balancer://mycluster"> BalancerMember http://:80 loadfactor=5 timeout=1 BalancerMember http://:80 loadfactor=5 timeout=1 ProxySet lbmethod=bytraffic # ProxySet lbmethod=byrequests

    ProxyPreserveHost On
    ProxyPass / balancer://mycluster/
    ProxyPassReverse / balancer://mycluster/

#Restart apache server

- sudo systemctl restart apache2

  1. Getting the public DNS address of Load-balancer

  2. Site successfully loading from load balancer with registered webservers

project-8's People

Contributors

teejay4u avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.