Bots Tests on oTree

256 views
Skip to first unread message

Jindi Huang

unread,
Mar 26, 2021, 3:55:29 AM3/26/21
to oTree help & discussion
Dear all,

I am trying to run a stress test on Heroku and I have set up bots. The pages could be auto-submitted now on Heroku, but I need to click the link multiple times to test the situation of multiple players (it is a tedious work if I want to test the server load of 100 participants). Meanwhile, when I open the link multiple times on the same machine, "waiting for available socket" will be shown on the left bottom of the page. It seems that "Chromium-based browsers like Chrome allow no more than six connections to be in use at the same time". I am not sure whether this would cause problems to the stress test. Is there any possibility that I could easier have multiple players play automatically with browser bots?

Thank you so much for your help!

Best wishes,
Jindi

Chris @ oTree

unread,
Mar 26, 2021, 4:43:12 AM3/26/21
to oTree help & discussion
Yes I have read about limitations like that also (a certain number of connections as a limit). Probably at a certain number of bots, Chrome might become the bottleneck limiting your bot performance. If you want to be thorough maybe you can find a way to launch bots from many computers at the same time. Though I think even testing with a lower number of bots like 20 participants gives you good info because it shows you how many page loads per second your server can handle. Even though you have 100 participants I guess they probably won't be clicking through at maximum speed like a bot does.
Reply all
Reply to author
Forward
0 new messages