clickhouse 推荐配置(operation checklist)
1、CPU调节器 echo 'performance' | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor 2、内存 数据少量时最好cache在内存,尽量给大内存 避免使用swap echo 0 | sudo tee /proc/sys/vm/overcommit_memory 3、关闭transparent huge pages echo 'never' | sudo tee /sys/kernel/mm/transparent_hugepage/enabled 4、存储硬盘要求 尽量使用SSD或者转速较快的硬盘比如sata接口 hdd 7200r/s 5、磁盘阵列(raid) raid10 6、文件系统 ext4 (xfs尚未通过验证) 7、Linux Kernel 不使用过老的内核版本 8、网络 1Gb 最好10Gb 9、zookeeper 3.4.9 version 禁止在clickhouse相同的机器上运行zookeeper 配置参考地址:https://clickhouse.yandex/docs/en/operations/tips/#zookeeper zookeeper 在yandex使用的推荐参数: tickTime=2000 initLimit=30000 syncLimit=10