I have a project for the purpose of learning with the information below:
The project should have two phase:
I want firstly have docker-compose which will include nginx flask.
[login to view URL]
Then the website for Python is to calculate Pi. Pi is 3.14 and I want it to find 100 digits after 3.14**
there is an example here: [login to view URL]
the second solution let us to enter number of digits.
Then we have want run the benchmarking automatically, so we need the following apache benchmarking tool: ab -n 100 -c 10 -k -H "Accept-Encoding: gzip, deflate" [login to view URL]
And another thing that I need in the script is timing. This means that I want to run this code “ab -n 1000 -c 10 -k -H "Accept-Encoding: gzip, deflate" [login to view URL]” for 100 times in a loop every minutes and every minute there would a parameter for sleeping meaning that it can rest for example 20 seconds.
During running the loop test for 100 times, the number of users should be changed gradually for 100 times.
For example we should have a file which can read from it, it starts from 100 users 120 , 150 450 500 600 and so on.
Finally at this phase I want to monitor the performance of my system. There are some tools that I can export some graphs from them as you can see below: [login to view URL]
The next phase will be about to increase and scale the number of application of flasks when CPU utilization reaches to a certain amount as we will discuss about it later.
Please let me know if you can help me with this project and I will be more than happy to start with