# Scalability

To demonstrate the scalability of the platform, see below the output of a simple load test with wrk.

{% hint style="info" %}
Load test run with 1000 connections for a duration of 10 minutes
{% endhint %}

```bash
wrk -t50 -c1000 -d600s -s wrk.lua "http://localhost:3090/v1/api?csrf=..."
```

> Each request validates the Authorization header, verifies that the user have access to perform a query on the given datasource, fetches the datasource metadata from Redis Cache or the database, if the cache is invalid, constructs and executes the SQL query against the MySQL database and returns the results.

![wrk.lua script file content](/files/-Mb9VVr-vg8TJprDCvtU)

![Docker Stats after before the run](/files/-MbDV44ifZJMP3Pl7NAx)

![wrk output](/files/-MbDUj26PHTBQrQxtULq)

![Docker Stats after the run](/files/-MbDUYCpbASZhtdpwIRQ)

![Docker Resources - 6 CPU - 4GB RAM](/files/-MbDWwOAo7GQWWPAk4Fe)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://next-docs.cloudio.io/scalability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
