Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Jira Legacy
serverSystem JiraJIRA
serverId01505d01-b853-3c2e-90f1-ee9b165564fc
keyPERF-120

...

  • Define overall performance of POST /inventory-hierarchy/items-and-holdings;
  • Find bottlenecks if possible;
  • Measure KPI's for different number of instances included in request;
  • Measure KPI's for different number of holdings attached per instance ID;


Overview

Mod-inventory-storage has a new API to gather all related instances' data, i.e., items and holdings, in one call in order to eliminate making 3 separate calls to get the data. The API also allows passing in x number of instance IDs to lookup. Since teams are now starting to use this API, it's important to understand the stability of the API with respect to the module's CPU and memory usage, and also the database usage.

Summary

  1. System shows stable work and quick responses in all test
  2. No memory leaks found
  3. There is a link between most used modules (see CPU) and test type. In case if it's extremely fast responses (for example for 5 holdings per instance and one user) - most used module will be mod-authtoken, otherwise (see test 4) that will be mod-inventory-storage. Same for increasing number of instances per request.
  4. DB CPU usage reaches maximum in 8-users test
  5. Fast response for most high load test (test 4). To extract an instance having 300+ holdings it takes 373 ms for 75th percentile. Therefore getting one holding with this endpoint takes 1.2 ms.
  6. No bottlenecks found. 


Version:

"okapi-3.1.2";
"mod-inventory-storage-19.4.0-SNAPSHOT.448";

...

Holdings per instanceNumber of instances
>07183552
>1

407467

>269890
>322241
>410201
>55635

>10

1060
>15516
>20331
>25240
>40

115

>100

23

>3007

Test Runs:

TestVirtual UsersDuration (min)Instance per requestHoldings per instance
1

1

3015
2

2

3015
31301 (adding instance to request each loop) max - 9645
41301300
513050>1
683050>1
7190(adding
10
5 instance to request each loop) max - 5325 >1


Results

Summary:

During test set we've measured  general performance of new endpoint.

...

RequestsTotalOKKO% KOReq/sMin50th pct75th pct95th pct99th pctMaxAverageLatency
[POST] /inventory-hierarchy/items-and-holdings10651065000.1970.0795.1617.6609.37210.01912.4395.0518.414


Instances countResponse time
10135 ms
100259 ms
5001.07 s
10001.77 s
20003.37 s
30006.83 s
40007.52 s
50009.21 s



Mod-Inventory-storage CPU usage


Image Added



Mod Inventory-storage Mem. Usage


Image Added


RDS CPU usage

RDS Memory usage

...