# Compte rendu tests de charge API management
Notes sur l'infrastructure:
- Déploiement des pods sur le noeud "reserved-metallica" pour isolation
- API version 0.0.32, endpoints metrics activés par defaut
- BDD Postgresql loadée avec dump version 10 08 22, et enabled metrics -
Nombre de contacts en base : 2 000 000
- Instance influx DB pour stockage métriques k6
- Instance Prometheus pour métriques API+BDD
- Job K6 pour lancement des tests, source des scripts : minio
- https://grafana-cocorico.dev.insee.io
## CheckAccreditation
* Tirs 1, 1 VU, Sleep=2s
V3 10h03 10h18, 20/09
V2 10h24 10h39
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 449 |448
| http_duration(med) | 4,3ms | 6,9ms |
| http_duration(95%) | 5,9ms | 10,0 ms |
* Tirs 2, 100 VU, Sleep=2s
V3 11h12 11h27, 20/09
V2 10h45 11h00
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 37513 |37504
| http_duration(med) | 2,4ms | 3,0ms |
| http_duration(95%) | 3,5ms | 4,3ms |
* Tirs 3, 200 VU, Sleep=2s
V3 11h28 11h43, 20/09
V2 10h24 10h39
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 74 995 |74 984
| http_duration(med) | 2,4ms | 2,8ms |
| http_duration(95%) | 3,3ms | 4,5ms |
* Tirs 4, 500 VU, Sleep=2s
V3 12h22 12h37, 20/09
V2 12h02 12h17
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 187387 |187305
| http_duration(med) | 2,5ms | 3,3ms |
| http_duration(95%) | 4,9ms | 5,9ms |
## Search Contacts
### Search Contact by IDEC
* Tirs 1, 1 VU, Sleep=10s
V3,12h23, 12h38 19/09
V2, 14h52, 15h08
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 90 |85
| http_duration(med) | 21,5ms | 683,2ms |
| http_duration(95%) | 73ms | 753,9ms |
* Tirs 2, 15 VU, Sleep=10s
V3,15h31, 15h46 19/09
V2, 15h08, 15h23
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 1138 |1060
| http_duration(med) | 4,7ms | 737,8ms |
| http_duration(95%) | 13,1ms | 919,2ms |
### Search Contact by IDUE
* Tirs 1, 1 VU, Sleep=10s
V3, 10h38 10h53, 19/09/22
V2, 10h55, 11h10
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 90 | 62
| http_duration(med) | 16,51ms | 4,38s |
| http_duration(95%) | 24,79ms | 5,12s |
* Tirs 2, 15 VU, Sleep=10s
V3, 11h45 12h00, 19/09/22
V2, 11h17, 11h32
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 1139 | 446
| http_duration(med) | 8,37ms | 16,19s |
| http_duration(95%) | 12,64ms | 22,96s |
### Search Contact by Mail
* Tirs 1, 1 VU, Sleep=10s
V3, 18h25 18h40 19/09/22
V2, 18h52 19h07
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 87 |81
| http_duration(med) | 398,3 ms | 1,13s |
| http_duration(95%) | 427,8 ms | 1,17s |
* Tirs 2 15 VU, Sleep=10s
V3,19h29 19h44 19/09/22
V2, 19h13 19h27
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 1093 |1017
| http_duration(med) | 393,0 ms | 1,21s |
| http_duration(95%) | 673,9 ms | 1,27s |
### Search Contact by Campaign (source x year x period)
* Tirs 1, 1 VU, Sleep=10s
V3, 15h49 16h04 19/09
V2, 16h05 16h20
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes | 65 |67
| http_duration(med) | 3,63 s | 1,16 s |
| http_duration(95%) | 9,83 s | 15,62 s |
* Tirs 2, 15 VU, Sleep=10s
V3, 16h39 16h54, 19/09
V2, 16h23 16h38
| Métriques | V2 | V3 |
| -------- | -------- | -------- |
| Nombre de requêtes |1103|991
| http_duration(med) | 179,7 ms | 1,47 s |
| http_duration(95%) | 827,3 ms | 1,88 s |