当前位置:网站首页>Region performance tuning
Region performance tuning
2022-07-19 11:41:00 【Tianxiang shop】
This article introduces how to adjust Region Size and other methods Region Performance tuning and how to do it in large Region Next use bucket Concurrent query optimization .
summary
TiKV Automatically process the underlying data Fragmentation , All data are in accordance with key The scope of is divided into several Region. When a Region After the size of exceeds a certain limit ,TiKV Will split it into multiple Region.
In the scenario of a large amount of data , There may be Region Too many , This will bring more resource overhead and lead to Performance fallback The problem of . Under a fixed amount of data ,Region The bigger it is , be Region The smaller the number . from v6.1.0 Start ,TiDB Support setting custom Region size .Region The default size is about 96 MiB, Increasing it can reduce Region Number .
Turn on Hibernate Region or Region Merge It can also reduce too much Region Performance overhead .
Use region-split-size adjustment Region size
Warning
Customize Region The size is in TiDB v6.1.0 Experimental characteristics introduced , It is not recommended to configure . The risks of using this feature include :
- More prone to performance jitter .
- Query performance fallback , In particular, the performance of large-scale data query will fall back .
- Slow scheduling .
Region The size of can pass through coprocessor.region-split-size Set it up . The recommended Region The size is 96 MiB、128 MiB、256 MiB.region-split-size The bigger it is , Performance will be more prone to jitter . It is not recommended that Region The size setting exceeds 1 GiB, It is strongly recommended not to exceed 10 GiB. If you use TiFlash, be Region The size cannot exceed 256 MiB. If you use Dumpling Tools , be Region The size cannot exceed 1 GiB.Region After you turn it up , Use Dumpling Tool time , Need to reduce concurrency , otherwise TiDB There will be OOM The risk of .
Use bucket Increase concurrency
Warning
Currently, this function is an experimental feature , It is not recommended for use in a production environment .
Region After you turn it up , To increase query concurrency , Should be set up coprocessor.enable-region-bucket by true. This configuration will change each Region Divide into smaller intervals bucket, And take this smaller interval as the concurrent query unit , To improve the concurrency of scanning data .bucket The size of the coprocessor.region-bucket-size To control , The default value is 96MiB.
边栏推荐
- Play with the one-stop scheme of cann target detection and recognition
- Leetcode 1310. Subarray XOR query
- Opencv draw a black rectangle and write the serial number
- C # build a system based on WPF entry project of net5
- Research on Wenhua commodity index
- Stc8h development (XIV): I2C drive rx8025t high-precision real-time clock chip
- 玩转CANN目标检测与识别一站式方案
- Microservice online specification
- A curated list of awesome Qt and QML
- TiKV 线程池性能调优
猜你喜欢

MySQL autoincrement ID, UUID and snowflake ID

Hot discussion: my husband is 34 years old this year and wants to read a doctoral degree. What should I do in the future to do scientific research?

Delegate parents and other loaders

Cv02 Roge matrix, rotation vector, angle

02-3、指針和引用的區別

STC8H开发(十四): I2C驱动RX8025T高精度实时时钟芯片

TCP congestion control details | 7 Surpass TCP

Wechat applet cloud development 1 - Database

synchronized锁升级

【多线程】JUC详解 (Callable接口、RenntrantLock、Semaphore、CountDownLatch) 、线程安全集合类面试题
随机推荐
How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example
A curated list of awesome Qt and QML
Dream CMS foreground search SQL injection
From "passive" to "active", how can zeta technology help to upgrade "rfid2.0"?
SQL union operator
02-2、缺省参数、函数重载、引用、隐式类型转换、关于报错
A current List of AWESOME Qt and qml
[binomial tree] the power of the button cattle customers must brush questions
Learning note 3 -- basic idea of machine learning in planning control
TCP congestion control details | 7 Surpass TCP
Leetcode 1328. 破坏回文串(可以,已解决)
Codeforces - 587e (linear basis + segment tree + difference)
梦想CMS 前台搜索SQL注入
A fastandrobust convolutionalneuralnetwork-based defect detection model inproductqualitycontrol-閱讀筆記
Docker install MySQL
华为无线设备配置频谱导航
Hello JSON Schema
[unity technology accumulation] simple timer & Co process & delay function
Leetcode 1328. Destroy palindrome string (yes, solved)
Detailed explanation of MySQL show processlist