Skip to content

Avoid loading all keyspace groups every second for TSO node allocation #11027

Description

@rleungx

The PD API leader currently loads every keyspace group from etcd once per second when reconciling TSO node membership.

With millions of keyspaces, repeatedly loading and decoding every group creates unnecessary etcd traffic, allocations, and GC pressure, which can affect PD availability.

The reconciliation should be event-driven. Healthy groups should require no etcd read, and a possibly under-replicated group should be revalidated and updated individually in a transaction.

Related TiDB Cloud issue: https://github.com/tidbcloud/pd-cse/issues/559

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions