GithubHelp home page GithubHelp logo

tag1consulting / drupal-loadtest Goto Github PK

View Code? Open in Web Editor NEW
16.0 9.0 4.0 381 KB

Locust load test and support scripts for testing Drupal sites

License: BSD 3-Clause "New" or "Revised" License

Shell 71.38% Python 26.91% PHP 1.71%
memcache loadtest jmeter i

drupal-loadtest's Introduction

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.

Assumptions

These scripts assume:

  1. A Drupal installation -- webroot and database.
  2. Locust 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.

drupal-loadtest's People

Contributors

jeffsheltren avatar jeremyandrews avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.