Resolve API
Performance testing of Resolve API
Approach
10 Million ID-FA Records were created, starting from id value as 1 to id value as 10,000,000. The script to create these records can be found here.
Test script
The test script allows you to adjust the number of records that are submitted in each Resolve Request. All the IDs that are sent in the Resolve request are randomly generated integers (values between 1 and 10,000,000).
This script is then submitted using Locust API requests, where we can specify the number of concurrent users (concurrent API invocations).
The test script can be found here. (TBD)
Readings before test
The following readings were recorded prior to starting the test.
POD | CPU Utilization | Memory Utilization |
---|---|---|
Mapper POD | 0.0225 cpu | 477 MB |
Postgres POD | 0.0080 cpu | 20 MB |
Test scenarios
8 concurrent users, 1000 requests per API, 1 second ramp up time per user
The following readings were taken 30 minutes after starting the test. The readings were taken while the test was still running.
POD | CPU Utilization | Memory Utilization |
---|---|---|
Mapper POD | 2 cpu | 546 MB |
Postgres POD | 0.25 cpu | 1.7 GB |
The Locust dashboard at the 30 minute showed the following readings
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252FYPRAB1phdTaJyXfV2WYe%252FDuringTest-8x1000-Locust-Dashboard.png%3Falt%3Dmedia%26token%3D126f23a2-711e-4b5c-bde8-5dbfff09de2c&width=768&dpr=4&quality=100&sign=42698723&sv=1)
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252Fo7ESZYx2XACVH9FShc99%252FDuringTest-8x1000-Locust-Charts.png%3Falt%3Dmedia%26token%3D467b8ec3-62f8-437a-8bbd-a4cfdc0d4bae&width=768&dpr=4&quality=100&sign=58d5ddf6&sv=1)
The CPU for the Mapper POD showed a 100% throttle at this stage
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252FLspMRyfJjINIohgNQiw7%252FDuringTest-8x1000-CPU-Throttle-MapperPOD.png%3Falt%3Dmedia%26token%3D4edf2b29-9279-4e33-96bd-a35736e2eed9&width=768&dpr=4&quality=100&sign=28e91259&sv=1)
4 concurrent users, 1000 requests per API, 1 second ramp up time per user
The following readings were taken 30 minutes after starting the test. The readings were taken while the test was still running.
POD | CPU Utilization | Memory Utilization |
---|---|---|
Mapper POD | 2 cpu | 546 MB |
Postgres POD | 0.225 cpu | 1.7 GB |
The Locust dashboard at the 30 minute showed the following readings
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252F9xWopeLBMTei8ptfeeVT%252FDuringTest-4x1000-Locust-Stats-2.png%3Falt%3Dmedia%26token%3D50b0b684-9152-42c6-8ed8-03a819c0c56e&width=768&dpr=4&quality=100&sign=512b0e&sv=1)
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252FfRrvj3zI5OVGlcej7geN%252FDuringTest-4x1000-Locust-Charts.png%3Falt%3Dmedia%26token%3Dcba35327-0c8f-4a59-a698-6c31ae5a230f&width=768&dpr=4&quality=100&sign=b33fa312&sv=1)
The CPU for the Mapper POD showed a 100% throttle at this stage
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252Fdq4h8zTbPJechokXANuh%252FDuringTest-4x1000-CPU-Throttle-MapperPOD.png%3Falt%3Dmedia%26token%3Dd441fd1b-3fb3-46d1-8c01-32c7b972d691&width=768&dpr=4&quality=100&sign=d0a168e9&sv=1)
4 concurrent users, 2000 requests per API, 1 second ramp up time per user
The following readings were taken 30 minutes after starting the test. The readings were taken while the test was still running.
POD | CPU Utilization | Memory Utilization |
---|---|---|
Mapper POD | 2 cpu | 590 MB |
Postgres POD | 0.235 cpu | 1.7 GB |
The Locust dashboard at the 30 minute showed the following readings
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252FMmOmkybMhQsWZUTVas3T%252FDuringTest-4x2000-Locust-Stats-2.png%3Falt%3Dmedia%26token%3Df1a0f494-2cc4-471c-a212-df01fb54186c&width=768&dpr=4&quality=100&sign=9b5cce3a&sv=1)
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252FYB2bBqgkVp0DiAzsa9Og%252FDuringTest-4x2000-Locust-Charts.png%3Falt%3Dmedia%26token%3D92dcab83-e913-418a-bab3-ed62e105817b&width=768&dpr=4&quality=100&sign=fe186484&sv=1)
The CPU for the Mapper POD showed a 100% throttle at this stage
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2F3034178245-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FJZcdob2emEcLMvLyIxqT%252Fuploads%252FebZjBI11m3VpV8wHeKEN%252FDuringTest-4x2000-CPU-Throttle-MapperPOD.png%3Falt%3Dmedia%26token%3D67a73dc0-51fd-4caf-a1d5-a749cf8eb874&width=768&dpr=4&quality=100&sign=a2ff2bf1&sv=1)
The table below summarizes these measurements
Last updated