Skip to content

Extend query scheduler protocol to handle multiple request types, including health checks #1387

@coderabbitai

Description

@coderabbitai

Context

The query scheduler currently expects all connections to follow a specific protocol. Health checks and other diagnostic operations would benefit from a more flexible protocol that supports multiple request types.

Proposal

Extend the protocol to include a header byte indicating request type. This would allow the scheduler to:

  • Recognise health check requests
  • Log health status appropriately
  • Respond with predefined responses or close the connection as appropriate
  • Support future request types without breaking existing functionality

Benefits

  • Cleaner separation of concerns between health checks and normal operations
  • Better logging and observability
  • More robust health checking mechanism
  • Foundation for future protocol extensions

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions