当前位置:网站首页>Tiflash performance tuning
Tiflash performance tuning
2022-07-19 11:41:00 【Tianxiang shop】
This article introduces how to make TiFlash Several ways to achieve optimal performance , Including planning machine resources 、TiDB Parameter tuning 、 To configure TiKV Region Size, etc .
Resource Planning
For those who want to save machine resources , And there is no isolation requirement at all , have access to TiKV and TiFlash Joint deployment . The suggestion is TiKV And TiFlash Leave enough resources separately , And don't share disks .
TiDB Related parameter tuning
about OLAP/TiFlash exclusive TiDB node , It is recommended to increase the number of read concurrency tidb_distsql_scan_concurrency To 80:
set @@tidb_distsql_scan_concurrency = 80;Turn on Super batch function :
tidb_allow_batch_cop Variable is used to set from TiFlash When reading , Whether to put Region Request to merge . When the query involves Region The quantity is relatively large , You can try to set this variable to
1( ContrabandaggregationPush down to TiFlash Coprocessor Your request is valid ), Or set the variable to2( Push all down to TiFlash Coprocessor The request is effective ).set @@tidb_allow_batch_cop = 1;Try to turn on aggregation push
Join/Unionetc. TiDB Operator optimization :tidb_opt_agg_push_down Variable is used to set whether the optimizer performs aggregate function push down to Join Previous optimization operations . When aggregation operations in queries are slow , You can try to set this variable to 1.
set @@tidb_opt_agg_push_down = 1;Try to turn on
DistinctPush throughJoin/Unionetc. TiDB Operator optimization :tidb_opt_distinct_agg_push_down Variable is used to set whether the optimizer executes with
DistinctAggregate function of ( such asselect count(distinct a) from t) Push down to Coprocessor Optimized operation of . When the query containsDistinctWhen the aggregation operation of is slow , You can try to set this variable to1.set @@tidb_opt_distinct_agg_push_down = 1;
边栏推荐
- 翻墙后看什么?最热门的国外网站——翻墙网址导航
- Leetcode 1304. 和为零的 N 个不同整数
- 03-2、
- Unchangeable status quo
- How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example
- Keras deep learning practice (14) -- r-cnn target detection from scratch
- Cv02 Roge matrix, rotation vector, angle
- Bet Net is a good thing
- Antd form setting array fields
- Why does the magnetic variable speed gear reverse?
猜你喜欢

Unity3d read mpu9250 example source code

【多线程】JUC详解 (Callable接口、RenntrantLock、Semaphore、CountDownLatch) 、线程安全集合类面试题

TCP congestion control details | 7 Surpass TCP
![[PostgreSQL] PostgreSQL 15 optimizes distinct](/img/7c/89d05171902dd88bd2b5c352c3614f.png)
[PostgreSQL] PostgreSQL 15 optimizes distinct

Bet Net is a good thing

Mpu9250 ky9250 attitude, angle module and mpu9250 MPL DMA comparison

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

024.static and final use traps continued

常见分布式锁介绍

Total number of blocking and waiting in jconsole thread panel (RPM)
随机推荐
【嵌入式单元测试】C语言单元测试框架搭建
Region 性能调优
jconsole线程面板中的阻塞总数和等待总数(转)
LeetCode 558. Intersection of quadtree
03-2、
【PostgreSQL 】PostgreSQL 15对distinct的优化
A current List of AWESOME Qt and qml
Leetcode 1304. 和为零的 N 个不同整数
Dream CMS Front Office Search SQL Injection
synchronized锁升级
Learning note 3 -- basic idea of machine learning in planning control
Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
Sword finger offer II 041 Average value of sliding window
学习笔记3--规划控制中的机器学习基本思想
A curated list of awesome Qt and QML
公网连接MySQL实例的解决方案
Send blocking, receive blocking
A summary of C language pointer
8. Fixed income investment
How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example