ref tikv/pd#4399
- Upgraded Go version from 1.23.0 → 1.23.12 to adopt security fixes.
- Updated github.com/pingcap/tidb-dashboard to latest commit (e111aaee93).
Signed-off-by: JmPotato <github@ipotato.me>
closetikv/pd#9719
Add an is_stopping status to the StoreHeartbeat message. When TiKV receives a SIGTERM, it sets this flag. This change adds a new evict-stopping-store-scheduler to PD, which is analogous to the evict-slow-store-scheduler. It proactively transfers leaders away from nodes by inspecting the is_stopping status from store heartbeats.
Signed-off-by: hujiatao0 <hhjjtt110@gmail.com>
ref tikv/pd#9707
- Introduced storage size metering:
- Added `storageSizeCollector` to periodically record row-based and column-based storage usage per keyspace.
- Integrated with cluster metering writer for reporting.
- Extended `RegionInfo` and statistics with `ApproximateColumnarKvSize` tracking.
- Added keyspace name caching and lookup in `KeyspaceManager` for efficient resolution.
- Extracted common metering utilities (`NewRUValue`, `NewBytesValue`, constants for source/fields) into `pkg/metering/utils.go`.
Signed-off-by: JmPotato <github@ipotato.me>
ref tikv/pd#9707
- Delay registration of RU collector until after the metering writer has been started to ensure correct initialization order.
- Add integration test confirming that the metering writer starts correctly with config, and that RU collector is properly registered.
Signed-off-by: JmPotato <github@ipotato.me>
ref tikv/pd#9707
- Introduced a new **metering writer** (`pkg/metering`) that collects RU usage data and periodically flushes it to object storage via `pingcap/metering_sdk`.
- Implemented a **RU collector** (`ruCollector`) in the resource manager to track resource usage (OLTP/OLAP RU, cross-AZ traffic) per keyspace.
Signed-off-by: JmPotato <github@ipotato.me>
ref tikv/pd#9707
This change removes the global `ServerServiceRegistry` and the auto-registration `install` packages for microservices, as they are no longer used.
Signed-off-by: JmPotato <github@ipotato.me>
ref tikv/pd#8978
Make the service safe point HTTP API return a pseudo service safe point for "gc_worker".
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
closetikv/pd#8978
This PR migrates the old GC APIs to the new implementation, and marks them as deprecated.
Also suppresses warnings on necessary invocations to them, such as tests.
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
closetikv/pd#9412, closetikv/pd#9551
Stabilize TSO client tests by implementing resilient leader resignation with retries and enhancing the tests to accommodate leader change scenarios.
Signed-off-by: JmPotato <github@ipotato.me>
closetikv/pd#9501
This PR requires specifying the keyspace group ID when checking the keyspace's primary server,
preventing duplicate keyspace IDs across multiple keyspace groups from disrupting the tests.
Signed-off-by: JmPotato <github@ipotato.me>