BF-970 Sidecar Performance Testing

BF-970 Sidecar Performance Testing

Purpose

Evaluate sidecar performance under different types of loads:

  1. Ingress requests with user JWT token

  2. Ingress requests with system JWT token

  3. Ingress requests with user and system JWT tokens

  4. Unauthorized egress requests

Approach

Testing Framework

https://gatling.io/

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:

  1. mgr-applications

  2. mgr-tenant-entitlements

  3. mgr-tenants

  4. AWS SSM service calls

  • Ingress requests are simulated using bootstrap information for mod-inventory-storage-28.1.0-SNAPSHOT.1064

  • Egress requests are simulated using bootstrap information for mod-bulk-operations-2.2.0-SNAPSHOT.348

  • MODULE_URL points to the mock-server

  • SIDECAR_FORWARD_UNKNOWN_REQUESTS_DESTINATION points to the mock-server

  • all locations for egress modules point to the mock-server