当前位置:网站首页>Gbase 8A common parallelism parameter adjustment to improve performance
Gbase 8A common parallelism parameter adjustment to improve performance
2022-04-22 23:05:00 【Chen Chen】
explain
The thread pool parallelism parameter is set to the default value , The thread pool of the service may be small, resulting in a single error SQL The parallelism of tasks is too high , As a result, the post initiated tasks in the concurrent scenario cannot obtain sufficient thread pool and are executed by a single thread . In serious cases , Will cause more sys cpu Occupy . It can be adjusted according to the actual situation .
gcluser_max_thread_in_pool
The parameter means that the cluster layer connects all nodes in the cluster gnode The number of connection threads in the connection pool , That is, the size of the global connection thread pool , The default setting is 600.
The global thread pool is less used , The main logic is asynchronous API, Usually, just keep the default value .
When the cluster is large 、SQL When there are many concurrent tasks , If it is found that the higher the number of threads consumed in the connection pool , It's time to adjust gcluser_max_thread_in_pool Parameters , It is generally recommended not to exceed 2000. Too large a value can also cause performance problems .
gbase_parallel_degree
Used to configure a single SQL The degree of parallelism during execution , The default value is 0, Recommended configuration is 4~8. The value is 0 when , single sql The parallelism of tasks uses CPU Half the number of kernels . When the value is greater than the number of thread pools , Then the number of thread pools .
Such as :gbase_parallel_degree=0,CPU Auditing for 32, So single sql The parallelism of is 16.
gbase_loader_parallel_degree
How many tasks each thread needs to load ,gbase_loader_parallel_degree Parameter is used to configure a single load task in gnode The degree of parallelism on , The default value is 0, That is to use CPU Half the number of kernels . Recommended configuration is 4~8.
The value is 0, Then use CPU Half the number of cores , When the value is greater than the number of thread pools , Then the number of thread pools .
gbase_parallel_max_thread_in_pool
Refers to the total number of threads in the thread pool , Used to configure the thread pool size , The default is CPU Nuclear 2 times , Deploy on each server 1 individual gnode This configuration is recommended for nodes CPU Nuclear 4~8 times .
Each task obtains threads from the thread pool and executes , When there are not enough free threads in the thread pool , Will be newly created 1 Threads for execution ( Internal serial ) Serial execution .
thread_pool_size
Indicates the number of thread pools used to receive client connections , Impact throughput .
版权声明
本文为[Chen Chen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204222257331182.html
边栏推荐
猜你喜欢

未来源码 | 吴恩达教授重磅演讲:Tips for using a data-centric AI approach

英语 | Day13、14 x 句句真研每日一句(平行、嵌套结构)

Must brush the simulation question bank and answers of operators of the latest fire-fighting facilities in Jiangxi in 2022

The article "fluent" is used to select and upload pictures

Flutter 一文搞定图片选择和图片上传

如何快速转载CSDN中的博客

Utilisation et principes de base de minio

Anti DDoS attack forwarding IP. Is the advanced anti IP of chess and card games easy to use?

Principle of leftmost matching principle

AcWing 1842. 牛奶桶 遍历所有情况
随机推荐
Utilisation et principes de base de minio
Future source code | Professor Wu Enda's lecture: Tips for using a data centric AI approach
Core technology of GDB debugger - ptrace system call and use example
CAP 理论
KunlunDB对MySQL私有DML语法的支持
vtkVertex 顶点
想让别人看你的视频?评论你的视频?学会这2招就够了
CSV column extract column extraction
多线程-线程通信(wait-notify,await-single,park-unpark)
High number | [differential calculus and application of multivariate functions] error prone problems and detailed explanation of Li Lin 880
c#控制台应用添加Log4net日志(控制台和文件)
The article "fluent" is used to select and upload pictures
ansible作业1
L1-049 天梯赛座位分配 (20 分)( for循环的深入理解+三维数组+错误分析)
Numeric type and sequence type
Clustering data generation function -- make_ blobs()
yolov1论文笔记摘抄
Gentoo系统安装步骤详解
L1-070 吃火锅 (15 分)
Multi thread thread communication (wait notify, await single, park unpark)