tunapanda / provision

System for provisioning a new virtual machine with Tunapanda Edubuntu
7 stars 12 forks source link

Vidtest stress tester with anti-caching filenames #46

Closed usernamenumber closed 9 years ago

usernamenumber commented 9 years ago

This creates a role that sets up a /vidtest location on the main web server. At this location a short video is played on a loop. Each time the page is loaded, a random number is incorporated into the filename (stripped out by nginx when the request is processed) so that browsers should (though I haven't looked at the network traffic to confirm it) always get it from the server, never a local cache since the filenames never (well, rarely) match between page loads.

This can be used to load-test the server's video streaming capabilities.

usernamenumber commented 9 years ago

@devalih: Any chance you could confirm that this works for you (just add vidtest__enabled: true to your localconfig.yml) and then see how many people you can get viewing the page at once? (assuming you have a cubietruck by now)

Ar2000jp commented 9 years ago

Tested in an Ubuntu 14.04 VM (same as cubie). Working as expected. Checked with Firebug. The cubie is at my place, and it's busy with the port, so we can't test this right now.

usernamenumber commented 9 years ago

I've tested it on my cubie. Had five clients playing the video at once with no playback problems. If it looks OK to you, I'll go ahead and merge this branch when I wake up for our meeting. :) On Mar 8, 2015 4:12 AM, "Ahmad Draidi" notifications@github.com wrote:

Tested in an Ubuntu 14.04 VM (same as cubie). Working as expected. Checked with Firebug. The cubie is at my place, and it's busy with the port, so we can't test this right now.

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/provision/pull/46#issuecomment-77738366.

Ar2000jp commented 9 years ago

Everything looks OK to me. Please go ahead and merge it.