Open main menu

CDOT Wiki β

Changes

OPS345 Assignment 1

54 bytes added, 02:37, 26 January 2022
Part 4: Load test
= Part 4: Load test =
Refreshing your webpage in Firefox over and over again is not the best way to test your load balancer. You'll set up a Python script ('''asg1Test.py''') to do it instead. I wrote most of it for you:<source lang="python">#!/usr/bin/env python3
# asg1Test.py
# Test for OPS345 Assignment 1
All that's left for you to do is:
* Put '''your name ''' in the comments at the top.* Fix the part that's supposed to '''connect to your server instead of mine'''.* Add to the script so that it '''counts slave2 and slave3 as well''', and prints the results from them at the end.* Once you're happy with the above: make it '''run for 60 seconds instead of 10 ''' and record the results. The number of requests should be split almost perfectly between your for web servers.
= Submission =