lab4: S3, MinIO, reconciler, трек 2, README

This commit is contained in:
2026-11-12 20:14:39 +03:00
parent ec540a1a72
commit d88f77cccc
104 changed files with 204719 additions and 47 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
REPLICA="${1:-app1}"
echo "Останавливаю $REPLICA"
date +"%H:%M:%S.%3N"
./scripts/stop-one.sh "$REPLICA"
echo ""
echo "Шлю запросы каждые 0.5 сек, смотрю код и x-instance-id"
for i in {1..20}; do
TS=$(date +"%H:%M:%S.%3N")
CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/health/live)
INST=$(curl -s -i http://localhost:8080/health/live | grep -i "^x-instance-id:" | tr -d '\r')
echo "$TS code=$CODE $INST"
sleep 0.5
done
echo ""
echo "Поднимаю $REPLICA обратно"
docker compose start "$REPLICA"