Skip to content
6 changes: 4 additions & 2 deletions example/performance-test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ JOBS ?= 10 # Number of parallel jobs per cluster
LOGS ?= 1000 # Number of log lines per job
LOGS_DELAY ?= 25s # Delay between log messages

SCENARIO ?= shoot # Test scenario: "shoot" or "seed"

LOGCLI_BIN := $(DIR)/bin/logcli

# Default target
Expand Down Expand Up @@ -55,7 +57,7 @@ setup: logcli check-kubeconfig
# Create test clusters and start log generation
run: check-kubeconfig setup
@echo "Starting performance test with $(CLUSTERS) clusters, $(JOBS) jobs per cluster, $(LOGS) logs per job..."
@export CLUSTERS=$(CLUSTERS) JOBS=$(JOBS) LOGS=$(LOGS) LOGS_DELAY=$(LOGS_DELAY) && $(DIR)/up.sh
@export CLUSTERS=$(CLUSTERS) JOBS=$(JOBS) LOGS=$(LOGS) LOGS_DELAY=$(LOGS_DELAY) && $(DIR)/run.sh $(SCENARIO)

# Check Current logs in Vali
check: check-kubeconfig
Expand All @@ -70,7 +72,7 @@ fetch: check-kubeconfig
# Clean up all test resources
down: check-kubeconfig
@echo "Removing performance test workloads resources..."
@export CLUSTERS=$(CLUSTERS) && $(DIR)/down.sh
@export CLUSTERS=$(CLUSTERS) && $(DIR)/down.sh $(SCENARIO)

# Alias for down
clean: check-kubeconfig down
Expand Down
4 changes: 2 additions & 2 deletions example/performance-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sum(count_over_time({container_name=\"shoot--logging--dev-${i}\"}[24h]))
```

The script polls aggregated logs count per namespace. (CLUSTERS)
Expected count count ≈ `JOBS * LOGS` (after all pods finish and ingestion catches up).
Expected count ≈ `JOBS * LOGS` (after all pods finish and ingestion catches up).

---

Expand Down Expand Up @@ -75,7 +75,7 @@ Deploys test components with the helm chart in `charts/fluent-bit-plugin`.
* Installs prometheus and plutono with fluent-bit dashboard for monitoring.
* Installs logging backend Vali simulating a seed cluster and shared Vali for all simulated shoots.

### make up
### make run

Creates the test run workloads.

Expand Down
Loading
Loading