> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/health/v2.1/design/architecture/low-level-design/performance-and-api-benchmarking/worker-registry-service-performance-testing-and-benchmarking-report.md).

# Worker Registry Service - Performance Testing & Benchmarking Report

### 1. Document Information

<table><thead><tr><th width="234.4609375">Field</th><th>Details</th></tr></thead><tbody><tr><td>Product</td><td>DIGIT HCM</td></tr><tr><td>Service under test</td><td>Worker Registry (worker-registry), namespace "health"</td></tr><tr><td>Endpoints under test</td><td>POST /worker/v1/_search</td></tr><tr><td>Container image</td><td>egovio/worker-registry:master-b912a1c</td></tr><tr><td>Environment</td><td>unified-dev (AWS EKS), tenant "dev"</td></tr><tr><td>Test date</td><td>18 August 2026</td></tr><tr><td>Purpose</td><td>Establish how many concurrent requests a single pod absorbs before it rejects them, and how latency behaves up to that point</td></tr><tr><td>Prepared By</td><td>HCM Engineering Team</td></tr><tr><td>Release</td><td>HCM v2.1</td></tr></tbody></table>

Metric definitions, the test method and a glossary of terms are in the Common Reference document. This report carries only this service's measurements.

### 2. Test Environment

#### 2.1 Worker Registry pod configuration

<table><thead><tr><th width="274.1484375">Component</th><th>Configuration</th></tr></thead><tbody><tr><td>Cloud provider / orchestration</td><td>AWS, Amazon EKS (unified-dev cluster)</td></tr><tr><td>Namespace</td><td>health</td></tr><tr><td>Replicas</td><td>2</td></tr><tr><td>Horizontal Pod Autoscaler</td><td>Not configured</td></tr><tr><td>CPU limit / request</td><td>300m / 50m</td></tr><tr><td>Memory limit / request</td><td>512Mi / 368Mi</td></tr><tr><td>JVM heap</td><td>-Xmx256m -Xms256m</td></tr><tr><td>Tomcat max threads</td><td>10</td></tr><tr><td>Tomcat max connections</td><td>500</td></tr><tr><td>DB pool (Hikari maximum-pool-size)</td><td>2</td></tr><tr><td>DB pool initial size</td><td>1</td></tr><tr><td>Database</td><td>PostgreSQL (shared unified-dev instance)</td></tr><tr><td>Liveness / readiness probe</td><td>GET /worker/health — failureThreshold 5, period 60s / 30s, timeout 3s</td></tr></tbody></table>

#### 2.2 Dependent service configurations

Worker Registry is wired to call the services below. Their own pod sizing is listed because a downstream limit constrains this service regardless of how it is configured itself. All values were read from the live cluster.

| Service (namespace)        | Pods | CPU  | Memory | JVM heap  |
| -------------------------- | ---- | ---- | ------ | --------- |
| egov-enc-service (egov)    | 0    | —    | 512Mi  | -Xmx256m  |
| egov-idgen (egov)          | 2    | 500m | 1Gi    | -Xmx1024m |
| health-individual (health) | 2    | 300m | 512Mi  | -Xmx384m  |
| mdms-v2 (egov)             | 1    | 300m | 2Gi    | -Xmx1536m |

Same for every service above: Tomcat max threads 10, Tomcat max connections 500, Hikari pool 2.

### 3. Test Scope

<table><thead><tr><th width="217.09765625">Endpoint</th><th width="132.05859375">Type</th><th>Behaviour</th></tr></thead><tbody><tr><td>POST /worker/v1/_search</td><td>Synchronous</td><td>Response returns inline. Figures measure full request cost.</td></tr></tbody></table>

### 4. Test Data

<table><thead><tr><th width="269.890625">Item</th><th>Value</th></tr></thead><tbody><tr><td>Tenant</td><td>dev</td></tr><tr><td>Search payload</td><td>Body filter {"workerSearch":{"tenantId":"&#x3C;tenant>","id":["&#x3C;workerId>"]}}</td></tr><tr><td>Search distinct data rows</td><td>1, recycled across all threads</td></tr><tr><td>Search response size</td><td>830 bytes per request</td></tr><tr><td>Auth token</td><td>One pre-fetched token shared by every thread</td></tr><tr><td>Dataset the search ran against</td><td>1 row returned (lookup by id); this endpoint does not report a total</td></tr></tbody></table>

Row counts were read from this service's own search API on 20 August, two days after the runs, so they include rows the create tests inserted. A search that matches one row is an indexed lookup and its figures should not be read as the cost of a broad search; one that matches thousands is scanning and filtering real volume.

### 5. Load Profile

<table><thead><tr><th width="285.828125">Endpoint</th><th>Concurrency levels tested</th></tr></thead><tbody><tr><td>Search</td><td>10, 100, 500, 750, 900, 1,000</td></tr></tbody></table>

One request per thread, so samples equal threads on every row. All threads for a level are released simultaneously; observed thread-start span was 0.0 to 0.3 seconds.

### 6. Benchmark Metrics

Latency is shown in seconds, measured client-side, computed from the raw sample logs.

