@@ -119,11 +119,15 @@ clickhouse:
119119 - settings/remote_servers/* : " no"
120120 - settings/user_directories/* : " no"
121121
122+ # these settings should not lead to pod restarts
123+ - settings/display_secrets_in_show_and_select : " no"
124+
122125 - zookeeper/* : " yes"
123126
124127 - files/*.xml : " yes"
125128 - files/config.d/*.xml : " yes"
126129 - files/config.d/*dict*.xml : " no"
130+ - files/config.d/*no_restart* : " no"
127131
128132 # exceptions in default profile
129133 - profiles/default/background_*_pool_size : " yes"
@@ -147,7 +151,6 @@ clickhouse:
147151 # These credentials are used for:
148152 # 1. Metrics requests
149153 # 2. Schema maintenance
150- # 3. DROP DNS CACHE
151154 # User with these credentials can be specified in additional ClickHouse .xml config files,
152155 # located in 'clickhouse.configuration.file.path.user' folder
153156 username : " clickhouse_operator"
@@ -173,9 +176,61 @@ clickhouse:
173176 # Specified in seconds.
174177 timeouts :
175178 # Timout to setup connection from the operator to ClickHouse instances. In seconds.
176- connect : 2
179+ connect : 1
177180 # 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 :
179234
180235 # ################################################
181236 # #
@@ -250,7 +305,7 @@ reconcile:
250305 # Reconcile runtime settings
251306 runtime :
252307 # Max number of concurrent CHI reconciles in progress
253- reconcileCHIsThreadsNumber : 10
308+ reconcileCHIsThreadsNumber : 1
254309
255310 # The operator reconciles shards concurrently in each CHI with the following limitations:
256311 # 1. Number of shards being reconciled (and thus having hosts down) in each CHI concurrently
@@ -261,7 +316,7 @@ reconcile:
261316 # Thus limiting number of shards being reconciled (and thus having hosts down) in each CHI by both number and percentage
262317
263318 # Max number of concurrent shard reconciles within one CHI in progress
264- reconcileShardsThreadsNumber : 5
319+ reconcileShardsThreadsNumber : 1
265320 # Max percentage of concurrent shard reconciles within one CHI in progress
266321 reconcileShardsMaxConcurrencyPercent : 50
267322
@@ -306,6 +361,10 @@ reconcile:
306361 exclude : true
307362 queries : true
308363 include : false
364+ replicas :
365+ all : no
366+ new : yes
367+ delay : 10
309368
310369# ###############################################
311370# #
0 commit comments