Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#13666
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
ran-huang authored and ti-chi-bot committed May 25, 2023
1 parent b3886a6 commit 531e6ed
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pd-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ The PD configuration file supports more options than command-line parameters. Yo

This document only describes parameters that are not included in command-line parameters. Check [here](/command-line-flags-for-pd-configuration.md) for the command line parameters.

> **Tip:**
>
> If you need to adjust the value of a configuration item, refer to [Modify the configuration](/maintain-tidb-using-tiup.md#modify-the-configuration).
### `name`

- The unique name of a PD node
Expand Down
25 changes: 25 additions & 0 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ summary: Learn the TiDB configuration file options that are not involved in comm

The TiDB configuration file supports more options than command-line parameters. You can download the default configuration file [`config.toml.example`](https://github.com/pingcap/tidb/blob/master/config/config.toml.example) and rename it to `config.toml`. This document describes only the options that are not involved in [command line options](/command-line-flags-for-tidb-configuration.md).

> **Tip:**
>
> If you need to adjust the value of a configuration item, refer to [Modify the configuration](/maintain-tidb-using-tiup.md#modify-the-configuration).
### `split-table`

- Determines whether to create a separate Region for each table.
Expand Down Expand Up @@ -551,6 +555,27 @@ Configuration items related to performance.
+ Default value: `1000`
+ Currently, the valid value range is `[1, 100000]`.

<<<<<<< HEAD
=======
### `lite-init-stats` <span class="version-mark">New in v7.1.0</span>

> **Warning:**
>
> This variable is an experimental feature. It is not recommended that you use it in the production environment. This feature might be changed or removed without prior notice. If you find a bug, you can report an [issue](https://github.com/pingcap/tidb/issues) on GitHub.
+ Controls whether to use lightweight statistics initialization during TiDB startup.
+ Default value: false
+ When the value of `lite-init-stats` is `true`, statistics initialization does not load any histogram, TopN, or Count-Min Sketch of indexes or columns into memory. When the value of `lite-init-stats` is `false`, statistics initialization loads histograms, TopN, and Count-Min Sketch of indexes and primary keys into memory but does not load any histogram, TopN, or Count-Min Sketch of non-primary key columns into memory. When the optimizer needs the histogram, TopN, and Count-Min Sketch of a specific index or column, the necessary statistics are loaded into memory synchronously or asynchronously (controlled by [`tidb_stats_load_sync_wait`](/system-variables.md#tidb_stats_load_sync_wait-new-in-v540)).
+ Setting `lite-init-stats` to `true` speeds up statistics initialization and reduces TiDB memory usage by avoiding unnecessary statistics loading. For details, see [Load statistics](/statistics.md#load-statistics).

### `force-init-stats` <span class="version-mark">New in v7.1.0</span>

+ Controls whether to wait for statistics initialization to finish before providing services during TiDB startup.
+ Default value: false
+ When the value of `force-init-stats` is `true`, TiDB needs to wait until statistics initialization is finished before providing services upon startup. If there are a large number of tables and partitions, setting `force-init-stats` to `true` might prolong the time it takes for TiDB to start providing services.
+ When the value of `force-init-stats` is `false`, TiDB can still provide services before statistics initialization is finished, but the optimizer uses pseudo statistics to make decisions, which might result in suboptimal execution plans.

>>>>>>> 960264fdc (*: add instruction for editing config (#13666))
## opentracing

Configuration items related to opentracing.
Expand Down
4 changes: 4 additions & 0 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ You can adjust the PD scheduling parameters using [pd-ctl](/pd-control.md). Note

This section introduces the configuration parameters of TiFlash.

> **Tip:**
>
> If you need to adjust the value of a configuration item, refer to [Modify the configuration](/maintain-tidb-using-tiup.md#modify-the-configuration).
### Configure the `tiflash.toml` file

```toml
Expand Down
4 changes: 4 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ The TiKV configuration file supports more options than command-line parameters.

This document only describes the parameters that are not included in command-line parameters. For more details, see [command-line parameter](/command-line-flags-for-tikv-configuration.md).

> **Tip:**
>
> If you need to adjust the value of a configuration item, refer to [Modify the configuration](/maintain-tidb-using-tiup.md#modify-the-configuration).
## Global configuration

### `abort-on-panic`
Expand Down

0 comments on commit 531e6ed

Please sign in to comment.