pingcap / pingcap/tiproxy

labels.zone set to tiproxy instance fail when balance policy= 'location'

Open
#1,211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/bug
Dominant language
Go
Stars
73
Forks
41
Avg merge
21h 3m
Merged PRs (30d)
21

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create premium cluster with tiproxy config:
[balance]
label-name = "keyspace"
policy = "location"

2. What did you expect to see? (Required)

check tiproxy labels in logs, zone label and value should included in the [labels] structure.

3. What did you see instead (Required)

no "zone" in the [labels] structure.

4. What is your version? (Required)

premium cluster
version: v26.3.99
tag: v26.3.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the premium cluster configuration with [balance] label-name = "keyspace" and policy = "location" on v26.3.99. Trace how the tiproxy instance builds its [labels] structure and compare the location-policy path with other balance policies. Done means the zone label and value appear in logs for this configuration, with a regression test if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.