- 内存不足
- 问题一
<Error> auto DB::IBackgroundJobExecutor::execute(DB::JobAndPool)::(anonymous class)::operator()() const: Code: 236. DB::Exception: Cancelled merging parts. (ABORTED), Stack trace (when copying this message, always include the lines below):
我们是因为其他应用占用了所以内存,导致CH没有运行内存
- 问题二
2022.06.23 10:15:12.569510 [ 207232 ] {} <Error> ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket (). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below):
查询的内存问题可以参考修改以下参数
# users.xml
1)max_concurrent_queries
最大并发处理的请求数(包含select,insert等),默认值100,推荐150(不够再加),在我们的集群中出现过”max concurrent queries”的问题。
2)max_bytes_before_external_sort
当order by已使用max_bytes_before_external_sort内存就进行溢写磁盘(基于磁盘排序),如果不设置该值,那么当内存不够时直接抛错,设置了该值ord