reference: add documents about Coprocessor cache#2857
Merged
Conversation
Signed-off-by: Breezewish <me@breeswish.org>
Contributor
|
@breeswish Please involve a technical review. |
innerr
reviewed
Apr 27, 2020
| # reuses the result when corresponding data in TiKV is unchanged, on a region basis. | ||
| enabled = true | ||
|
|
||
| # The capacity in MB of the cache. |
Contributor
There was a problem hiding this comment.
capacity => memory capacity?
innerr
reviewed
Apr 27, 2020
| # The capacity in MB of the cache. | ||
| capacity-mb = 1000.0 | ||
|
|
||
| # Only cache requests whose result set is small. |
Contributor
There was a problem hiding this comment.
Only .. => Bigger than .... will not be cached
Is it better?
innerr
reviewed
Apr 27, 2020
|
|
||
| 调整该值为一个更大的值可以缓存更多种类下推请求,但也将导致缓存空间更容易被占满。注意,每个下推计算结果集大小一般都会小于 Region 大小,因此将该值设置得远超过 Region 大小没有意义。 | ||
|
|
||
| - `admission-min-process-ms`: 最小缓存的下推计算结果集计算时间,单位是 ms。若下推计算的计算时间小于该参数指定的时间,则结果集不会被缓存。 |
Contributor
There was a problem hiding this comment.
需要说明这个计算时间是在 tidb 端计算的总耗时,还是 tikv cop 内的耗时吗
innerr
reviewed
Apr 27, 2020
|
|
||
| 参数说明: | ||
|
|
||
| - `capacity-mb`: 缓存的总数据量大小,单位是 MB。当缓存空间满时,旧缓存条目将被逐出。 |
innerr
reviewed
Apr 27, 2020
|
|
||
| - SQL 语句包含多个变化的条件,其他部分一致,变化的条件完全匹配一个复合索引列。 | ||
|
|
||
| 该场景下部分下部分下推结算的请求会与之前出现过的一致,部分请求能利用上下推计算结果缓存。 |
innerr
reviewed
Apr 27, 2020
|
|
||
| 该场景下部分下部分下推结算的请求会与之前出现过的一致,部分请求能利用上下推计算结果缓存。 | ||
|
|
||
| ## 观察缓存命中情况 |
Signed-off-by: Breezewish <me@breeswish.org>
TomShawn
suggested changes
Apr 27, 2020
Contributor
|
@breeswish, please update your pull request. |
Contributor
Contributor
|
@breeswish, please update your pull request. |
Contributor
Contributor
|
@breeswish, please update your pull request. |
Contributor
|
No updates for a long time, close PR. |
Contributor
Contributor
|
Any addressing need to update? @breeswish |
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Signed-off-by: Breezewish <me@breeswish.org>
TomShawn
reviewed
May 12, 2020
|
|
||
| ## 特性说明 | ||
|
|
||
| + 所有 SQL 在单个 TiDB 上的首次执行都不会被缓存。 |
Contributor
yikeke
reviewed
May 14, 2020
sre-bot
pushed a commit
to sre-bot/docs-cn
that referenced
this pull request
May 14, 2020
* Add copr cache documents Signed-off-by: Breezewish <me@breeswish.org> * Address comments Signed-off-by: Breezewish <me@breeswish.org> * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> * Address come comments Signed-off-by: Breezewish <me@breeswish.org> * refine format * Update coprocessor-cache.md * relocate the file * Apply suggestions from code review * add toc * Update coprocessor-cache.md * Update TOC.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: yikeke <yikeke@pingcap.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
5 tasks
Contributor
|
cherry pick to release-4.0 in PR #3108 |
TomShawn
added a commit
that referenced
this pull request
May 14, 2020
* Add copr cache documents Signed-off-by: Breezewish <me@breeswish.org> * Address comments Signed-off-by: Breezewish <me@breeswish.org> * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> * Address come comments Signed-off-by: Breezewish <me@breeswish.org> * refine format * Update coprocessor-cache.md * relocate the file * Apply suggestions from code review * add toc * Update coprocessor-cache.md * Update TOC.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: yikeke <yikeke@pingcap.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: Wenxuan <hi@breeswish.org> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: yikeke <yikeke@pingcap.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
5 tasks
5 tasks
5 tasks
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Breezewish me@breeswish.org
What is changed, added or deleted? (Required)
This PR adds a document about the Coprocessor cache, as well as its configurations.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
This PR includes a new feature proposed by tikv/rfcs#48