forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
3.1 KiB
3.1 KiB
Enabling the CPU Priority Feature
Scenario
ClickHouse tenants support CPU priorities. This feature depends on CAP_SYS_NICE of the OS and takes effect only after being enabled.
Procedure
- Log in to the ClickHouseServer node as user root and run the following command:
setcap cap_sys_nice=+ep /opt/Bigdata/FusionInsight_ClickHouse_*/install/FusionInsight-ClickHouse-*/clickhouse/bin/clickhouse
- Log in to FusionInsight Manager and choose Cluster > Services > ClickHouse. Cick the Instance tab. Select all ClickHouseServer instances, and choose More > Restart Instance.
- Run the following command to check whether the CPU priority feature is enabled:
getcap /opt/Bigdata/FusionInsight_ClickHouse_*/install/FusionInsight-ClickHouse-*/clickhouse/bin/clickhouse
The following command output indicates that the feature has been enabled:/opt/Bigdata/FusionInsight_ClickHouse_*/install/FusionInsight-ClickHouse*/clickhouse/bin/clickhouse = cap_sys_nice+ep
- (Optional) If the current cluster runs SUSE, run the following command on each ClickHouseServer node:
sudo zypper install libcap-progs
Parent topic: ClickHouse Multi-Tenancy