lab3: nginx, replicas, idempotency, tests

This commit is contained in:
2026-11-06 17:23:38 +03:00
commit 46c829b730
96 changed files with 206384 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
echo "Нагрузка: 30 запросов с интервалом 0.5 сек"
for i in {1..30}; do
TS=$(date +"%H:%M:%S")
RESP=$(curl -s -i http://localhost:8080/health/live)
CODE=$(echo "$RESP" | head -1 | awk '{print $2}')
INST=$(echo "$RESP" | grep -i "^x-instance-id:" | tr -d '\r' | awk '{print $2}')
echo "$TS code=$CODE instance=${INST:-<нет>}"
sleep 0.5
done