diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-13 18:26:28 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-13 18:26:28 -0600 |
commit | 1c4025c792a630c83830592f14c2e5ffc8a9208e (patch) | |
tree | 67aa3514606cc81bced6e94e4af941002036a6d7 /P3/testing/how_to_test | |
parent | remove identifier (diff) | |
download | csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.tar csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.tar.gz csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.tar.bz2 csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.tar.lz csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.tar.xz csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.tar.zst csci4061-1c4025c792a630c83830592f14c2e5ffc8a9208e.zip |
Extract testing file
Diffstat (limited to '')
-rw-r--r-- | P3/testing/how_to_test | 35 |
1 files changed, 35 insertions, 0 deletions
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 <port> <path_to_testing>/testing <num_dispatch> <num_worker> <dynamic_flag> <queue_len> <cache_entries> + +**** 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 <path-to-urls>/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 <path _to_urls_file> | xargs -n 1 -P 8 wget |