当前位置:网站首页>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.
边栏推荐
猜你喜欢

02 - 3. Différences entre les pointeurs et les références

Limit query of MySQL optimization series

Redis分布式缓存-Redis集群

Redis分布式緩存-Redis集群

Déléguer un chargeur tel qu'un parent

Redis distributed cache redis cluster

Leetcode 1304. N different integers with zero and

Learning outline of the column "MySQL DBA's magic road"

An error, uncaught typeerror: modalfactory is not a constructor

Opencv draw a black rectangle and write the serial number
随机推荐
02-3、指針和引用的區別
Configure spectrum navigation for Huawei wireless devices
What do you look at after climbing the wall? The most popular foreign website - website navigation over the wall
A curated list of awesome Qt and QML
TiKV Follower Read
JVM hook hooks function
A current List of AWESOME Qt and qml
STM32F407 NVIC
Automated graphical interface library pyautogui
03-2、
Mpu9250 ky9250 attitude, angle module and mpu9250 MPL DMA comparison
Swift 二进制数据与16进制字符串的相互转换
Region 性能调优
Introduction to common distributed locks
华为无线设备配置频谱导航
To build agile teams, these methods are indispensable
Whether pjudge 21652-[pr 4] has nine [digit DP]
学习笔记3--规划控制中的机器学习基本思想
【无标题】cv 学习1转换
委派双亲之类加载器