tikv / tikv/pd

keyspace: make TSO keyspace group auto split configurable

Open
#11,154 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Enhancement Task

TSO keyspace group auto split currently uses hard-coded defaults:

- keyspace count split threshold: 40000
- auto-split patrol interval: 15m

Operators need a way to disable this behavior, or tune the threshold and patrol interval, without changing code.

### Task

Add keyspace configuration for TSO keyspace group auto split:

- `enable-tso-keyspace-group-auto-split`: enable or disable auto split.
- `tso-keyspace-group-auto-split-threshold`: configure the keyspace count split threshold.
- `tso-keyspace-group-auto-split-patrol-interval`: configure the patrol interval.

### Expected behavior

- Default behavior remains unchanged: auto split is enabled with threshold `40000` and patrol interval `15m`.
- Runtime keyspace config updates are applied to the keyspace group manager.
- When auto split is disabled, the patrol loop should skip automatic keyspace group split.

Contributor guide

Open the contributing guide

Research direction

Locate the TSO keyspace group auto-split defaults, the keyspace configuration update path, and the keyspace group manager's patrol loop. Verify that the existing defaults remain unchanged, runtime updates reach the manager, and disabling the setting prevents automatic splitting.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.