ClickHouse安装登录warning处理记录

 

ClickHouse安装登录warning处理记录

 

政务云的麒麟系统,ARM架构。

目前只能安装到23.4.1.1943版本,再新的版本会因为cpu架构太老无法安装。

安装23.4.1.1943版本登录也有如下warning。

[root@host-192-168-3-4 ~]# clickhouse-client
ClickHouse client version 23.4.1.1943 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 23.4.1 revision 54462.

Warnings:
 * Linux is not using a fast clock source. Performance can be degraded. Check /sys/devices/system/clocksource/clocksource0/current_clocksource
 * Linux threads max count is too low. Check /proc/sys/kernel/threads-max
 * Maximum number of threads is lower than 30000. There could be problems with handling a lot of simultaneous queries.

host-192-168-3-4 :) exit
Bye.

对于第一个时钟源的警报,无法处理,因为当前系统时钟源和可用的时钟源有且只有一个:

[root@host-192-168-3-4 ~]# cat /sys/devices/system/clocksource/clocksource0/current_clocksource
arch_sys_counter
[root@host-192-168-3-4 ~]# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
arch_sys_counter

即使有提示说Performance can be degraded,即性能可能会下降。

但是官方没有详细资料可以查询量化下降性能的指标,也无专业机构可以咨询。无解。

 

第二点:系统最大线程数量过低

 * Linux threads max count is too low. Check /proc/sys/kernel/threads-max

处理方式:修改或添加kernel.threads-max = 131072到/etc/sysctl.conf,刷新该值后重启ck。

根据实际情况调整此值。

https://www.cnblogs.com/PiscesCanon/p/17958770

 

第三点:ck服务的最大线程数量低于30000。

* Maximum number of threads is lower than 30000. There could be problems with handling a lot of simultaneous queries.

处理方式:

vi /lib/systemd/system/clickhouse-server.service
LimitNPROC=131072

生效该配置并重启:systemctl daemon-reload ; systemctl restart clickhouse-server

防。

 

posted @ 2024-01-11 15:57  PiscesCanon  阅读(67)  评论(0编辑  收藏  举报