Не могу установить кластер clickhouse от AlexeySetevoi
- Установка zookeeper cluster inventory:
[zookeeper]
172.26.9.211 zookeeper_myid=1
172.26.9.212 zookeeper_myid=2
172.26.9.213 zookeeper_myid=3
[zookeeper-quorum]
host[1:3]
playbook
- hosts: zookeeper
roles:
- andrewrothstein.zookeeper-cluster
- Установка clickhouse cluster inventory:
[clickhouse_cluster]
172.26.9.211
172.26.9.212
172.26.9.213
playbook
- hosts: clickhouse_cluster
become: yes
vars:
clickhouse_shards:
your_shard_name:
- { host: "172.26.9.211", port: 9000 }
- { host: "172.26.9.212", port: 9000 }
- { host: "172.26.9.213", port: 9000 }
clickhouse_zookeeper_nodes:
- { host: "172.26.9.211", port: 2181 }
- { host: "172.26.9.212", port: 2181 }
- { host: "172.26.9.213", port: 2181 }
roles:
- ansible-clickhouse
Конфиг:
[root@nginx-log-collector-apatsev-2 ~]# cat /etc/clickhouse-server/config.xml |grep -A 10 remote
<remote_servers incl="clickhouse_remote_servers" />
<!-- If element has 'incl' attribute, then for it's value will be used corresponding substitution from another file.
By default, path to file with substitutions is /etc/metrika.xml. It could be changed in config in 'include_from' element.
Values for substitutions are specified in /yandex/name_of_substitution elements in that file.
-->
<!-- ZooKeeper is used to store metadata about replicas, when using Replicated tables.
Optional. If you don't use replicated tables, you could omit that.
Может быть playbook как-то по другому нужно было описать?