# `TiDB Lightning` Task Configuration
  + **`[lightning]:`** Settings for data and index engines, concurrency, error tolerance, execution metadata and results   
  + **`[security]:`** `TLS` related settings
  + **`[checkpoint]:`** Settings for checkpoint schema, driver and connection string to the checkpoint storage if applicable
  + **`[tikv-importer]:`** Specifying the importing mode, whether to allow importing data to tables with data and the records duplication handling settings
  + **`[mydumper]:`** Settings for accessing data source
  + **`[mydumper.csv]:`** Settings for how to evaluate `CSV` data source files
  + **`[tidb]:`** Settings for how to access `TiDB` cluster, such as the `TiDB` server, `PD` server addresses, the credentials and performance related system variables
  + **`[post-restore]:`** Controlling `ADMIN CHECKSUM TABLE`, `ANALYZE TABLE` and compaction behaviors after the import task
  + **`[cron]:`** Monitor and reporting settings

----------------------------------------------------------------------------------------------------------------------------
Parameters in `[lightning]` section:
```
- check-requirements, index-concurrency, table-concurrency, region-concurrency, io-concurrency, max-error, task-info-schema-name, meta-schema-name
```

Parameters in `[security]` section:
```
- ca-path, cert-path, key-path
```

Parameters in `[checkpoint]` section:
```
- enable, schema, driver, dsn, keep-after-success
```
Parameters in `[tikv-importer]` section:
```
- backend, incremental-import, on-duplicate, duplicate-resolution, send-kv-pairs, sorted-kv-dir, range-concurrency
```

Parameters in `[mydumper]` section:
```
- read-block-size, batch-import-ratio, data-source-dir, character-set, data-character-set, data-invalid-char-replace, strict-format, max-region-size, filter
```

Parameters in `[mydumper.csv]` section:
```
- separator, delimiter, terminator, header, not-null, null, backslash-escape, trim-last-separator
```

Parameters in `[mydumper.files]` section:
```
- pattern, schema, table, type
```

Parameters in `[tidb]` section:
```
- host, port, user, password, status-port, pd-addr, log-level, build-stats-concurrency, distsql-scan-concurrency, index-serial-scan-concurrency, checksum-table-concurrency, sql-mode, max-allowed-packet
```

Parameters in `[post-restore]` section:
```
- checksum, analyze, level-1-compact, compact
```

Parameters in `[cron]` section:
```
- switch-mode, log-progress
```