https://github.com/tag1consulting/drupal-loadtest
Locust load test and support scripts for testing Drupal sites
https://github.com/tag1consulting/drupal-loadtest
i jmeter loadtest memcache
Last synced: 11 months ago
JSON representation
Locust load test and support scripts for testing Drupal sites
- Host: GitHub
- URL: https://github.com/tag1consulting/drupal-loadtest
- Owner: tag1consulting
- License: bsd-3-clause
- Created: 2014-06-01T18:31:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T14:47:34.000Z (almost 6 years ago)
- Last Synced: 2025-04-12T17:13:09.490Z (11 months ago)
- Topics: i, jmeter, loadtest, memcache
- Language: Shell
- Homepage:
- Size: 372 KB
- Stars: 16
- Watchers: 8
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Drupal Loadtest
===============
Locust load test and support scripts for testing Drupal sites.
This locust test plan and scripts are used to test out the [Drupal Memcache module](https://drupal.org/project/memcache).
Assumptions
-----------
These scripts assume:
1. A Drupal installation -- webroot and database.
2. [Locust](http://locust.io/) installed
Running Tests
-------------
There are two scripts in the scripts/ directory: `preptest.sh` and `runtest.sh`.
The `preptest.sh` script only needs to be run once per-VM. The VM should already have a Drupal webroot setup. The script will install the devel and memcache modules (there's a configurable setting for which memcache module version to install), and then use drush devel_generate calls to generate content -- the amount of content is also configurable.
In addition, `preptest.sh` prepares the site for tests by populating it with content and configuring some settings (memcache module, user logins, etc.).
Once that is complete, it will create a database dump in /root so that the same database can be reloaded for subsequent tests.
The `runtest.sh` script restarts services (mysqld, httpd, memcached) to ensure consistency between tests. Then it runs the locust load test, copies test output data to the webroot, and outputs memcached stats from the test run into a summary report.
`runtest.sh` requires one argument, a tag which will be appended to the output directory as a test identifier.