Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f386919
implement performance testing
Ngha-Boris Oct 30, 2025
51c7c87
implement performance testing
Ngha-Boris Oct 30, 2025
753cd8b
added k6 imports to auth-test
Ngha-Boris Oct 30, 2025
eeba6ed
updated the test
Ngha-Boris Oct 30, 2025
c1bc0af
updated the test
Ngha-Boris Oct 30, 2025
c65b3db
generate key pair for the test
Ngha-Boris Nov 7, 2025
1c2333a
refsctored the token generation script and some test
Ngha-Boris Nov 10, 2025
e0dd7d9
switch tool to artillery for better results
Ngha-Boris Nov 13, 2025
29fd6da
created a documentation on how to run the test
Ngha-Boris Nov 13, 2025
3995d1f
created a documentation on how to run the test
Ngha-Boris Nov 13, 2025
2d4f93b
Merge branch '118-global-enhancement-and-optimization' of github.com:…
Ngha-Boris Nov 18, 2025
6a37008
removed the alg field
Ngha-Boris Nov 18, 2025
e5d18c8
created sub-directories for the script
Ngha-Boris Nov 18, 2025
e5a3dcf
refactor(tests): remove outdated performance test configurations and …
Ngha-Boris Nov 19, 2025
fde1604
add authenticated update flow to load, spike, and stress tests
Ngha-Boris Nov 20, 2025
548b971
fix: update token generation command in how-to-run.md and package.json
Ngha-Boris Nov 20, 2025
758c25b
fix: update file paths in token generation script and .gitignore
Ngha-Boris Nov 20, 2025
22f475a
Merge branch 'main' of github.com:adorsys/status-list-server into per…
Ngha-Boris Nov 20, 2025
5108012
fix: correct formatting and typos in how-to-run.md
Ngha-Boris Nov 20, 2025
767a117
feat: add prometheus for memory and cpu usage monitoring
Ngha-Boris Nov 24, 2025
f4cac19
fix: remove unused metrics dependency and correct spelling in how-to-…
Ngha-Boris Nov 25, 2025
072eb13
feat: add metrics configuration and Prometheus integration
Ngha-Boris Nov 28, 2025
5034b47
feat: add metrics configuration and Prometheus integration
Ngha-Boris Nov 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ APP_ENV=development # development | production
APP_SERVER__HOST=0.0.0.0
APP_SERVER__DOMAIN=statuslist.example.com
APP_SERVER__PORT=8000
APP_SERVER__ENABLE_METRICS=bool

# Certificate
APP_SERVER__CERT__EMAIL=support@example.com
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ flate2 = "1.1"
x509-parser = "0.18"
public-suffix = "0.1"
tokio-cron-scheduler = "0.15"
metrics-exporter-prometheus = "0.17"
metrics-process = "2.4"

[dependencies.redis]
version = "0.32"
Expand Down
4 changes: 4 additions & 0 deletions artillery-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
/scripts/ec-private-key.pem
/scripts/ec-public-key.jwk
/scripts/test-tokens.json
54 changes: 54 additions & 0 deletions artillery-tests/how-to-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
## How to run the performance test.

In this tests we have 4 tests which are
1. Load test
2. Stress test
3. Spike test
4. Athentication test

The main aim of each of these tests is to test the performance of the StatusList Server.

### Step 1:

Installed artillery.
```bash
npm install -g artillery
```
### Step 3:

The next step is to generate multiple test tokens that we can use during the performance test

```bash
# go to the test directory
cd artillery-tests
npm install

# run this
npm run generate-tokens
```
### Step 4:

Create an artillery account at [artillery.io](artillery.io). After creating the account, copy the access key, it should look like this (`artillery run test.yml --record --key YOUR_ACCESS_KEY`) on the welcome screen.

### Step 5:

Run the test.
```bash
artillery run your_test.yml --name "stress-test" --record --key YOUR_ACCESS_KEY
```

## Memory and CPU usage

Go to `localhost:9090` to access the prometheus dashboard. After that, search for the memory or cpu usage

**Memory usage**:
```text
process_resident_memory_bytes{job="rust_app"} / 1024 / 1024
```

**CPU usage**:
```text
rate(process_cpu_seconds_total[30s]) * 100
```

Click on graph to see the graph of each.
Loading