tiflash-replica-table-data-balancer

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tiflash-replica-table-data-balancer

Table balancer

A tool helps to balance the table data of TiFlash replicas between multiple TiFlash instances.

Usage
./balancer http --table <table_id> [--pd-host <host>] [--pd-port <port>] [--ssl-ca <ca>] [--ssl-cert <cert>] [--ssl-key <key>]

or

./balancer ctl --table <table_id> --ctl-path <path_of_pd_ctl>

or

./balancer local --table <table_id> --regions <file_1> <file_2> --stores <store_file>
How to get table_id

Connect to TiDB and run the following SQL:

SELECT TIDB_TABLE_ID FROM information_schema.tables WHERE table_schema = '<database>' AND table_name = '<table>';
+---------------+
| TIDB_TABLE_ID |
+---------------+
|    <table_id> |
+---------------+

Dead region balancer

Some TiFlash stores could fail, result in several regions having no living TiFlash peers. This tool helps to create peer for those dead regions on some other living TiFlash nodes.

Usage

Only supports PD's HTTP api.

./balancer dead_region --stores <stores_list_split_by_comma> [--pd-host <host>] [--pd-port <port>] [--ssl-ca <ca>] [--ssl-cert <cert>] [--ssl-key <key>]

Specifying --offline to also delete <stores_list_split_by_comma> from PD, which means they will be set at state offline.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ctl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址