fix(clickhouse): update user config mount paths
Properly mount clickhouse user configuration files to the users.d directory with correct paths for each file. Also adds several performance-related settings to the default user profile including query cache and JSON type support. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
c196736c3c
commit
3bd2d7569a
2 changed files with 23 additions and 3 deletions
|
|
@ -75,8 +75,11 @@ spec:
|
|||
mountPath: /var/lib/clickhouse
|
||||
- name: clickhouse-override-server-config
|
||||
mountPath: /etc/clickhouse-server/config.d
|
||||
{{- range $filename, $_ := .Values.configOverride.userConfig }}
|
||||
- name: clickhouse-override-user-config
|
||||
mountPath: /etc/clickhouse-server/config.d
|
||||
mountPath: /etc/clickhouse-server/users.d/{{$filename}}
|
||||
subPath: {{$filename}}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ storageSize: 100Gi
|
|||
|
||||
configOverride:
|
||||
serverConfig:
|
||||
zzoverride.xml: |-
|
||||
zz-server-override.xml: |-
|
||||
# <clickhouse>
|
||||
# <logger>
|
||||
# <level>information</level>
|
||||
|
|
@ -110,4 +110,21 @@ configOverride:
|
|||
# <another_setting>value</another_setting>
|
||||
# </clickhouse>
|
||||
userConfig:
|
||||
user-default.xml: |-
|
||||
zz-user-override.xml: |-
|
||||
<clickhouse>
|
||||
<profiles>
|
||||
<default>
|
||||
<allow_experimental_json_type>1</allow_experimental_json_type>
|
||||
<use_query_cache>1</use_query_cache>
|
||||
<query_cache_min_query_duration>5000</query_cache_min_query_duration>
|
||||
<query_cache_ttl>900</query_cache_ttl>
|
||||
<query_cache_nondeterministic_function_handling>ignore</query_cache_nondeterministic_function_handling>
|
||||
<query_cache_system_table_handling>ignore</query_cache_system_table_handling>
|
||||
</default>
|
||||
</profiles>
|
||||
<users>
|
||||
<default>
|
||||
<profile>default</profile>
|
||||
</default>
|
||||
</users>
|
||||
</clickhouse>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue