Project

Profile

Help

Performance Test Plan » History » Sprint/Milestone 2

bmbouter, 11/07/2017 11:20 PM

1 1 bmbouter
# Performance Test Plan
2
3 2 bmbouter
## Overview
4
5
Overall this idea is inspired by reports like [these](https://people.apache.org/\~mikemccand/lucenebench/index.html) for the Lucene project.
6
7
## Idea
8
9 1 bmbouter
Add performance tests to pulp-smash in a specific Python module. They will not be run by default. They will only if the specific performance module is run. The runtime measurement will be built into these tests and will be reported in seconds.
10
11
By default these tests will write their runtime output to stdout as a table
12
13
If given an environment variable (or option?), write the contents to a json file. The file will be keyed on the test name and its value is the runtime.
14
15
Create a Jenkins job which installs the version of Pulp under test, and runs the performance tests with the environment variable set. The install happens on one machine and all tests run on that one machine. If all tests do not complete the Jenkins job takes no further action and e-mail and reports in IRC that the performance test did not run.
16
17
Longitudinal raw data will be stored outside of Jenkins in a sqlite database. Assuming the tests completed, after the runtime json file is produced, the Jenkins job will download the sqlite file via scp. It will then add that run's data into the sqlite file. The scp will then be scp delivered back to its original location overwritting the file it downloaded.
18
19
Using the updated sqlite database, one summarized timeseries chart will be produced using matplotlib for each test in the sqlite database. These will do a summarization (see statistics below) to consolidate several points into one. These charts will be SCP'd to a web accessible filesystem to be viewed by the community.
20
21
The sqlite database will have a table for Annotations which will allow matplotlib to annotate data points with information about changes in performance or release information.
22
23
### Controlling for External Factors over Time
24
25
Add things here...
26
27
### The Tests
28
29
Each test will live on its own page and at the top will have a simple description of the test does. The graph will be below the description, and the annotations are at the bottom. Here is [an example](https://people.apache.org/\~mikemccand/lucenebench/AndMedOrHighHigh.html) (minus the description)
30
31
### RPM Tests
32
33
Fresh sync only of Fedora 21 w/ lazy off from http://archive.linux.duke.edu/fedora/pub/fedora/linux/releases/21/Everything/x86_64/os/
34
35
Re-sync only w/ lazy off http://archive.linux.duke.edu/fedora/pub/fedora/linux/releases/21/Everything/x86_64/os/
36
37
Fresh sync only of Fedora 21 w/ lazy on from http://archive.linux.duke.edu/fedora/pub/fedora/linux/releases/21/Everything/x86_64/os/
38
39
Re-sync only w/ lazy on http://archive.linux.duke.edu/fedora/pub/fedora/linux/releases/21/Everything/x86_64/os/
40
41
Uploading of 100 RPMs with Pulp's httpd config defaults
42
43
Copy of all rpms from Fedora 21 repo \^ one repo to an empty repo without depsolve
44
45
Copy of a limited set of rpms from Fedora 21 repo \^ to an empty repo with depsolve
46
47
Fetch all rpm ids of a large repo. Katello tries to fetch all ids and if that doesn't respond within 2 minutes we fetch in 500 chunks
48
49
Related test would be to take the same large repository and create 100-200 copies of that repository (thus creating a lot of related links among the content in Mongo) and do the same fetches
50
51
Fetch all errata ids of a repo (May need to sync RHEL or EPEL for this), same logic as rpm ids
52
53
After fetching all the errata ids of a repo, fetch all the errata in chunks of 500 by chunks of 500 ids
54
55
After fetching all the rpms ids of a repo, fetch all the errata in chunks of 500 by chunks of 500ids
56
57
Search performance using a simple Criteria filter
58
59
Fresh publish runtime of a Fedora 21 repo
60
61
Incremental (second) publish runtime of the Fedora 21 repo with no changes
62
63
Incremental (second) publish runtime of the Fedora 21 repo after uploading 20 new rpms.