BF-970 Sidecar Performance Testing
- 1 Purpose
- 2 Approach
- 2.1 Testing Framework
- 2.2 folio-module-sidecar
- 2.3 keycloak
- 2.4 mock-server
- 3 Performance test configuration
- 4 Performance test results
- 4.1 50 ms delay / 0.1 vCPU / 1 Event Loop / 5 Thread workers
- 4.1.1 Ingress requests
- 4.1.2 Ingress requests with module token
- 4.1.3 Egress requests
- 4.2 50 ms delay / 0.25 vCPU / 1 Event Loop / 5 Thread workers
- 4.2.1 Ingress requests
- 4.2.2 Ingress requests with system token
- 4.2.3 Egress requests
- 4.3 50 ms delay / 0.5 vCPU / 1 Event Loop / 5 Thread workers
- 4.3.1 Ingress requests
- 4.3.2 Ingress requests with system token
- 4.3.3 Egress requests
- 4.1 50 ms delay / 0.1 vCPU / 1 Event Loop / 5 Thread workers
Purpose
Evaluate sidecar performance under different types of loads:
Ingress requests with user JWT token
Ingress requests with system JWT token
Ingress requests with user and system JWT tokens
Unauthorized egress requests
Approach
Testing Framework
Automatic token issuing with specified delay for each pair of username + password in ingress-requests.file
Ingress and egress requests file is formed based on available user capabilities and has the following format
{"username":"nENjhUV6_vDJptu3f30DB","password":"yAW0AUyvFOZuUGOdICel","method":"POST","url":"/inventory-hierarchy/items-and-holdings"}
{"username":"giLofMi8_QmkHFrjEFKXd","password":"iYJWfBVJ5bit3v6MZCd1","method":"DELETE","url":"/identifier-types/{id}"}
{"username":"N1lgC0Th_XL6DhYuVJqJA","password":"W9vpGUOwddz2oE3nwtIk","method":"GET","url":"/item-storage/items"}Each test can be configured using a profile in .conf
ingress-10u-300s-50s {
baseUrl = "http://localhost:19021"
tracingEnabled = true
rampUpUsers = 10
rampUpDuration = 1s
testDuration = 300s
tokenRefreshInterval = 60s
config {
type = "ingress"
includeUserJwt = true
includeSystemJwt = true
requestsFile = "igress-requests.jsonl"
}
}Before each test to warm-up sidecar, a load is given for 1 minute for 10 simultaneous users
folio-module-sidecar
A sidecar image with maximum isolation from other system services, all outside requests are mocked using Wiremock, including:
mgr-applications
mgr-tenant-entitlements
mgr-tenants
AWS SSM service calls
Ingress requests are simulated using bootstrap information for
mod-inventory-storage-28.1.0-SNAPSHOT.1064Egress requests are simulated using bootstrap information for
mod-bulk-operations-2.2.0-SNAPSHOT.348
MODULE_URL points to the
mock-serverSIDECAR_FORWARD_UNKNOWN_REQUESTS_DESTINATION points to the
mock-serverall locations for egress modules point to the
mock-server