Skip to end of metadata
Go to start of metadata

Aim

Create a cluster that will sustain 2,000 concurrent users using LAMS 2.3.5.

Set up:

See Clustering for configuration and setup details.

  • Db server:
    8 x 2.0 GHz Core Bare Metal Instance - 8 GB Ram [See softlayer.com]
    MySQL 5.5.9
  • 3 JBoss nodes each running on:
    4 x 2.0 GHz Core Bare Metal Instance - 4 GB Ram [See softlayer.com] (JBoss version 4.0.2).

All these servers run Ubuntu Server 10.04.2 64 bits.

Configuration

JBoss node 1:

  • Apache webserver + mod_jk as load balancing
  • JBoss instance #1

JBoss node 2:

  • JBoss instance #2

JBoss node 3

  • JBoss instance #3

Test harness

As all our previous scalability tests, we use the test harness to simulate users load.

Results

We ran two test, one with 2000 and another one with 2300 concurrent users.

2000 concurrent users

We choose the 10nbs.zip sequence that contains ten noticeboard activities on a road
Using 20 instances of the test harness from 20 separate boxes simulating 100 users each, we've got the following results:

instance

Average response (in seconds)

t01

1.1278565261842555

t07

1.1132043745727958

t09

1.1027072507141886

t04

1.131113385182153

t10

1.1057710028969514

t13

1.1302860856478314

t14

1.1168920843604493

t18

1.1121676085458305

t19

1.1023508031581812

t20

1.0728329703239858

t02

1.1168920843604493

t08

1.1231575006806425

t05

1.094642847420716

t03

1.119157436385903

t15

1.1377192071086808

t16

1.0964850848385332

t11

1.0994889040163376

t12

1.1226622228268264

Total Average:

1.112521521

So for every page request, with 2000 users in LAMS at the time, the cluster is able to responde in 1.1 second in average.

2300 concurrent users

Instance

Average Response Time (seconds)

t01

2.91988795263038

t07

2.916475542857143

t09

2.9077987769701164

t04

2.8977172230564863

t10

2.8115773374613005

t13

2.9408575847846015

t14

2.906962778029959

t18

2.9102629295581686

t19

2.9474031503253055

t20

2.910512032239493

t02

2.904566542288557

t08

2.931553494827151

t05

2.853859952987752

t03

2.8831194420226676

t15

2.899446867515442

t16

2.7135967360159463

t11

2.897253238664674

t12

2.905537207565953

t17

2.8946920690083155

t06

2.8115773374613005

Total Average:

2.88823291

So for every page request, with 2300 users in LAMS at the time, the cluster is able to responde in 2.8 second in average.

Raw results

2000 concurrent users:
t01
  In learnerTest1, 120 learner(s) attended, 119 finished and 1 aborted.
      20:30:50,383 INFO [main] TestReporter - Total response time: 9928.521 seconds
      20:30:50,383 INFO [main] TestReporter - Average response time: 1.1278565261842555 seconds
      20:30:50,383 INFO [main] TestReporter - Average response time of joinLesson calls: 0.5307 seconds

t07
  In learnerTest1, 100 learner(s) attended, 99 finished and 1 aborted.
      20:31:03,809 INFO [main] TestReporter - Total response time: 8143.09 seconds
      20:31:03,809 INFO [main] TestReporter - Average response time: 1.1132043745727958 seconds
      20:31:03,809 INFO [main] TestReporter - Average response time of joinLesson calls: 0.46148000000000006 seconds

t09
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:30:56,967 INFO [main] TestReporter - Total response time: 8106.001 seconds
      20:30:56,967 INFO [main] TestReporter - Average response time: 1.1027072507141886 seconds
      20:30:56,967 INFO [main] TestReporter - Average response time of joinLesson calls: 0.45319000000000004 seconds

t04
  In learnerTest1, 100 learner(s) attended, 98 finished and 2 aborted.
      20:31:51,706 INFO [main] TestReporter - Total response time: 8289.93 seconds
      20:31:51,706 INFO [main] TestReporter - Average response time: 1.131113385182153 seconds
      20:31:51,706 INFO [main] TestReporter - Average response time of joinLesson calls: 0.54329 seconds

t10
  In learnerTest1, 100 learner(s) attended, 98 finished and 2 aborted.
      20:31:41,858 INFO [main] TestReporter - Total response time: 8015.734 seconds
      20:31:41,858 INFO [main] TestReporter - Average response time: 1.1057710028969514 seconds
      20:31:41,858 INFO [main] TestReporter - Average response time of joinLesson calls: 0.39441000000000004 seconds
 
t13
  In learnerTest1, 100 learner(s) attended, 98 finished and 2 aborted.
      20:30:50,927 INFO [main] TestReporter - Total response time: 8261.261 seconds
      20:30:50,927 INFO [main] TestReporter - Average response time: 1.1302860856478314 seconds
      20:30:50,927 INFO [main] TestReporter - Average response time of joinLesson calls: 0.47211 seconds


t14
  In learnerTest1, 100 learner(s) attended, 98 finished and 2 aborted.
      20:31:04,056 INFO [main] TestReporter - Total response time: 8155.546 seconds
      20:31:04,056 INFO [main] TestReporter - Average response time: 1.1168920843604493 seconds
      20:31:04,056 INFO [main] TestReporter - Average response time of joinLesson calls: 0.58489 seconds

t18
  In learnerTest1, 100 learner(s) attended, 98 finished and 2 aborted.
      20:30:43,947 INFO [main] TestReporter - Total response time: 8068.776 seconds
      20:30:43,950 INFO [main] TestReporter - Average response time: 1.1121676085458305 seconds
      20:30:43,950 INFO [main] TestReporter - Average response time of joinLesson calls: 0.53217 seconds

t19
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:29:39,349 INFO [main] TestReporter - Total response time: 8097.869 seconds
      20:29:39,349 INFO [main] TestReporter - Average response time: 1.1023508031581812 seconds
      20:29:39,349 INFO [main] TestReporter - Average response time of joinLesson calls: 0.18489 seconds


t20
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:30:27,053 INFO [main] TestReporter - Total response time: 7881.031 seconds
      20:30:27,055 INFO [main] TestReporter - Average response time: 1.0728329703239858 seconds
      20:30:27,055 INFO [main] TestReporter - Average response time of joinLesson calls: 0.42357999999999996 seconds

t02
  In learnerTest1, 100 learner(s) attended, 98 finished and 2 aborted.
      20:31:04,056 INFO [main] TestReporter - Total response time: 8155.546 seconds
      20:31:04,056 INFO [main] TestReporter - Average response time: 1.1168920843604493 seconds
      20:31:04,056 INFO [main] TestReporter - Average response time of joinLesson calls: 0.58489 seconds


t08
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:30:17,060 INFO [main] TestReporter - Total response time: 8250.715 seconds
      20:30:17,060 INFO [main] TestReporter - Average response time: 1.1231575006806425 seconds
      20:30:17,060 INFO [main] TestReporter - Average response time of joinLesson calls: 0.37091 seconds


t05
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:30:41,143 INFO [main] TestReporter - Total response time: 8042.341 seconds
      20:30:41,143 INFO [main] TestReporter - Average response time: 1.094642847420716 seconds
      20:30:41,143 INFO [main] TestReporter - Average response time of joinLesson calls: 0.48338000000000003 seconds


t06
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:29:59,567 INFO [main] TestReporter - Total response time: 7907.628 seconds
      20:29:59,567 INFO [main] TestReporter - Average response time: 1.0764535801796895 seconds
      20:29:59,567 INFO [main] TestReporter - Average response time of joinLesson calls: 0.20367000000000002 seconds


t03

  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:30:48,314 INFO [main] TestReporter - Total response time: 8224.688 seconds
      20:30:48,315 INFO [main] TestReporter - Average response time: 1.119157436385903 seconds
      20:30:48,315 INFO [main] TestReporter - Average response time of joinLesson calls: 0.64806 seconds

t15
  In learnerTest1, 100 learner(s) attended, 99 finished and 1 aborted.
      20:30:41,896 INFO [main] TestReporter - Total response time: 8322.416 seconds
      20:30:41,896 INFO [main] TestReporter - Average response time: 1.1377192071086808 seconds
      20:30:41,897 INFO [main] TestReporter - Average response time of joinLesson calls: 0.66801 seconds
 

t16
  In learnerTest1, 100 learner(s) attended, 97 finished and 3 aborted.
      20:32:40,692 INFO [main] TestReporter - Total response time: 8013.113 seconds
      20:32:40,692 INFO [main] TestReporter - Average response time: 1.0964850848385332 seconds
      20:32:40,692 INFO [main] TestReporter - Average response time of joinLesson calls: 0.37309 seconds

