Monitoring: Adjust health-check thresholds
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- backend, devops, observability-sre
Hướng nghiên cứu
Bắt đầu bằng cách xác định ngưỡng health-check của production và so sánh ngưỡng đó với cấu hình staging, cấu hình sử dụng ngưỡng 3. Xem lại cửa sổ cảnh báo tiếp theo bằng server logs và Sentry, kiểm tra các endpoint đã biết và trạng thái request thực tế. Công việc được xem là hoàn tất khi ngưỡng production được đặt thành 3, các cảnh báo giả được xử lý như mô tả và hành vi cron Sentry của staging đã được điều tra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem?
Prod emits recurring "downtime detected" alerts due to misconfigured thresholds. This causes alert noise and misinterpretation of server status, which can lead to unnecessary troubleshooting efforts.
Describe the solution you'd like
- Set prod health-check threshold to 3.
- Suppress alarms after confirming ~5–6 known endpoints return 200.
- Verify server logs and status during downtime windows for accurate root cause analysis.
- Investigate Sentry cron monitor behavior on staging.
Original issue
Context
Prod emits recurring "downtime detected" alerts. Alert noise traced to threshold config: staging (backend, guardrails, frontend) uses threshold 3 and produces no false alerts; prod is on a different value. Request timeout is 15s, exponential backoff ~3–4s then ~8s, health check every 1 min.
Decisions
- Set prod health-check threshold to 3. Caveat: if the health endpoint genuinely isn't responding (prod is intermittently loaded), the threshold change only silences the symptom — write the real hypothesis (FastAPI thread saturation at ~40 threads / ~50–100 concurrent requests) into the issue so a green dashboard isn't misread as solved.
- When a downtime alarm fires, first hit ~5–6 known endpoints; if they return 200, treat as a false alarm and suppress.
Verification (before assuming bot-flood root cause)
- For each downtime window, check logs + Sentry: was the server actually down, did real LLM calls come through and with what status, did bot call volume spike? Confirm against Prajna's root cause.
- Pull logs for the next alert window and confirm actual server behavior.
Related
- A Sentry cron monitor is also firing on staging while staging is green — determine whether Sentry is misbehaving, it's the dev-env uptime check, or the notification setup is wrong.
- Ngôn ngữ chính
- Python
- Star
- 18
- Fork
- 10
- Merge trung bình
- 4 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ProjectTech4DevAI/kaapi-backend
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ProjectTech4DevAI/kaapi-backend#269 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Documentation: Guide for guardrails creationCó thể đã có người làm @Prajna1999 đã nhận 3 ngày trước. Đang mở
ProjectTech4DevAI/kaapi-backend#1224 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Documentation: Update Swagger for GuardrailsCó thể đã có người làm @Prajna1999 đã nhận 3 ngày trước. Đang mở
ProjectTech4DevAI/kaapi-backend#1223 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Guardarails: Glific IntegrationCó thể đã có người làm @Prajna1999 đã nhận 3 ngày trước. Đang mởdocumentation
ProjectTech4DevAI/kaapi-backend#1222 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của ProjectTech4DevAI/kaapi-backend
Issue tương tự
-
Layers of type "3D Unknown" and "3D Measured Unknown" are refused, so FileGDB multipatch layers can't be readCó thể đã có người làm @aidannewsome đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
quantization
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/vllm#59904 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mikf/gallery-dl#9791 ·
-
Speaker custom-fields CSV export returns 404 instead of downloading dataCó thể đã có người làm @techvoyager-varun đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
fossasia/eventyay#6151 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P4: low tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
jeffknupp/association#318 ·