Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Added a `sort` and `order` parameter to `/api/search` endpoint that supports date and numeric field sorting. If only order is specified, created date is used. String fields are not currently supported.
- Added a new `/api/deleteindex` admin endpoint that will queue an action to delete an Elasticsearch index (usually prior to a reindex).
- JMeter testing suite.

## 1.15.1 - 2021-03-12

Expand Down
25 changes: 25 additions & 0 deletions scripts/jmeter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# JMeter Clowder Tests

This directory includes a simple [JMeter](https://jmeter.apache.org/) test plan to exercise the service and API.
JMeter includes both a GUI to create and run the test plans as well as a CLI. When stress testing, use the CLI.

Before running the test you will need to set `X-API-KEY` to your own Clowder API key. Change the web server protocol,
server name, and port, in HTTP Request Defaults and the file path `File.path` you want to use to test in `Upload file`.

You can set the concurrency by changing the number of threads `ThreadGroup.num_threads` in Scenario 1.
This scenario includes the following steps:
- Create dataset
- Upload file to dataset
- Create folder
- Move file to folder
- Update file name
- Upload file metadata

There is a 1s pause between each call. Make that shorter or disable if stress testing.

To run the test from the command line use the following command:

`jmeter -n -t jmeter-clowder.jmx -l jmeter-out -e -o jmeter-out-html`

The file `jmeter-out` will include the status of each call.
The `jmeter-out-html` will include an html page with summaries and visualizations of that output.
Loading