t11
  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:31:24,533 INFO [main] TestReporter - Total response time: 8075.746 seconds
      20:31:24,533 INFO [main] TestReporter - Average response time: 1.0994889040163376 seconds
      20:31:24,534 INFO [main] TestReporter - Average response time of joinLesson calls: 0.44866 seconds

t12

  In learnerTest1, 100 learner(s) attended, 100 finished and 0 aborted.
      20:31:32,624 INFO [main] TestReporter - Total response time: 8252.69 seconds
      20:31:32,625 INFO [main] TestReporter - Average response time: 1.1226622228268264 seconds
      20:31:32,625 INFO [main] TestReporter - Average response time of joinLesson calls: 0.53481 seconds

2300 concurrent users
t01
  In learnerTest1, 120 learner(s) attended, 117 finished and 3 aborted.
      22:54:51,644 INFO [main] TestReporter - Total response time: 25642.456 seconds
      22:54:51,645 INFO [main] TestReporter - Average response time: 2.91988795263038 seconds
      22:54:51,645 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1024500000000002 seconds
 

t04
  In learnerTest1, 120 learner(s) attended, 114 finished and 6 aborted.
      22:56:23,387 INFO [main] TestReporter - Total response time: 25085.538 seconds
      22:56:23,387 INFO [main] TestReporter - Average response time: 2.8977172230564863 seconds
      22:56:23,387 INFO [main] TestReporter - Average response time of joinLesson calls: 1.12795 seconds

t07
  In learnerTest1, 120 learner(s) attended, 116 finished and 4 aborted.
      22:55:51,568 INFO [main] TestReporter - Total response time: 25519.161 seconds
      22:55:51,568 INFO [main] TestReporter - Average response time: 2.916475542857143 seconds
      22:55:51,568 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1000083333333335 seconds
 

t09
  In learnerTest1, 120 learner(s) attended, 115 finished and 5 aborted.
      22:54:30,737 INFO [main] TestReporter - Total response time: 25201.892 seconds
      22:54:30,737 INFO [main] TestReporter - Average response time: 2.9077987769701164 seconds
      22:54:30,737 INFO [main] TestReporter - Average response time of joinLesson calls: 1.14185 seconds
 
t13
  In learnerTest1, 120 learner(s) attended, 114 finished and 6 aborted.
      22:54:45,454 INFO [main] TestReporter - Total response time: 25667.805 seconds
      22:54:45,454 INFO [main] TestReporter - Average response time: 2.9408575847846015 seconds
      22:54:45,454 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1643333333333332 seconds
   
t14
  In learnerTest1, 120 learner(s) attended, 120 finished and 0 aborted.
      22:54:02,699 INFO [main] TestReporter - Total response time: 25616.156 seconds
      22:54:02,699 INFO [main] TestReporter - Average response time: 2.906962778029959 seconds
      22:54:02,699 INFO [main] TestReporter - Average response time of joinLesson calls: 0.9566083333333334 seconds

t18
  In learnerTest1, 120 learner(s) attended, 118 finished and 2 aborted.
      22:55:03,071 INFO [main] TestReporter - Total response time: 25490.993 seconds
      22:55:03,071 INFO [main] TestReporter - Average response time: 2.9102629295581686 seconds
      22:55:03,071 INFO [main] TestReporter - Average response time of joinLesson calls: 0.9186583333333334 seconds

t19
  In learnerTest1, 120 learner(s) attended, 118 finished and 2 aborted.
      22:55:50,712 INFO [main] TestReporter - Total response time: 25822.199 seconds
      22:55:50,712 INFO [main] TestReporter - Average response time: 2.9474031503253055 seconds
      22:55:50,712 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1380083333333333 seconds

t20
  In learnerTest1, 120 learner(s) attended, 116 finished and 4 aborted.
      22:55:07,475 INFO [main] TestReporter - Total response time: 25277.797 seconds
      22:55:07,475 INFO [main] TestReporter - Average response time: 2.910512032239493 seconds
      22:55:07,475 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1123583333333333 seconds
  

