Implement lab6 OpenTelemetry observability stack

This commit is contained in:
2026-11-21 19:29:20 +03:00
parent 470d9d6f1e
commit ad8db1f32b
54 changed files with 5116 additions and 19 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
echo "Stopping API and image processing..."
docker compose stop api1 api2 worker dispatcher
echo "Restarting persistent storage and broker..."
docker compose restart db minio rabbitmq
echo "Waiting for PostgreSQL and RabbitMQ..."
docker compose up -d --wait db rabbitmq
echo "Checking S3 bucket..."
docker compose run --rm --no-deps s3-init
echo "Starting dispatcher and worker..."
docker compose up -d dispatcher worker
echo "Starting API replicas..."
docker compose up -d --wait api1 api2
echo "Restart complete. Persistent volumes preserved."