Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ e2e/test-results/
e2e/playwright-report/
e2e/blob-report/
e2e/.env

# Load test user pool (contains credentials)
load-tests/data/users.json
44 changes: 44 additions & 0 deletions docker-compose.load-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
Comment thread
jeastham1993 marked this conversation as resolved.
Outdated
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2025-Present Datadog, Inc.

# Load testing service configuration
# Usage: docker compose -f docker-compose.yml -f docker-compose.load-test.yml --profile load-test run --rm load-simulator

services:
# Disable rate limiting for load testing
web-backend:
environment:
- SKIP_RATE_LIMIT=true

user-management:
environment:
- RateLimiting__Enabled=false

load-simulator:
image: grafana/k6:latest
volumes:
- ./load-tests:/scripts
environment:
- TARGET_URL=http://traefik:80
- EXTERNAL_URL=http://localhost:8080
- WORKLOAD=${WORKLOAD:-smoke}
- SCENARIO=${SCENARIO:-mixed}
- TEST_EMAIL=${TEST_EMAIL:-user@stickerlandia.com}
- TEST_PASSWORD=${TEST_PASSWORD:-Stickerlandia2025!}
command: run /scripts/load-test.js
depends_on:
traefik:
condition: service_healthy
user-management:
condition: service_healthy
sticker-catalogue:
condition: service_healthy
sticker-award:
condition: service_healthy
web-backend:
condition: service_started
datadog-agent:
condition: service_started

Copilot AI Jan 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Docker Compose override for web-backend in this file is missing the user-management-worker service from the depends_on list in the load-simulator service, but the documentation and inline comments indicate it's a required service. The main docker-compose.yml likely has this service, and it should be included here to ensure proper startup ordering.

Copilot uses AI. Check for mistakes.
profiles:
- load-test
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ services:
container_name: datadog-agent
profiles:
- monitoring
- load-test

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to turn agent on if load-testing is on but monitoring isnt?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scottgerring Hmm, good question. I guess for what we are using load testing for is to generate data for the agent. Not load testing in the traditional sense. So yeah, I think we should turn load testing on even if monitoring isn't. Which is what this will do right? Or have I misunderstood docker profiles?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an agent - so this'll turn on the datadog-agent, if we ask for load-testing

environment:
# Core Datadog configuration
- DD_API_KEY=${DD_API_KEY}
Expand Down
Loading
Loading