From 166eb537bea42edca4613a4d164402d512374afd Mon Sep 17 00:00:00 2001 From: Enwei Date: Tue, 10 Aug 2021 13:27:15 +0200 Subject: [PATCH] TiDB lightning: remove default backend setting (#6132) --- tidb-lightning/tidb-lightning-backends.md | 6 +++--- tidb-lightning/tidb-lightning-configuration.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tidb-lightning/tidb-lightning-backends.md b/tidb-lightning/tidb-lightning-backends.md index 64991a0c6773f..eb0aab23a2f5d 100644 --- a/tidb-lightning/tidb-lightning-backends.md +++ b/tidb-lightning/tidb-lightning-backends.md @@ -10,14 +10,14 @@ The backend determines how TiDB Lightning imports data into the target cluster. TiDB Lightning supports the following [backends](/tidb-lightning/tidb-lightning-glossary.md#back-end): -+ [Importer-backend](#tidb-lightning-importer-backend) (default) + [Local-backend](#tidb-lightning-local-backend) ++ [Importer-backend](#tidb-lightning-importer-backend) + [TiDB-backend](#tidb-lightning-tidb-backend) -The **Importer-backend** (default): `tidb-lightning` first encodes the SQL or CSV data into KV pairs, and relies on the external `tikv-importer` program to sort these KV pairs and ingest directly into the TiKV nodes. - The **Local-backend**: `tidb-lightning` first encodes data into key-value pairs, sorts and stores them in a local temporary directory, and *upload* these key-value pairs to each TiKV node *as SST files*. Then, TiKV ingests these *SST files* into the cluster. The implementation of Local-backend is the same with that of Importer-backend but does not rely on the external `tikv-importer` component. +The **Importer-backend**: `tidb-lightning` first encodes the SQL or CSV data into KV pairs, and relies on the external `tikv-importer` program to sort these KV pairs and ingest directly into the TiKV nodes. + The **TiDB-backend**: `tidb-lightning` first encodes these data into SQL `INSERT` statements, and has these statements executed directly on the TiDB node. | Backend | Local-backend | Importer-backend | TiDB-backend | diff --git a/tidb-lightning/tidb-lightning-configuration.md b/tidb-lightning/tidb-lightning-configuration.md index 47975da4d7a1f..d2432d520ae2f 100644 --- a/tidb-lightning/tidb-lightning-configuration.md +++ b/tidb-lightning/tidb-lightning-configuration.md @@ -98,8 +98,8 @@ driver = "file" #keep-after-success = false [tikv-importer] -# Delivery backend, can be "importer", "local", or "tidb". -# backend = "importer" +# Delivery backend, can be "local", "importer" or "tidb". +# backend = "local" # The listening address of tikv-importer when backend is "importer". Change it to the actual address. addr = "172.16.31.10:8287" # Action to do when trying to insert a duplicated entry in the "tidb" backend. @@ -362,7 +362,7 @@ min-available-ratio = 0.05 | -d *directory* | Directory or [external storage URL](/br/backup-and-restore-storages.md) of the data dump to read from | `mydumper.data-source-dir` | | -L *level* | Log level: debug, info, warn, error, fatal (default = info) | `lightning.log-level` | | -f *rule* | [Table filter rules](/table-filter.md) (can be specified multiple times) | `mydumper.filter` | -| --backend *backend* | [Delivery backend](/tidb-lightning/tidb-lightning-backends.md) (`importer`, `local`, or `tidb`) | `tikv-importer.backend` | +| --backend *backend* | [Delivery backend](/tidb-lightning/tidb-lightning-backends.md) (`local`, `importer`, or `tidb`) | `tikv-importer.backend` | | --log-file *file* | Log file path (default = a temporary file in `/tmp`) | `lightning.log-file` | | --status-addr *ip:port* | Listening address of the TiDB Lightning server | `lightning.status-port` | | --importer *host:port* | Address of TiKV Importer | `tikv-importer.addr` |