Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove some config fields for copr cache #5030

Merged
merged 3 commits into from
Mar 12, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,6 @@ Configuration items related to performance.

The Plan Cache configuration of the `PREPARE` statement.

### `enabled`

- Determines whether to enable Plan Cache of the `PREPARE` statement.
- Default value: `true`

### `capacity`

- The number of cached statements.
Expand Down Expand Up @@ -505,30 +500,11 @@ This section introduces configuration items related to the Coprocessor Cache fea

### `capacity-mb`

- The total size of the cached data. When the cache space is full, old cache entries are evicted.
- The total size of the cached data. When the cache space is full, old cache entries are evicted. When the value is `0.0`, it means to disable the Coprocessor Cache feature.
Joyinqin marked this conversation as resolved.
Show resolved Hide resolved
- Default value: `1000.0`
- Unit: MB
- Type: Float

### `admission-max-result-mb`

- Specifies the largest single push-down calculation result set that can be cached. If the result set of a single push-down calculation returned on the Coprocessor is less than the result set specified by this parameter, the result set is cached. Increasing this value means that more types of push-down requests are cached, but also cause the cache space to be occupied more easily. Note that the size of each push-down calculation result set is generally smaller than the size of the Region. Therefore, it is meaningless to set this value far beyond the size of a Region.
- Default value: `10.0`
- Unit: MB
- Type: Float

### `admission-min-process-ms`

- Specifies the minimum calculation time for a single push-down calculation result set that can be cached. If the calculation time of a single push-down calculation on the Coprocessor is less than the time specified by this parameter, the result set is not cached. Requests that are processed quickly do not need to be cached, and only the requests that take a long time to process need to be cached, which makes the cache less likely to be evicted.
- Default value: `5`
- Unit: ms

### `admission-max-ranges` <span class="version-mark">New in v4.0.8</span>

+ Specifies the maximum number of ranges in a single push-down calculation result set that can be cached. If the push-down calculation has more ranges than the number specified by this configuration, the result set will not be cached. Generally, when there are too many ranges, the extra calculation overhead of parsing the range brought by Coprocessor Cache is large.
+ Default value: `500`
+ Type: uint

### txn-local-latches

Configuration related to the transaction latch. It is recommended to enable it when many local transaction conflicts occur.
Expand Down