Starting from:

$30

CLOUD COMPTING-Lab 5 Load Balancing Solved

Goal for Lab 5
•     Objectives:

•     Understanding the concept of load balancing

•     Monitor the utilization status of each VM and each host

•     Moving VMs from hot spot to cold ones

•     Complete this experiment using at least two computers, the more the better

To Start
•        Go to dockerhub and pull one image call mongo-express

•        https://hub.docker.com/_/mongo-express

•        Test this mongodb web service with simple SQL statement

•        Hints, you can generate your own DB file on random data

•        Write a HTTP request generator that wraps SQL statement

•        https://sourceforge.net/projects/http-req-gen/

•        https://github.com/Kong/httpsnippet

Combine Them Up
•     First, connect your request generator to the MongoDB service, basically shooting different SQL statement at a self-defined rate

•     Second, make multiple duplicates of the MongoDB service, and randomly distribute the SQL statement to all service hosts

•     Third, based on your homework 2-3, use your hypercall to detect the runtime system status, including CPU utilization, memory utilization, etc.

•     Set a threshold for such status and name it as the hotspot when it is over

•     E.g., when CPU util 80%, this is a hot spot, you need to either move some hosts to other machines, or distribute less workloads to this spot

More products