I am going to set up a load test test using jmeter. However, I cannot find on the net what a good mark is. How good is good?
My site averages around 80,000 per day.
After extracting some data from the access log for 1 month, I manage to find out:
The average low traffic is about 1 request / sec. The average average traffic is 30 requests / sec. Medium High traffic 60 requests / sec
I have developed the following plans for testing 8 pages and is ideal for average response time when loading a single page:
- Page 1 - 409ms
- Page 2 - 730ms
- Page 3 - 1412ms
- Page 4 - 1811ms
- Page 5 - 853
- Page 6 - 657ms
- Page 7 - 10ms
- Page 8 - 180ms
Simulate a medium traffic scenario - 10 requests / second test
- Simulated users: 10 threads
- Time period: 1 sec.
- Duration: 30 minutes
Simulate a medium traffic scenario - 30 requests / second test
- Simulated users: 30 threads
- Time period: 1 sec.
- Duration: 30 minutes
Simulate a super-high traffic scenario - 100 requests / second test
- Simulated users: 100 threads
- Time period: 1 sec.
- Duration: 30 minutes
Simulate an attack scenario - 350 queries / sec (based on maximum MYSQL 500 connection)
- Simulated users: 100 threads
- Time period: 1 sec.
- Duration: 10 minutes
During the execution of this test, I plan to track the following:
- Average load: (web server)
- Average CPU Usage: (Database Server)
- RAM Average load:
- RAM Average load: (DB Server)
- Average response time:
To find out how much this is related to its memory and processor, and if there is a need to increase the amount of RAM, CPU, etc. I also limited the connection of MySQL Max to 500 .
In all tests, I expect the response time to be ideally below the 10 second benchmark.
How does this sound? I do not have an SLA to follow, it is only based on a study of current web traffic and comes out with a plan. The thing is, I don’t know what the server threshold is. I believe that the hardware below should exceed what is needed to host our pages.
The web server works: 8 GB RAM, 4 cores (1 server, another backup server without load) MySQL server works: 4 GB of RAM, 2 cores.
We plan to move to the cloud, so ideally you need to find out which instance is best for our scenario with this load test.
Would really appreciate some good advice here.