Each endpoint was measured on its own. Only one endpoint carried load at any moment and only one concurrency level ran at a time, so these figures are not influenced by traffic to the service's other endpoints. Within a level, every request is concurrent: all threads are released together and each sends one request.

#### 6.1 Search

| Users | Result | p50    | p90    | p95    | p99    | Error % | Throughput |
| ----- | ------ | ------ | ------ | ------ | ------ | ------- | ---------- |
| 10    | Clean  | 1.22 s | 1.22 s | 1.23 s | 1.23 s | 0.00    | 8.2/s      |
| 100   | Clean  | 6.12 s | 7.68 s | 7.87 s | 7.88 s | 0.00    | 12.5/s     |
| 500   | Clean  | 21.3 s | 29.7 s | 30.8 s | 30.9 s | 0.00    | 16.1/s     |
| 750   | Clean  | 18.6 s | 26.3 s | 26.7 s | 27.1 s | 0.00    | 27.4/s     |
| 900   | Clean  | 17.4 s | 27.0 s | 27.5 s | 27.9 s | 0.00    | 32.0/s     |
| 1,000 | FAILED | 7.99 s | 10.3 s | 10.8 s | 11.1 s | 81.30   | 16.7/s     |

Latency and throughput are computed from successful requests only. A failed request still has a response time, so counting failures would make a failing level look faster and busier than a clean one. Error % is over all requests.

Throughput at each percentile — the rate achieved up to that point in the run. See the Common Reference document for how to read it.

| Percentile   | Latency | Requests completed | Elapsed | Throughput to that point |
| ------------ | ------- | ------------------ | ------- | ------------------------ |
| p50          | 17.4 s  | 450                | 17.4 s  | 25.8/s                   |
| p90          | 27.0 s  | 810                | 27.1 s  | 29.9/s                   |
| p95          | 27.5 s  | 855                | 27.6 s  | 31.0/s                   |
| p99          | 27.9 s  | 891                | 28.0 s  | 31.8/s                   |
| All requests | 28.1 s  | 900                | 28.1 s  | 32.0/s                   |

| Measure                          | Value                                         |
| -------------------------------- | --------------------------------------------- |
| Highest clean level              | 900 concurrent, 0 failures out of 900 samples |
| First failing level              | 1,000 concurrent, 81.30% error                |
| Peak throughput at a clean level | 32.0 req/s                                    |
| Fastest single request           | 0.31 s                                        |

#### 6.2 Failure detail

<table><thead><tr><th width="98.04296875">Endpoint</th><th width="93.93359375">Users</th><th width="92.35546875">Error %</th><th width="100.38671875">Failed</th><th>Failure classes</th></tr></thead><tbody><tr><td>Search</td><td>1,000</td><td>81.30</td><td>813</td><td>782 RemoteDisconnected, 31 IncompleteRead</td></tr></tbody></table>

HTTP codes are responses returned by the service. RemoteDisconnected, IncompleteRead and similar are connection-level failures, which the sample log cannot separate from a failure of the port-forward tunnel used to reach the pod.

### 7. Scalability Results

Pass means zero failed samples at that concurrency.

#### 7.1 Search

| Concurrency | Result                     | p95 (ms) | Throughput |
| ----------- | -------------------------- | -------- | ---------- |
| 10          | Pass                       | 1.23 s   | 8.2/s      |
| 100         | Pass                       | 7.87 s   | 12.5/s     |
| 500         | Pass                       | 30.8 s   | 16.1/s     |
| 750         | Pass                       | 26.7 s   | 27.4/s     |
| 900         | Pass — highest clean level | 27.5 s   | 32.0/s     |
| 1,000       | Fail — 81.30% error        | 10.8 s   | 16.7/s     |

### 8. Stress Test

<table><thead><tr><th width="318.18359375">Measure</th><th>Search</th></tr></thead><tbody><tr><td>Highest clean concurrency</td><td>900</td></tr><tr><td>First failing level</td><td>1,000 — 81.30%</td></tr><tr><td>p95 at highest clean level</td><td>27.5 s</td></tr><tr><td>Throughput at highest clean level</td><td>32.0/s</td></tr><tr><td>Failure class</td><td>Connection-level</td></tr></tbody></table>

These runs were executed between 09:38–12:38 UTC on 18 August 2026. The pod reports 0 restarts. The pod was ready on completion.

### 9. Notes on Data Validity

All latency, percentile, throughput and error-rate figures were computed directly from the raw sample logs produced by each run. Failure classes, counts and response bodies come from those same logs. Pod and dependent-service configuration was read from the live cluster. Request payloads, filters and paths come from the test plans and their data files.

These figures supersede any earlier reporting for this service. Earlier runs were executed against a different container build and, on the gateway route, blended the login call into the service figures.

### 10. Conclusion

| Result                             | Value                       |
| ---------------------------------- | --------------------------- |
| Search — highest clean concurrency | 900 (27.5s p95, 32.0 req/s) |
| Search — first failing level       | 1,000 at 81.30% error       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/health/v2.1/design/architecture/low-level-design/performance-and-api-benchmarking/worker-registry-service-performance-testing-and-benchmarking-report.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
