-
Notifications
You must be signed in to change notification settings - Fork 541
Expand file tree
/
Copy path05-settings-10-macros.yaml
More file actions
105 lines (100 loc) · 5.92 KB
/
05-settings-10-macros.yaml
File metadata and controls
105 lines (100 loc) · 5.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: "macros"
spec:
configuration:
files:
simple_1.file: |
<yandex>
<!-- simple_1.file goes into {common} -->
</yandex>
"{common}/common_prefixed_1.file": |
<yandex>
<!-- common_prefixed_1.file -->
<!-- macros
# {chi} - ClickHouseInstallation name
# {cluster} - cluster name
# {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
# {shard} - shard name
# {shardIndex} - 0-based index of the shard in the cluster (BEWARE, this is an experimental feature)
# {replica} - replica name
# {replicaIndex} - 0-based index of the replica in the shard (BEWARE, this is an experimental feature)
# {chiScopeIndex} - 0-based index of the host in the chi (BEWARE, this is an experimental feature)
# {chiScopeCycleIndex} - 0-based index of the host's cycle in the chi-scope (BEWARE, this is an experimental feature)
# {chiScopeCycleOffset} - 0-based offset of the host in the chi-scope cycle (BEWARE, this is an experimental feature)
# {clusterScopeIndex} - 0-based index of the host in the cluster (BEWARE, this is an experimental feature)
# {clusterScopeCycleIndex} - 0-based index of the host's cycle in the cluster-scope (BEWARE, this is an experimental feature)
# {clusterScopeCycleOffset} - 0-based offset of the host in the cluster-scope cycle (BEWARE, this is an experimental feature)
# {shardScopeIndex} - 0-based index of the host in the shard (BEWARE, this is an experimental feature)
# {replicaScopeIndex} - 0-based index of the host in the replica (BEWARE, this is an experimental feature)
# {clusterScopeCycleHeadPointsToPreviousCycleTail} - 0-based cluster-scope index of previous cycle tail
-->
</yandex>
"{users}/users_prefixed_1.file": |
<yandex>
<!-- users_prefixed_1.file -->
<!-- macros
# {chi} - ClickHouseInstallation name
# {cluster} - cluster name
# {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
# {shard} - shard name
# {shardIndex} - 0-based index of the shard in the cluster (BEWARE, this is an experimental feature)
# {replica} - replica name
# {replicaIndex} - 0-based index of the replica in the shard (BEWARE, this is an experimental feature)
# {chiScopeIndex} - 0-based index of the host in the chi (BEWARE, this is an experimental feature)
# {chiScopeCycleIndex} - 0-based index of the host's cycle in the chi-scope (BEWARE, this is an experimental feature)
# {chiScopeCycleOffset} - 0-based offset of the host in the chi-scope cycle (BEWARE, this is an experimental feature)
# {clusterScopeIndex} - 0-based index of the host in the cluster (BEWARE, this is an experimental feature)
# {clusterScopeCycleIndex} - 0-based index of the host's cycle in the cluster-scope (BEWARE, this is an experimental feature)
# {clusterScopeCycleOffset} - 0-based offset of the host in the cluster-scope cycle (BEWARE, this is an experimental feature)
# {shardScopeIndex} - 0-based index of the host in the shard (BEWARE, this is an experimental feature)
# {replicaScopeIndex} - 0-based index of the host in the replica (BEWARE, this is an experimental feature)
# {clusterScopeCycleHeadPointsToPreviousCycleTail} - 0-based cluster-scope index of previous cycle tail
-->
</yandex>
"{hosts}/host_prefixed_1.file": |
<yandex>
<!-- host_prefixed_1.file -->
<!-- macros
# {chi} - ClickHouseInstallation name
# {cluster} - cluster name
# {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
# {shard} - shard name
# {shardIndex} - 0-based index of the shard in the cluster (BEWARE, this is an experimental feature)
# {replica} - replica name
# {replicaIndex} - 0-based index of the replica in the shard (BEWARE, this is an experimental feature)
# {chiScopeIndex} - 0-based index of the host in the chi (BEWARE, this is an experimental feature)
# {chiScopeCycleIndex} - 0-based index of the host's cycle in the chi-scope (BEWARE, this is an experimental feature)
# {chiScopeCycleOffset} - 0-based offset of the host in the chi-scope cycle (BEWARE, this is an experimental feature)
# {clusterScopeIndex} - 0-based index of the host in the cluster (BEWARE, this is an experimental feature)
# {clusterScopeCycleIndex} - 0-based index of the host's cycle in the cluster-scope (BEWARE, this is an experimental feature)
# {clusterScopeCycleOffset} - 0-based offset of the host in the cluster-scope cycle (BEWARE, this is an experimental feature)
# {shardScopeIndex} - 0-based index of the host in the shard (BEWARE, this is an experimental feature)
# {replicaScopeIndex} - 0-based index of the host in the replica (BEWARE, this is an experimental feature)
# {clusterScopeCycleHeadPointsToPreviousCycleTail} - 0-based cluster-scope index of previous cycle tail
-->
</yandex>
clusters:
- name: "c1"
layout:
shardsCount: 2
replicasCount: 2
reconciling:
runtime:
reconcileShardsThreadsNumber: 10
reconcileShardsMaxConcurrencyPercent: 50
macros:
sections:
users:
enabled: "yes"
profiles:
enabled: "yes"
quotas:
enabled: "yes"
settings:
enabled: "yes"
files:
enabled: "yes"
defaults:
replicasUseFQDN: "yes"