Skip to content

resourcecontrol: bypass RU accounting for NextGen background activities #1954

Description

@YuhaoZhang00

Under the nextgen build tag, expand shouldBypass() to skip RU accounting for heavy internal operations (DDL index backfill, BR, IMPORT INTO, workload learning), and plumb RequestSource into resourcecontrol.RequestInfo for metric collection.

Tracking issue (TiDB side): pingcap/tidb#64339
Companion issue (PD side): tikv/pd#10634

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionThis PR is from a community contributor.

    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