@@ -119,11 +119,15 @@ clickhouse:
119
119
- settings/remote_servers/* : " no"
120
120
- settings/user_directories/* : " no"
121
121
122
+ # these settings should not lead to pod restarts
123
+ - settings/display_secrets_in_show_and_select : " no"
124
+
122
125
- zookeeper/* : " yes"
123
126
124
127
- files/*.xml : " yes"
125
128
- files/config.d/*.xml : " yes"
126
129
- files/config.d/*dict*.xml : " no"
130
+ - files/config.d/*no_restart* : " no"
127
131
128
132
# exceptions in default profile
129
133
- profiles/default/background_*_pool_size : " yes"
@@ -147,7 +151,6 @@ clickhouse:
147
151
# These credentials are used for:
148
152
# 1. Metrics requests
149
153
# 2. Schema maintenance
150
- # 3. DROP DNS CACHE
151
154
# User with these credentials can be specified in additional ClickHouse .xml config files,
152
155
# located in 'clickhouse.configuration.file.path.user' folder
153
156
username : " clickhouse_operator"
@@ -173,9 +176,61 @@ clickhouse:
173
176
# Specified in seconds.
174
177
timeouts :
175
178
# Timout to setup connection from the operator to ClickHouse instances. In seconds.
176
- connect : 2
179
+ connect : 1
177
180
# Timout to perform SQL query from the operator to ClickHouse instances. In seconds.
178
- query : 5
181
+ query : 4
182
+
183
+ # ###############################################
184
+ # #
185
+ # # Addons specifies additional configuration sections
186
+ # # Should it be called something like "templates"?
187
+ # #
188
+ # ###############################################
189
+ addons :
190
+ rules :
191
+ - version : " *"
192
+ spec :
193
+ configuration :
194
+ users :
195
+ profiles :
196
+ quotas :
197
+ settings :
198
+ files :
199
+ - version : " >= 23.3"
200
+ spec :
201
+ configuration :
202
+ # ##
203
+ # ## users.d is global while description depends on CH version which may vary on per-host basis
204
+ # ## In case of global-ness this may be better to implement via auto-templates
205
+ # ##
206
+ # ## As a solution, this may be applied on the whole cluster based on any of its hosts
207
+ # ##
208
+ # ## What to do when host is just created? CH version is not known prior to CH started and user config is required before CH started.
209
+ # ## We do not have any info about the cluster on initial creation
210
+ # ##
211
+ users :
212
+ " {clickhouseOperatorUser}/access_management " : 1
213
+ " {clickhouseOperatorUser}/named_collection_control " : 1
214
+ " {clickhouseOperatorUser}/show_named_collections " : 1
215
+ " {clickhouseOperatorUser}/show_named_collections_secrets " : 1
216
+ profiles :
217
+ quotas :
218
+ settings :
219
+ files :
220
+
221
+ - version : " >= 23.5"
222
+ spec :
223
+ configuration :
224
+ users :
225
+ profiles :
226
+ clickhouse_operator/format_display_secrets_in_show_and_select : 1
227
+ quotas :
228
+ settings :
229
+ # #
230
+ # # this may be added on per-host basis into host's conf.d folder
231
+ # #
232
+ display_secrets_in_show_and_select : 1
233
+ files :
179
234
180
235
# ################################################
181
236
# #
@@ -250,7 +305,7 @@ reconcile:
250
305
# Reconcile runtime settings
251
306
runtime :
252
307
# Max number of concurrent CHI reconciles in progress
253
- reconcileCHIsThreadsNumber : 10
308
+ reconcileCHIsThreadsNumber : 1
254
309
255
310
# The operator reconciles shards concurrently in each CHI with the following limitations:
256
311
# 1. Number of shards being reconciled (and thus having hosts down) in each CHI concurrently
@@ -261,7 +316,7 @@ reconcile:
261
316
# Thus limiting number of shards being reconciled (and thus having hosts down) in each CHI by both number and percentage
262
317
263
318
# Max number of concurrent shard reconciles within one CHI in progress
264
- reconcileShardsThreadsNumber : 5
319
+ reconcileShardsThreadsNumber : 1
265
320
# Max percentage of concurrent shard reconciles within one CHI in progress
266
321
reconcileShardsMaxConcurrencyPercent : 50
267
322
@@ -306,6 +361,10 @@ reconcile:
306
361
exclude : true
307
362
queries : true
308
363
include : false
364
+ replicas :
365
+ all : no
366
+ new : yes
367
+ delay : 10
309
368
310
369
# ###############################################
311
370
# #
0 commit comments