Skip to content

api: add /health/unhealthy endpoint to mark the instance as unhealthy#1141

Draft
YangKeao wants to merge 1 commit intopingcap:mainfrom
YangKeao:add-extra-lb-health-endpoint
Draft

api: add /health/unhealthy endpoint to mark the instance as unhealthy#1141
YangKeao wants to merge 1 commit intopingcap:mainfrom
YangKeao:add-extra-lb-health-endpoint

Conversation

@YangKeao
Copy link
Copy Markdown
Member

What problem does this PR solve?

Issue Number: close #1140

Problem Summary:

For the LB from cloud provider, once the Pod enters terminating status, the connection will persist at most 15min (for aliyun) and 1h (for AWS). However, for unhealthy, the connection can be persisted for a very long time: 100h for AWS and not limited for Aliyun (I've only tested for 1h, and I'll try 24h tests later).

What is changed and how it works:

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Notable changes

  • Has configuration change
  • Has HTTP API interfaces change
  • Has tiproxyctl change
  • Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 21, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 21, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign djshow832 for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the size/M label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an API to mark a TiProxy instance as unhealthy

1 participant