Is the region cache size of the TiKV client allocated by default? Are there parameters to control it?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiKV cleint的region cache大小是默认分配的吗?是否有参数控制?

| username: alfred

To improve efficiency, please provide the following information. Clear problem descriptions can help resolve issues faster:
[TiDB Usage Environment]

[Overview] Scenario + Problem Overview

[Background] Operations performed

[Phenomenon] Business and database phenomena

[Problem] Current issue encountered

[Business Impact]

[TiDB Version]

[Application Software and Version]

[Attachments] Relevant logs and configuration information

  • TiUP Cluster Display information
  • TiUP Cluster Edit config information

Monitoring (https://metricstool.pingcap.com/)

  • TiDB-Overview Grafana monitoring
  • TiDB Grafana monitoring
  • TiKV Grafana monitoring
  • PD Grafana monitoring
  • Corresponding module logs (including logs from 1 hour before and after the issue)

For questions related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.

| username: xfworld | Original post link

Are you asking about size? There are parameters to control it.

You can check the capacity size occupied by each region here.

Here are the adjustment parameters related to scheduling.

| username: HACK | Original post link

He is probably not asking about the size of the region, but rather the cache in the TiDB server.

| username: alfred | Original post link

The region cache size of the TiKV client module in the TiDB server

| username: h5n1 | Original post link

It seems that there is no limit on the size of the region cache, and its contents will be cleaned periodically or non-periodically as needed.

| username: HACK | Original post link

I think this region cache mainly stores the metadata of the region, such as the location of the region and similar information, for use by the TiDB server when accessing data.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.