title | summary | aliases | |
---|---|---|---|
TiDB Binlog Deployment Topology |
Learn the deployment topology of TiDB Binlog based on the minimal TiDB topology. |
|
This document describes the deployment topology of TiDB Binlog based on the minimal TiDB topology.
TiDB Binlog is the widely used component for replicating incremental data. It provides near real-time backup and replication.
Instance | Count | Physical machine configuration | IP | Configuration |
---|---|---|---|---|
TiDB | 3 | 16 VCore 32 GB | 10.0.1.1 10.0.1.2 10.0.1.3 |
Default port configuration; Enable enable_binlog ; Enable ignore-error |
PD | 3 | 4 VCore 8 GB | 10.0.1.4 10.0.1.5 10.0.1.6 |
Default port configuration |
TiKV | 3 | 16 VCore 32 GB | 10.0.1.7 10.0.1.8 10.0.1.9 |
Default port configuration |
Pump | 3 | 8 VCore 16GB | 10.0.1.1 10.0.1.7 10.0.1.8 |
Default port configuration; Set GC time to 7 days |
Drainer | 1 | 8 VCore 16GB | 10.0.1.12 | Default port configuration; Set the default initialization commitTS -1 as the latest timestamp; Configure the downstream target TiDB as 10.0.1.12:4000 |
The key parameters in the topology configuration templates are as follows:
-
binlog.enable: true
- Enables the binlog service.
- Default value:
false
.
-
binlog.ignore-error: true
- It is recommended to enable this configuration in high availability scenarios.
- If set to
true
, when an error occurs, TiDB stops writing data into binlog, and adds1
to the value of thetidb_server_critical_error_total
monitoring metric. - If set to
false
, when TiDB fails to write data into binlog, the whole TiDB service is stopped.
Note:
- When editing the configuration file template, if you do not need custom ports or directories, modify the IP only.
- You do not need to manually create the
tidb
user in the configuration file. The TiUP cluster component automatically creates thetidb
user on the target machines. You can customize the user, or keep the user consistent with the control machine.- If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.