Skip to end of banner
Go to start of banner

POST /inventory-hierarchy/items-and-holdings report

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 27 Next »

In Progress

In Progress

In Progress

In Progress

In Progress

In Progress

IN PROGRESS

PERF-120 - Getting issue details... STATUS

Goals:

  • 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 dependency 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 instance) - most used module will be mod-authtoken, otherwise in (see test 4) that will be mod inventory-storage. Same for increasing number of instances per request.
  4. DB CPU usage reach it maximum at 8 users test
  5.  Fast response for most high load test (test 4). To extract instance contains > 300 holdings it takes (75 percentile) 373 ms. what means that 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";

"mod-authtoken-2.5.1".


RDS Data amount:

Precondition, if database free memory is less than 2000 MB, DB instance should be restarted. 

Holdings per instanceinstance amount
>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)5
41301300
513050>1
683050>1
7190(adding 10 instance to request each loop)>1


Results

Summary:

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


Test 1:


RequestsTotalOKReq/sMin50th pct75th pct95th pct99th pct
[POST] /inventory-hierarchy/items-and-holdings365303653020.2940.0330.0400.0430.0570.101


Resource usage:



Most used modules: 

  • Mod Authtoken;
  • Okapi;
  • Mod-Inventory Storage.


RDS resource usage:


RDS memory usage


As you can see, all resources shows stable behavior. During whole test Memory and CPU usage hasn't spikes or anomalies. No slow queries was found.


Test 2


RequestsTotalOKReq/sMin50th pct75th pct95th pct99th pct
[POST] /inventory-hierarchy/items-and-holdings623386233834.6310.0320.0420.0470.0650.115


Resources



most used modules:

  • mod autotoken
  • okapi 
  • mod inventory storage




RDS memory usage

Comment: As you can see, 75 percentile response time for first and second test are almost the same (43ms VS 47ms) while request total number almost twice higher. That cases almost twice higher CPU usage on mod-autotoken.



Test 3


RequestsTotalOKReq/sMin50th pct75th pct95th pct99th pct
[POST] /inventory-hierarchy/items-and-holdings263626361.4640.0440.6650.9841.2311.367


Resources


Most used module - Mod-inventory storage;




RDS memory usage

Test 4:

RequestsTotalOKReq/sMin50th pct75th pct95th pct99th pct
[POST] /inventory-hierarchy/items-and-holdings646164613.5890.1800.2300.3730.4160.509



Resources

RDS CPU usage


RDS memory usage






Most used modules:

  • mod-inventory storage
  • okapi
  • mod-authtoken


Test 5


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


As you can see, there is a little higher response time at the beginning of the test than at the end of it. During that time (5 minutes) 2000 http requests was executed each request contains 50 instance id's. That mean that using this endpoint we can complete 1000000 instances id's in 5 minutes.



As you can see none of modules are overloaded or has unexpected spikes.

Same situation for services memory usage



RDS:


Using 50 instances per request RDS CPU usage reached ~20%. 

Memory usage didn't show much usage 

Test 6



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


Resources



Most used modules:

  • mod-inventory storage
  • okapi
  • mod-authtoken





Test 7 

Note: maximum instances per request reached in this test - 5325 instances in one request. 


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





As you can see even with capacity test, resource usage show steady usage, without spikes and anomalies.  





  • No labels