Skip to content

Conversation

@aonnikov
Copy link
Member

@aonnikov aonnikov commented Sep 1, 2025

No description provided.

@aonnikov aonnikov requested review from Copilot and haiodo September 1, 2025 06:05
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13393

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a health endpoint that monitors session health by tracking hung sessions and requests. The health endpoint returns 'healthy', 'degraded', or 'unhealthy' status based on configurable thresholds for hung sessions and requests.

  • Introduces a new /api/v1/health endpoint that checks session manager health
  • Adds health monitoring logic to detect hung sessions and requests with configurable thresholds
  • Refactors hardcoded timeout values into configurable constants

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
server/core/src/types.ts Defines SessionHealth type and adds checkHealth method to SessionManager interface
server/server/src/sessionManager.ts Implements health checking logic with hung session/request detection and configurable thresholds
server/server/src/stats.ts Integrates health status into statistics data
pods/server/src/server_http.ts Adds new health endpoint with authentication and appropriate HTTP status codes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@aonnikov aonnikov force-pushed the feat-transactor-health branch from 1edf61a to 41044cb Compare September 1, 2025 06:08
haiodo
haiodo previously approved these changes Sep 1, 2025
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@haiodo haiodo merged commit 856a2b6 into develop Sep 1, 2025
15 checks passed
@haiodo haiodo deleted the feat-transactor-health branch September 1, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants