...
The table contains the main testing metrics. The duration of all of the tests was about 30 minutes. All test finished successfully.
NAME | TTL TOTAL REQ, COUNTERRORS | MIN (sec) | MEDIAN (sec) | PCT95 (sec) | SQL Query Execution Time (sec) | |
Test 1 | 4500 | 6,1 | 6,4 | 6,9 | 6,2 | |
Test 2 | 450 | 0 | 6 | 6,4 | 6,9 | 6,2 |
Test 3 | 450 | 0 | 6,5 | 6,9 | 7,4 | 6,6 |
Test 4 | 4500 | 6,3 | 6,7 | 7,2 | 6,58 |
Resource Utilizations
...
During Test 1- Test 4 the average number of database connections was about 400.
...
Database Load
Database load during Test 1
...
As we can see from the graphs Database load sliced by Waits(Green columns) and sliced by SQL(light green), the most consuming is the SQL query given in the Full SQL query section. The average duration of these SQL queries is about 6,5 seconds for 4 tests. The detailed analysis of this query is in the additional section.
Database load during Test 1 .
...
Expand | ||
---|---|---|
| ||
|
...
MARC Search Query API MARC Search Query API
Long SQL query analysis
Expand | ||
---|---|---|
| ||
select "alias_94280021"."external_id", "alias_100265999".count |
...
9 m6i.2xlarge EC2 instances located in US East (N. Virginia)us-east-1
1 instance writer of db.r6.xlarge database instances, [db.r6g.xlarge, vCPU 4 RAM 32 GB]MSK ptf-kakfa-3 instances, [db.r6g.xlarge, vCPU 4 RAM 32 GB]
Number of database records
Data for testing were prepared in scope
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
fs09000000_mod_inventory_storage.instance =22779941
fs09000000_mod_source_record_storage.records_lb = 29369636
fs09000000_mod_source_record_storage.marc_indexers = 2587420890
MSK tenant [ kafka configurations]
4 m5.2xlarge brokers in 2 zonesApache Kafka version 2.8.0
EBS storage volume per broker 300 GiB
auto.create.topics.enable=true
log.retention.minutes=480default.replication.factor=3.retention.minutes=480
default.replication.factor=3
mod-source-record-storage: Kafka consolidated topic = enabled; Partitions = 50.
Modules memory and CPU parameters
...
Thread properties: 2 Virtual users with a Ramp-Up period of 1 second were running 225 loops.
Request parameters for:
Test 1.
Code Block |
---|
POST /source-storage/stream/marc-record-identifiers
{
"leaderSearchExpression": "p_05 = 'd'"
} |
Test 2 and Test 3.
Code Block |
---|
POST /source-storage/stream/marc-record-identifiers { "leaderSearchExpression": "p_05 = 'd'" "suppressFromDiscovery": true, "deleted": true } |
Test 4
Code Block |
---|
POST /source-storage/stream/marc-record-identifiers { "leaderSearchExpression": "p_05 = 'd'", "fieldsSearchExpression": "005.date in '20141106-20231108'", "suppressFromDiscovery": true, "deleted": true } |