lab3: LB + 2 API replicas, idempotency, X-Instance-Id, failover/persistence tests (grade 4)

This commit is contained in:
2026-10-09 15:50:44 +03:00
parent 0ab3a341aa
commit eacab162c9
29 changed files with 2490 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
from __future__ import annotations
import os
import socket
import uuid
INSTANCE_ID: str = (
os.environ.get("INSTANCE_ID")
or socket.gethostname()
or uuid.uuid4().hex[:8]
)