Midterm project in cloud computing:
CIT 438/538 Midterm Exam This hands-on midterm exam (on AWS) will be open book and is worth 10% of your final grade. You will measure and compare the performance of a static web page hosted in S3 with a web page hosted on an EC2 instance. In Lab 1, you have learned AWS CLI and EC instances. Also, you have learned how to host a web site on an EC2 instance. In Lab 2, you have learned S3 and how to host a web page (a static web site) in S3. In Lab 4, you have learned an Apache HTTP server benchmarking tool, ab. You will use all you have learned to complete this exam individually. · Requirements and notes Remember that where your credentials are located. You should have configured AWS under the CIT438 account. Make sure you know where you ‘pem’ keypair file is located. This labs make a number requests to AWS services. Be aware that if your run commands many times over you could go over your monthly quota. Work smart and carefully. 1. The static web page you need for this exam is as follows:
It works!
This website is hosted by Amazon AWS
You can name it index.html. 2. You need to host this web page on an EC2 instance and in S3. 3. You need to use the ab command to conduct performance tests. For the EC2 hosting, you need to conduct five ab tests on the web page with 50, 100, 200, 400, and 800 simultaneous requests. The number of requests to perform for each test is 5000. The five ab test commands are as follows: ab -c 50 -n 5000 the URL of the index.html on an EC2 instance ab -c 100 -n 5000 the URL of the index.html on an EC2 instance ab -c 200 -n 5000 the URL of the index.html on an EC2 instance ab -c 400 -n 5000 the URL of the index.html on an EC2 instance ab -c 800 -n 5000 the URL of the index.html on an EC2 instance Please look at http://httpd.apache.org/docs/2.2/programs/ab.html for the description of the ab command output. The “Time per request” value is the average time spent per request. There are two “Time per request” values in the output. You need to record the first value for each test. For the S3 hosting, you also need to conduct five ab tests on the web page with 50, 100, 200, 400, and 800 simultaneous requests. The number of requests to perform for each test is 5000. The five ab test commands are as follows: ab -c 50 -n 5000 the URL of the index.html in S3 ab -c 100 -n 5000 the URL of the index.html in S3 ab -c 200 -n 5000 the URL of the index.html in S3 ab -c 400 -n 5000 the URL of the index.html in S3 ab -c 800 -n 5000 the URL of the index.html in S3 You need to record the “Time per request” value (the first value) for each test. You need to store data obtained from your tests in a table. Based on the data, you need to plot a graph to compare the performance of the index.html page hosted in S3 with the index.html page hosted on an EC2 instance at different numbers of simultaneous requests. Also, you need to analyze the graph. 4. Using the AWS simple monthly calculator at https://calculator.s3.amazonaws.com/index.html, compute and compare the cost of hosting a static web site in S3 and EC2 for a period of one month. You can make an assumption on the daily usage of the static web site (storage usage, network usage, and computation usage) so that you can compute the cost. · Report For this exam, you need to turn in a report in a word document to the Canvas. The report must include all of the sections listed below. 1. Title Page containing the title of the exam, your name, the name of the class, your instructor's name, and the date the exam was submitted. 2. Introduction A single paragraph that describes the objectives or purpose of the exam. 3. Materials List all materials used in the exam, including AWS CLI, VM, EC2 images, instances, security credentials, and S3 buckets. 4. Methods Describe the steps completed during your investigation. Be sufficiently detailed so that anyone could read this section and duplicate your efforts. Write it as if you were given direction for someone else to do the exam. 5. Data Numerical data obtained from your procedure presented as a table. Data encompasses everything recorded when you conducted the experiment, without any interpretation of what they mean. 6. Performance Analysis Describe in words and a graph what the data means. This is the section where you interpret the data. Label your graph with a descriptive title and label the axes, including units of measurement. 7. Economic Analysis Describe in words and a table/a graph the differences in cost between the two solutions. Your analysis should include answers to the questions: Which solution for static web site hosting is cheaper? Is the cheaper alternative faster or slower than the more expensive solution? 8. Conclusion A short summary of the experiment, including its purpose and the meaning of your results. Advise the reader on which web hosting solution to use. 9. References List any references that you used during the course of your exam.