【问题标题】:How to check whether Clickhouse server-settings is really applied?如何检查是否真的应用了 Clickhouse 服务器设置?
【发布时间】:2021-05-03 04:00:01
【问题描述】:

我为CH应用了设置max_concurrent_queries,但不确定它是否生效。

这个设置值可以从clickhouse-client查询吗?我找不到任何命令来做到这一点。有人可以帮忙吗?

【问题讨论】:

    标签: clickhouse


    【解决方案1】:

    max_concurrent_queries 是通过config-file配置的server param

    例如:

    sudo nano /etc/clickhouse-server/config.d/config.xml
    

    config.xml:

    <yandex>
         <max_concurrent_queries>256</max_concurrent_queries>
    </yandex>
    

    检查是否已分配给配置:

    sudo cat /var/lib/clickhouse/preprocessed_configs/config.xml
    

    重启服务以应用它:

    sudo service clickhouse-server restart
    

    【讨论】:

      猜你喜欢
      • 2021-09-24
      • 1970-01-01
      • 1970-01-01
      • 2011-11-12
      • 2016-12-05
      • 1970-01-01
      • 2021-03-07
      • 1970-01-01
      • 2013-10-01
      相关资源
      最近更新 更多