clickhouse配置文件更改
1. 去掉冷热数据配置
This commit is contained in:
@@ -171,7 +171,3 @@ galaxy_mariadb_port: 3306
|
||||
#mariadb 用户
|
||||
galaxy_mariadb_username: root
|
||||
|
||||
#===========================Clickhouse===============================#
|
||||
#ssd磁盘挂载的目录, 如果没有ssd磁盘可选择一块普通磁盘, 路径后面的'/'不可省略
|
||||
clickhouse_ssd_path: /ssd_data/clickhouse/
|
||||
|
||||
|
||||
@@ -64,10 +64,10 @@
|
||||
run_once: true
|
||||
delegate_to: 127.0.0.1
|
||||
|
||||
- name: create clickhouse ssd data path:{{ clickhouse_ssd_path }}
|
||||
file:
|
||||
state: directory
|
||||
path: '{{ clickhouse_ssd_path }}'
|
||||
#- name: create clickhouse ssd data path:{{ clickhouse_ssd_path }}
|
||||
# file:
|
||||
# state: directory
|
||||
# path: '{{ clickhouse_ssd_path }}'
|
||||
|
||||
- name: create clickhouse package path:{{ install_path }}/clickhouse
|
||||
file:
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
<storage_configuration>
|
||||
<disks>
|
||||
<ssd>
|
||||
<path>{{ clickhouse_ssd_path }}</path>
|
||||
<path>if you want wo use this policies, please config the ssd mount path</path>
|
||||
</ssd>
|
||||
</disks>
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
- { file: 'clickhouse-client-{{ clickhouse_version }}-1.el7.x86_64' }
|
||||
when: odbc_install.stdout != '0' and inventory_hostname != (groups.clickhouse[0]) and inventory_hostname != (groups.clickhouse[1])
|
||||
|
||||
- name: set dir user
|
||||
shell: chown clickhouse:clickhouse -R {{ data_path }}/clickhouse/ && chown clickhouse:clickhouse -R {{ clickhouse_ssd_path }}
|
||||
when: inventory_hostname != (groups.clickhouse[0]) and inventory_hostname != (groups.clickhouse[1])
|
||||
#- name: set dir user
|
||||
# shell: chown clickhouse:clickhouse -R {{ data_path }}/clickhouse/ && chown clickhouse:clickhouse -R {{ clickhouse_ssd_path }}
|
||||
# when: inventory_hostname != (groups.clickhouse[0]) and inventory_hostname != (groups.clickhouse[1])
|
||||
|
||||
- name: copy clickhouse-server to /etc/init.d/
|
||||
shell: yes | cp -r {{ data_path }}/clickhouse/clickhouse-server/clickhouse-server /etc/init.d/clickhouse-server
|
||||
|
||||
Reference in New Issue
Block a user