Skip to content

hemna/openstack-loadtest

Repository files navigation

openstack_loadtest

https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336

Python project that uses the Python Locust library to create load tests for OpenStack services.

Requirements

Python 3.6+.

Note

Because Python 2.7 supports ended January 1, 2020, new projects should consider supporting Python 3 only, which is simpler than trying to support both. As a result, support for Python 2.7 in this example project has been dropped.

Dependencies

Dependencies are defined in:

  • requirements.in
  • requirements.txt
  • dev-requirements.in
  • dev-requirements.txt

Usage

First install the project with pip

Make sure you have a ~/.config/openstack/clouds.yaml configured to point to your openstack deployment.

Then set the OS_CLOUD env var to use an entry in your ~/.config/openstack/clouds.yaml

  • export OS_CLOUD=devstack

Run the load test for fetching the cinder volumes detail test

  • locust -f src/openstack_loadtest/cinder.py CinderUser --headless --tags volumes_info -u10 -t 30s

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages