openedx-vlead / port-labs-to-openedx

3 stars 8 forks source link

Load/ Performance testing on each lab #40

Open sivashankerN opened 7 years ago

sivashankerN commented 7 years ago

Load/Performance test on each lab that is hosted in production.

sivashankerN commented 7 years ago

Load Test on http://cse02.vlabs.ac.in:
RAM : 1GB vCPUs: 1 siege -c 100 -r 1 http://cse02.vlabs.ac.in/

concurrent user requests 100 with 1 repetition Transaction rate: 28.83 trans/sec Total number of transactions 100

Ram utilization

76% used

CPU utilization

2%

sivashankerN commented 7 years ago

siege -c 100 -r 2 http://cse02.vlabs.ac.in/

concurrent user requests 100 with 2 repetitions Total number of /hits/transactions are 200 Transaction rate: 27.97 trans/sec

RAM utilization

77.8%

CPU utilization

3.7%

sivashankerN commented 7 years ago

siege -c 300 -r 1 http://cse02.vlabs.ac.in/

concurrent user requests 300 with 1 repetitions Total number of /hits/transactions are 300 Transaction rate: 60.61 trans/sec

RAM utilization

78.8%

CPU utilization

4.6%

sivashankerN commented 7 years ago

As per the above results we can say

  1. VM can handle 70 transactions per second.
  2. VM can handle 300 hits/transactions per 4.5 seconds without RAM and CPU issues.
sivashankerN commented 7 years ago

siege -c 500 -r 1 http://cseo2.vlabs.ac.in/

concurrent user requests 500 with 1 repetitions Total number of /hits/transactions are 500 Transaction rate: 52.17 trans/sec

RAM utilization

82.2%

CPU utilization

5.5 %

sivashankerN commented 7 years ago

Checked load/performance on 10 labs with small shell script

load-test.sh

#!/bin/sh
touch c100-r1.txt
touch c200-r1.txt
touch c300-r1.txt
while read line
do
 echo "100 hits for $line" >> c100-r1.txt
 siege -c 100 -r 1 $line 2>> c100-r1.txt

 echo "200 hitt for $line" >> c200-r1.txt
 siege -c 200 -r 1 $line 2>> c200-r1.txt

 echo "300-hits for $line" >> c300-r1.txt
 siege -c 300 -r 1 $line 2>> c300-r1.txt
done < urls.txt

urls.txt file

cse02-iiith.vlabs.ac.in
cse15-iiith.vlabs.ac.in
cse19-iiith.vlabs.ac.in
cse18-iiith.vlabs.ac.in
cse20-iiith.vlabs.ac.in
emt-iiith.vlabs.ac.in
cse29-iiith.vlabs.ac.in
cse22-iiith.vlabs.ac.in
cse11-iiith.vlabs.ac.in
sivashankerN commented 7 years ago

Lets us check RAM utilization

RAM Utilization on each LAB

cse01-iiith.vlabs.ac.in - RAM utilization Min - 730 MB - If there are no requests coming in Max - 778 MB - if there are 300 concurrent user requests

cse02-iiith.vlabs.ac.in - RAM utilization min - 740 MB - If there are no requests coming in Max - 780 MB - if there are 300 concurrent user requests

cse15-iiith.vlabs.ac.in - RAM utilization Min - 726 MB - If there are no requests coming in Max - 754 MB - if there are 300 concurrent user requests

cse19-iiith.vlabs.ac.in - RAM Utilization Min - 715 MB - If there are no requests coming in Max - 741 MB

cse18-iiith.vlabs.ac.in - RAM utilization Min - 680 MB - If there are no requests coming in Max - 717 MB - if there are 300 concurrent user requests

cse20-iiith.vlabs.ac.in - RAM utilization Min - 741 MB - If there are no requests coming in Max - 790 MB - if there are 300 concurrent user requests

emt-iiith.vlabs.ac.in - RAM utilization Min - 715 MB - If there are no requests coming in Max - 742 - if there are 300 concurrent user requests

cse29-iiith.vlabs.ac.in - RAM utilization Min - 575 MB - If there are no requests coming in Max - 851 MB - if there are 300 concurrent user requests

cse22-iiith.vlabs.ac.in - RAM utilization Min - 730 MB - If there are no requests coming in Max - 811 MB - if there are 300 concurrent user requests

cse11-iiith.vlabs.ac.in - RAM utilization Min - 700 MB - If there are no requests coming in Max - 786 MB - if there are 300 concurrent user requests

sivashankerN commented 7 years ago

The above test is done only on home page of each lab with the one click by all concurrent users