t12
  In learnerTest1, 110 learner(s) attended, 104 finished and 6 aborted.
      22:56:02,276 INFO [main] TestReporter - Total response time: 23348.897 seconds
      22:56:02,276 INFO [main] TestReporter - Average response time: 2.905537207565953 seconds
      22:56:02,276 INFO [main] TestReporter - Average response time of joinLesson calls: 1.8806727272727273 seconds

t11
  In learnerTest1, 110 learner(s) attended, 108 finished and 2 aborted.
      22:54:53,410 INFO [main] TestReporter - Total response time: 23259.149 seconds
      22:54:53,410 INFO [main] TestReporter - Average response time: 2.897253238664674 seconds
      22:54:53,411 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1008272727272728 seconds

t17
  In learnerTest1, 110 learner(s) attended, 108 finished and 2 aborted.
      22:55:19,856 INFO [main] TestReporter - Total response time: 23322.534 seconds
      22:55:19,856 INFO [main] TestReporter - Average response time: 2.8946920690083155 seconds
      22:55:19,856 INFO [main] TestReporter - Average response time of joinLesson calls: 1.1100454545454546 seconds

t16
  In learnerTest1, 110 learner(s) attended, 109 finished and 1 aborted.
      22:53:50,544 INFO [main] TestReporter - Total response time: 21782.041 seconds
      22:53:50,545 INFO [main] TestReporter - Average response time: 2.7135967360159463 seconds
      22:53:50,545 INFO [main] TestReporter - Average response time of joinLesson calls: 0.1678090909090909 seconds

t15
  In learnerTest1, 110 learner(s) attended, 101 finished and 9 aborted.
      22:56:01,977 INFO [main] TestReporter - Total response time: 23001.312 seconds
      22:56:01,978 INFO [main] TestReporter - Average response time: 2.899446867515442 seconds
      22:56:01,978 INFO [main] TestReporter - Average response time of joinLesson calls: 1.9431454545454547 seconds
 

t03
  In learnerTest1, 110 learner(s) attended, 106 finished and 4 aborted.
      22:54:25,305 INFO [main] TestReporter - Total response time: 23148.566 seconds
      22:54:25,305 INFO [main] TestReporter - Average response time: 2.8831194420226676 seconds
      22:54:25,305 INFO [main] TestReporter - Average response time of joinLesson calls: 0.8830454545454546 seconds

t06
  In learnerTest1, 110 learner(s) attended, 108 finished and 2 aborted.
      22:55:09,091 INFO [main] TestReporter - Total response time: 22703.487 seconds
      22:55:09,092 INFO [main] TestReporter - Average response time: 2.8115773374613005 seconds
      22:55:09,092 INFO [main] TestReporter - Average response time of joinLesson calls: 0.6956454545454546 seconds

t05
  In learnerTest1, 110 learner(s) attended, 109 finished and 1 aborted.
      22:55:15,057 INFO [main] TestReporter - Total response time: 23067.75 seconds
      22:55:15,057 INFO [main] TestReporter - Average response time: 2.853859952987752 seconds
      22:55:15,057 INFO [main] TestReporter - Average response time of joinLesson calls: 0.6129909090909091 seconds
  
t08
  In learnerTest1, 110 learner(s) attended, 101 finished and 9 aborted.
      22:56:14,832 INFO [main] TestReporter - Total response time: 23235.493 seconds
      22:56:14,832 INFO [main] TestReporter - Average response time: 2.931553494827151 seconds
      22:56:14,833 INFO [main] TestReporter - Average response time of joinLesson calls: 1.0410000000000001 seconds

t02
  In learnerTest1, 110 learner(s) attended, 108 finished and 2 aborted.
      22:54:58,141 INFO [main] TestReporter - Total response time: 23352.715 seconds
      22:54:58,141 INFO [main] TestReporter - Average response time: 2.904566542288557 seconds
      22:54:58,141 INFO [main] TestReporter - Average response time of joinLesson calls: 0.8296363636363637 seconds

t10
  In learnerTest1, 110 learner(s) attended, 108 finished and 2 aborted.
      22:55:09,091 INFO [main] TestReporter - Total response time: 22703.487 seconds
      22:55:09,092 INFO [main] TestReporter - Average response time: 2.8115773374613005 seconds
      22:55:09,092 INFO [main] TestReporter - Average response time of joinLesson calls: 0.6956454545454546 seconds

Questions and discussion

See the LAMS Community Tech Discussion formus here.

  • No labels