Load testing
Guide for load testing the fastapi-zitadel-auth
package.
Prerequisites
service_user.json
with service account credentials- Configured
demo_project/.env
file - Docker and Docker Compose
Running Tests
-
Start testing environment:
- Set test parameters (users, spawn rate)
- Click "Start"
Worker Configuration
Locust Workers
API Workers
In demo_project/Dockerfile
, adjust:
Tips
- Match worker count to available CPU cores
- Monitor system resources during tests
- Check Docker resource allocation