Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    In this series of tests, we will be testing against different sized courses with different ratios. There are spikes in response times in production and one possibility may be that the few very large courses may be the reason. In this initial test, we ran it for 3 hours, with a small course vs large course on a 20:1 ratio. The large course used is BerkeleyX/ColWri2.2x/1T2014 (~25,000 threads, 30,000 comments) , while the small course is SMES/ASLCx/1T2015 (1700 Threads, 3047 comments). We can see that there are spikes in the response times. There have been many 500 responses from the large course so for the next test, the data will be refreshedwhich needs to be addressed. There were many unexpected 500 errors during this test. Upon further investigation, it was found that there was a memory issue due to missing indexes.

Expand
titleInitial mixed course test

Course Sizereqs#failsAvgMinMaxMedianreq/s95%
LargeGET_comment_list1060(0.00%)864263468068002700
 GET_thread60530(0.00%)21315612712000.3280
 GET_thread_list2928240(7.58%)1012175546510000.21800
 PATCH_comment1060(0.00%)1017305473879002700
 PATCH_thread813(3.57%)681167408342002000
SmallGET_comment_list30540(0.00%)24714314842100.2550
 GET_thread1834991(0.00%)1870624718028.1250
 GET_thread_list9748821(0.02%)501141668542012.71100
 PATCH_comment30541(0.03%)36817343453300.1750
 PATCH_thread330543(1.28%)28714025842500.2570

The chart below is the SMES/ASLCx/1T2015 (1700 Threads, 3047 comments) loadtest by itself for reference. These numbers are not comparable since the test in the chart below was at 10 users vs 20 users in the above test.

Namereqs#failsAvgMinMaxMedianreq/s95%
GETGET_comment_list3240(0.00%)22113910361900.1460
GETGET_thread204850(0.00%)168124207917012.7220
GETGET_thread_list109190(0.00%)46113216774505.6840
PATCHPATCH_comment3250(0.00%)34817613543000.1720
PATCHPATCH_thread3563(0.84%)2721348952300.2500

Addressing the 500s:

 

...

  Although only present on the larger courses, a significant amount of 500s were being returned. A solution has been proposed to include an index to account for this but for now in order to continue the load tests, the offending parameters "last_activity_at" and "asc" will be removed from out random selection. This also means that our thread retrieval for PATCHing (and DELETEing which has been disabled) will be less random, but sufficiently random. By removing these parameters, we hope to get rid of these 500s and see a performance improvement for large and small courses.

Test reruns:

 

NEXT STEPS:

Address the 500s

...