aanjaneykumarverma / Load_Balancer_Implementation

Contains code for BTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Rōdobaransa

MIT License

This project contains our implentation of a Virtual Machine Mapping Policy based on load balancing in private cloud environment.

The policy uses the resource consumption of the running virtual machine and the self-adaptive weighted approach, which resolves the load balancing conflicts of each independent resource caused by different demand for resources of cloud applications. Meanwhile, it uses a probabilistic approach to ease the problem of load crowding in the concurrent users scene.

Installation

  • Client Node
1. Download an ISO File for Ubuntu.
2. Download virt-manager on all client nodes.
3. Clone a VM using the ISO File obtained in step 1.
4. Enable qemu-guest-agent on this VM.
5. Add test programs in the VM and convert them into executable binaries.
6. Save the qcow2 image of this VM.
7. Use the qcow2 image of this VM to clone new VMs when a request arrives.

Run Locally

Clone the project on all client nodes and master node.

  git clone https://github.com/Akuver/Load_Balancer_Implementation.git

Go to the project directory clientNode and masterNode when setting up for Client Node and Master Node respectively.

  cd Load_Balancer_Implementation/Integration/clientNode
  cd Load_Balancer_Implementation/Integration/masterNode

Install dependencies

  npm install

Start the client servers first and only then the master server.

  npm run start

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • Client Node

    DB - YOUR_MONGODB_PATH_HERE

    IP - IP_ADDRESS_OF_YOUR_MACHINE_HERE

    PORT - PORT_ON_WHICH_THE_SERVER_RUNS_HERE

    ISOPATH - ISO_FILE_PATH_FOR_UBUNTU_HERE

  • Master Node

    DB - YOUR_MONGODB_PATH_HERE

    PORT - PORT_ON_WHICH_THE_SERVER_RUNS_HERE

    Authors

  • @Aanjaney Kumar Verma

  • @Kaushal Kumar

License

MIT Logo

About

Contains code for BTP

License:MIT License


Languages

Language:JavaScript 46.5%Language:Python 20.1%Language:C++ 19.2%Language:Jupyter Notebook 8.8%Language:Shell 4.6%Language:Makefile 0.8%