From 1c4025c792a630c83830592f14c2e5ffc8a9208e Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 13 Nov 2020 18:26:28 -0600 Subject: Extract testing file --- P3/testing/how_to_test | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 P3/testing/how_to_test (limited to 'P3/testing/how_to_test') diff --git a/P3/testing/how_to_test b/P3/testing/how_to_test new file mode 100644 index 0000000..edc1ec9 --- /dev/null +++ b/P3/testing/how_to_test @@ -0,0 +1,35 @@ +RUNNING THE WEB SERVER +============================================================ +Extract "testing.zip" and use it as your webserver root +directory. Run your webserver using the following command + +./web_server /testing + +**** Pick a random number other than 9000 from (1024 to 65536) to avoid collisions with other groups **** +For example, to run the web server at port 9000, with root directory "/home/student/joe/testing" with 100 dispatch and worker threads, +queue length 100 run the following command + +When you didn't implement dynamic worker thread pool nor caching +./web_server 9000 /home/student/joe/testing 100 100 0 100 0 + +When you implemented dynamic worker thread pool, but didn't implement caching +./web_server 9000 /home/student/joe/testing 100 100 1 100 0 + +When you didn't implement dynamic worker thread pool, but implemented caching +./web_server 9000 /home/student/joe/testing 100 100 0 100 100 + +When you implemented both dynamic worker thread pool and caching +./web_server 9000 /home/student/joe/testing 100 100 1 100 100 + +You should now (using another terminal) be able to query a single file, such as the following: + +wget http://127.0.0.1:9000/image/jpg/29.jpg + +If you have a file containing all the URLs you want, you can open a terminal and issue the following command, + +wget -i /urls + +The above command will ask wget to fetch all the URLs listed on the file named "urls". + +To run the xargs test: (Refer project description for more details) +cat | xargs -n 1 -P 8 wget -- cgit v1.2.3