updated vector state

This commit is contained in:
Paul 2023-12-12 16:12:00 +01:00
parent 2f62aaf91f
commit 0033bec333
2 changed files with 5 additions and 3 deletions

View File

@ -4,13 +4,13 @@
{%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %} {%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %}
<node> <node>
<host>{{ nodename }}</host> <host>{{ nodename }}</host>
<port>{{ settings.port|default(9281) }}</port> <port>9281</port>
<secure>1</secure> <secure>1</secure>
</node> </node>
{%- endfor %} {%- endfor %}
</zookeeper> </zookeeper>
<keeper_server> <keeper_server>
<tcp_port_secure>{{ settings.port|default(9281) }}</tcp_port_secure> <tcp_port_secure>9281</tcp_port_secure>
<server_id>{{ clickhouse.clusters[clickhouse.cluster].nodes[salt['grains.get']('fqdn')].id }}</server_id> <server_id>{{ clickhouse.clusters[clickhouse.cluster].nodes[salt['grains.get']('fqdn')].id }}</server_id>
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path> <log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path> <snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
@ -27,7 +27,7 @@
<server> <server>
<id>{{ settings.id }}</id> <id>{{ settings.id }}</id>
<hostname>{{ nodename }}</hostname> <hostname>{{ nodename }}</hostname>
<port>{{ settings.port|default(9444) }}</port> <port>9444</port>
</server> </server>
{%- endfor %} {%- endfor %}
</raft_configuration> </raft_configuration>

View File

@ -5,6 +5,8 @@
<default_replica_path>/clickhouse/{cluster}/tables/{uuid}/{database}/{table}-{shard}</default_replica_path> <default_replica_path>/clickhouse/{cluster}/tables/{uuid}/{database}/{table}-{shard}</default_replica_path>
<logger> <logger>
<level>fatal</level> <level>fatal</level>
<count>5</count>
<size>200M</size>
</logger> </logger>
<max_server_memory_usage_to_ram_ratio>0.5</max_server_memory_usage_to_ram_ratio> <max_server_memory_usage_to_ram_ratio>0.5</max_server_memory_usage_to_ram_ratio>
<tcp_port_secure>9440</tcp_port_secure> <tcp_port_secure>9440</tcp_port_secure>