Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Update configs and README.md with Yandex -> ClickHouse, Inc changes (#85
Browse files Browse the repository at this point in the history
)

* Update README with ClickHouse, Inc. changes

With the move to a new company structure the links have changed and
documentation will need to be updated.

Change-Id: Ib682d9a7f204e4fdb6ed228443f119fb652011b4

* Update meta info and remove yandex mention

Yandex is no longer involved with ClickHouse, instead it is managed as
it's own company called ClickHouse, Inc.

Change-Id: I7cad3269b90d7ef0d8d59577cb9874f619fb99ea

* Update link in apt.yaml

Change-Id: Ia0a54e69a29f607d0d29d313aa1d68191b5fbbcc

* Update link in dnf.yaml

Change-Id: I66b377b5803a7187023b5aa8d988a21a2b33be92

* Update link in yum.yml

Change-Id: I606f7c88c332820c2e9e248494c5c7d42f2f4a62

* Update config.j2 with yandex rename

Change-Id: Id0888d4afe2e574bfeba348099f9eefff36582bd

* Update dicts.j2 with yandex rename

Change-Id: Ic02c90da2d4cb237bf2f2c0c29e0c24423eec45d

* Update macros.j2 with yandex rename

Change-Id: I1ad641d2342985a6147acd492300a0c96837e9a1

* Update remote_servers.j2 with yandex rename

Change-Id: If78a3d74c61781396635776056a7063145179ff7

* Update users.j2 with yandex rename

Change-Id: Ia25a6a01cff932233d60af21c4d5e84b2b2e153a

* Update zookeeper-servers.j2 with yandex rename

Change-Id: Ia752e2c3c9d26b42c8a8e3fc3d2d6d1c5138aa91
  • Loading branch information
