Skip to content

supervisor /metrics: per-connection hand-off counter, to make the OCP L4 (passthrough 1:1) check direct #430

Open

Description

@pdettori

Follow-up from #427 and the OpenShift acceptance run (#423, results).

Why: spec §10's L4 risk is that the passthrough Route must keep client connections 1:1 with supervisor connections. Today the only way to check this is counting established sockets inside the supervisor pod (/proc/net/tcp and /proc/net/tcp6; see deploy/k8s/README.md §9.3). The supervisor's /metrics (packages/supervisor/src/admin.ts, metricsBody) has no per-connection counter. handoff_retries, handoff_failures and over_admission can only serve as context.

Proposal:

  • Add a monotonically increasing handoffs counter, counting connections handed to a worker, and optionally connections_open, to metricsBody.
  • Then the L4 check becomes: client connections opened == handoffs delta.
  • Update the README §9.3 runbook and the spec §10 row to use it.

Activity

  1. added
    enhancement
    on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions