Лабораторная работа 3

This commit is contained in:
2026-10-26 23:23:12 +03:00
parent 0ab3a341aa
commit fafd1828c0
70 changed files with 6665 additions and 25 deletions
+17
View File
@@ -0,0 +1,17 @@
# 2026-10-24 12:39 UTC | НАТИВНЫЙ стенд (без Docker)
# все реплики остановлены -> ответ формирует сам HAProxy (http-error): общий JSON-формат ошибок, X-Request-Id совпадает с request_id; X-Instance-Id нет (контракт это допускает)
$ curl -si http://127.0.0.1:8080/api/v1/users/me
HTTP/1.1 503 Service Unavailable
x-request-id: 7F000001CD38-1F90-6ADCA7141E5-336F-0B75
content-length: 128
content-type: application/json
{"error":{"code":"unavailable","message":"No API instance is available","request_id":"7F000001CD38-1F90-6ADCA7141E5-336F-0B75"}}
$ curl -si -H "X-Request-Id: demo-123" http://127.0.0.1:8080/health/ready
HTTP/1.1 503 Service Unavailable
x-request-id: demo-123
content-length: 97
content-type: application/json
{"error":{"code":"unavailable","message":"No API instance is available","request_id":"demo-123"}}