Server Workload Generator
The workload generator is a Python application that generates a random workload, based on pareto variates and other random variates, and then sends that workload to your server. The point of the application is to test how well your server can stand against the designated workload. You may specify four things on the command line with the Workload Generator: the server, the port, the estimated number of users per minute, and the max number of users. You must always at least specify a server, or the application will fail to run.
Accordingly, the workload generator will request files from the server, and the server will serve up those files to the client. To make this portable across all servers, the workload generator already comes with a set of files that it knows how to request. These files are contained in a TAR file within the archive below. Un-TAR these files, and place these files in your web server's documents directory.
When they are placed there, the workload generator will request those files, and your server will know where to find them.
Because this is a project that I did for school, I have take precautions against cheating. I have not included the source code for download, so that other students cannot come and copy it. I have instead compiled the Python code into byte code, which can be run on any system that has a Python interpreter installed. Also, in order to prevent cheating, I have included a statement at the beginning of runtime that claims this program to be written by me, and should not be used for the purposes of someone else's schoolwork.
Download the Workload Generator
If you happen to find any bugs, please report them to me. I am always happy to go back and rework code so that it works better. If I hear that this program is being used for cheating in any way, it will promptly be taken off of my webpage.
Language used: Python