Scalability and Load Testing - Week 8

Events happening in the community are now at Drupal community events on www.drupal.org.
hadsie's picture

In the past week and a bit I've been mostly working on improving the loadtest module code so that it's more robust, organized and integrates more cleanly with simpletest. My original approach to add timing was to add a few lines of code to the drupal_test_case.php and drupal_unit_test.php that would call a timing function in loadtest. After rethinking the problem it seemed like a lot cleaner of a solution to just inherit the DrupalTestCase class in a DrupalLoadTest class that over road the 'run' method. Now, any tests that are designed for load testing inherit from the DrupalLoadTest class. They will still work identically to the DrupalTestCase tests, however, timing information will be added to the output and details of the test will be recorded. Any test can do both unit testing and load testing simultaneously if desired.

Right now I'm putting the final touches on this module, including adding a couple of load tests that can be run out of the box, nice formatting of the results output, and more testing. I hope to release the module next week.

I'm currently trying to plan out exactly what to cover for the last month of the summer of code so that I can make the most of it and get as much done as possible. Some of the ideas include:
* High-availability and load balancing Drupal setup. This would include documenting how to do it, possibly patches to core if needed, and possibly a module to make it even simpler to setup for site admins. This will get a lot more into the apache and mysql sides of things too, and could be more involved than one month will allow.
* Adding to the devel generate module so that there is more options to generate test data. Some ideas here include automated cck and views generation, as well as some other popular modules such as event and pathauto. Actually, being able to automatically generate views might be very useful to load testing a site or change to a site.
* data generation profiles for automatically generating data for different kinds of sites that someone might want to test, such as 'small', 'medium', and 'large'.

SoC 2007

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week