ЛР6: наблюдаемость, сквозные traces и исследование sampling

This commit is contained in:
2026-11-20 11:58:34 +03:00
parent 470d9d6f1e
commit 3b0f4ab281
80 changed files with 22966 additions and 50 deletions
+16
View File
@@ -0,0 +1,16 @@
import os
import time
import urllib.request
base = os.environ.get('BASE_URL', 'http://127.0.0.1:18087')
for attempt in range(120):
try:
with urllib.request.urlopen(base + '/health/ready', timeout=2) as response:
if response.status == 200:
print('Ready through load balancer.')
break
except OSError:
pass
time.sleep(0.5)
else:
raise SystemExit('Readiness timeout')