AntonFriberg authored Apr 2, 2022
1 parent 7d3e49a commit 28de30c
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 32 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ F: Flag for remove clickhouse from host(disabled by default)
clickhouse_remove: no
```
F: You can manage [Kafka configuration](https://clickhouse.yandex/docs/en/operations/table_engines/kafka/#configuration)
F: You can manage [Kafka configuration](https://clickhouse.com/docs/en/engines/table-engines/integrations/kafka/#configuration)
```yaml
# global configuration
clickhouse_kafka_config:
Expand Down Expand Up @@ -214,7 +214,7 @@ clickhouse_ldap_user_directories:
prefix: "clickhouse_
```
F: You can manage Merge Tree config. For the list of available parameters, see [MergeTreeSettings.h](https://github.com/yandex/ClickHouse/blob/master/dbms/src/Storages/MergeTree/MergeTreeSettings.h).
F: You can manage Merge Tree config. For the list of available parameters, see [MergeTree tables settings](https://clickhouse.com/docs/en/operations/settings/merge-tree-settings/).
```yaml
clickhouse_merge_tree_config:
max_suspicious_broken_parts: 5
Expand Down Expand Up @@ -326,7 +326,7 @@ BSD
Author Information
------------------
[ClickHouse](https://clickhouse.yandex/docs/en/index.html) by [Yandex LLC](https://yandex.ru/company/).
[ClickHouse](https://clickhouse.com/docs/en/index.html) by [ClickHouse, Inc.](https://clickhouse.com/company/).
Role by [AlexeySetevoi](https://github.com/AlexeySetevoi).
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ galaxy_info:
role_name: clickhouse
namespace: alexeysetevoi
author: Alexey V. Bobrov
description: Role for installation and managing Yandex.ClickHouse
description: Role for installation and managing ClickHouse

license: MIT

Expand Down
2 changes: 1 addition & 1 deletion tasks/install/apt.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#Main installation actions
#https://clickhouse.yandex/docs/en/getting_started/index.html#installation
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Install by APT | Apt-key add repo key
apt_key:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install/dnf.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#Main installation actions
#https://clickhouse.yandex/docs/en/getting_started/index.html#installation
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Install by YUM | Ensure clickhouse repo GPG key imported
rpm_key:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install/yum.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#Main installation actions
#https://clickhouse.yandex/docs/en/getting_started/index.html#installation
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Install by YUM | Ensure clickhouse repo GPG key imported
rpm_key:
Expand Down
2 changes: 1 addition & 1 deletion tasks/remove/apt.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#Main installation actions
#https://clickhouse.yandex/docs/en/getting_started/index.html#installation
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Uninstall by APT | Package uninstallation
apt:
Expand Down
2 changes: 1 addition & 1 deletion tasks/remove/dnf.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#Main installation actions
#https://clickhouse.yandex/docs/en/getting_started/index.html#installation
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Uninstall by YUM | Ensure clickhouse package uninstalled
dnf:
Expand Down
2 changes: 1 addition & 1 deletion tasks/remove/yum.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#Main installation actions
#https://clickhouse.yandex/docs/en/getting_started/index.html#installation
#https://clickhouse.com/docs/en/getting-started/#installation

- name: Uninstall by YUM | Ensure clickhouse package uninstalled
yum:
Expand Down
23 changes: 11 additions & 12 deletions templates/config.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#jinja2: trim_blocks: True, lstrip_blocks: True
<?xml version="1.0"?>
{{ ansible_managed | comment('xml') }}
<yandex>
<clickhouse>
<logger>
<!-- Possible levels: https://github.com/pocoproject/poco/blob/develop/Foundation/include/Poco/Logger.h#L105 -->
<level>{{ clickhouse_logger.level }}</level>
Expand Down Expand Up @@ -61,7 +61,7 @@
This setting could be used to switch replication to another network interface.
-->
<!--
<interserver_http_host>example.yandex.ru</interserver_http_host>
<interserver_http_host>example.clickhouse.com</interserver_http_host>
-->
{% if clickhouse_interserver_http_host is defined %}
<interserver_http_host>{{ clickhouse_interserver_http_host }}</interserver_http_host>
Expand Down Expand Up @@ -146,27 +146,26 @@
<mlock_executable>{{ clickhouse_mlock_status }}</mlock_executable>

<!-- Configuration of clusters that could be used in Distributed tables.
https://clickhouse.yandex/docs/en/table_engines/distributed/
https://clickhouse.com/docs/en/engines/table-engines/special/distributed/
-->
<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.
Values for substitutions are specified in /clickhouse/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.
See https://clickhouse.yandex/docs/en/table_engines/replication/
See https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/replication/
-->
<zookeeper incl="zookeeper-servers" optional="true" />

<!-- Substitutions for parameters of replicated tables.
Optional. If you don't use replicated tables, you could omit that.
See https://clickhouse.yandex/docs/en/table_engines/replication/#creating-replicated-tables
See https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/replication/#creating-replicated-tables
-->
<macros incl="macros" optional="true" />

Expand All @@ -175,7 +174,7 @@
<builtin_dictionaries_reload_interval>{{ clickhouse_config.builtin_dictionaries_reload_interval }}</builtin_dictionaries_reload_interval>

<!-- If true, dictionaries are created lazily on first use. Otherwise they are initialised on server startup. Default: true -->
<!-- See also: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server_configuration_parameters-dictionaries_lazy_load -->
<!-- See also: https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings/#server_configuration_parameters-dictionaries_lazy_load -->
<dictionaries_lazy_load>{{ clickhouse_config.dictionaries_lazy_load }}</dictionaries_lazy_load>

<!-- Maximum session timeout, in seconds. Default: 3600. -->
Expand Down Expand Up @@ -256,7 +255,7 @@
<database>system</database>
<table>query_log</table>
<!--
PARTITION BY expr https://clickhouse.yandex/docs/en/table_engines/custom_partitioning_key/
PARTITION BY expr https://clickhouse.com/docs/en/table_engines/mergetree-family/custom_partitioning_key/
Example:
event_date
toMonday(event_date)
Expand Down Expand Up @@ -291,7 +290,7 @@


<!-- Parameters for embedded dictionaries, used in Yandex.Metrica.
See https://clickhouse.yandex/docs/en/dicts/internal_dicts/
See https://clickhouse.com/docs/en/dicts/internal_dicts/
-->

<!-- Path to file with region hierarchy. -->
Expand All @@ -302,7 +301,7 @@


<!-- Configuration of external dictionaries. See:
https://clickhouse.yandex/docs/en/dicts/external_dicts/
https://clickhouse.com/docs/en/sql-reference/dictionaries/external-dictionaries/external-dicts
-->
<dictionaries_config>*_dictionary.xml</dictionaries_config>

Expand Down Expand Up @@ -512,4 +511,4 @@
</s3>
{% endif %}

</yandex>
</clickhouse>
4 changes: 2 additions & 2 deletions templates/dicts.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
{{ ansible_managed | comment('xml') }}
<yandex>
<clickhouse>
{% for dict in clickhouse_dicts %}
<dictionary>
<name>{{ clickhouse_dicts[dict].name }}</name>
Expand Down Expand Up @@ -42,4 +42,4 @@
</structure>
</dictionary>
{% endfor %}
</yandex>
</clickhouse>
4 changes: 2 additions & 2 deletions templates/macros.j2
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
{{ ansible_managed | comment('xml') }}
<yandex>
<clickhouse>
<macros>
{% for key, value in clickhouse_macros.items() %}
<{{ key }}>{{ value }}</{{ key }}>
{% endfor %}
</macros>
</yandex>
</clickhouse>
4 changes: 2 additions & 2 deletions templates/remote_servers.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
{{ ansible_managed | comment('xml') }}
<yandex>
<clickhouse>
<remote_servers>
{% for clusters_name, shards_name in clickhouse_clusters.items() | list %}
<{{ clusters_name }}>
Expand All @@ -18,4 +18,4 @@
</{{ clusters_name }}>
{% endfor %}
</remote_servers>
</yandex>
</clickhouse>
4 changes: 2 additions & 2 deletions templates/users.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
{{ ansible_managed | comment('xml') }}
<yandex>
<clickhouse>
<profiles>
<!-- Profiles of settings. -->
<!-- Default profiles. -->
Expand Down Expand Up @@ -121,4 +121,4 @@
</{{ quota.name }}>
{% endfor %}
</quotas>
</yandex>
</clickhouse>
4 changes: 2 additions & 2 deletions templates/zookeeper-servers.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
{{ ansible_managed | comment('xml') }}
<yandex>
<clickhouse>
<zookeeper>
{% for server in clickhouse_zookeeper_nodes %}
<node index="{{loop.index}}">
Expand All @@ -10,4 +10,4 @@
</node>
{% endfor %}
</zookeeper>
</yandex>
</clickhouse>

0 comments on commit 28de30c

Please sign in to comment.