1,234
edits
Changes
→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 =