Skip to content

resource_control: Add resource limit for background task #56019

@glorv

Description

@glorv

Feature Request

Is your feature request related to a problem? Please describe:

Current, the background task control of resource_control is based on the total resource quota(CPU, IO) of each tikv instance. But in real use cases, foreground tail lantency increase significantly before resource is fully used. So we need to set some kind of limit that background tasks can use so user can control the performance impact by background tasks.

Current background settings:

ALTERR RESOURCE GROUP default BACKGROUND=(TASK_TYPES="br,import");

New SQL pattern:

ALTERR RESOURCE GROUP default BACKGROUND=(TASK_TYPES="br,import", UTILIZATION_LIMIT=30);

We add a new field UTILIZATION_LIMIT (for the default resource group) to control the resource percentage that background tasks can use.

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/feature-requestCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions