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
408c3122d3
2 changed files with 23 additions and 3 deletions
|
|
@ -75,8 +75,11 @@ spec:
|
||||||
mountPath: /var/lib/clickhouse
|
mountPath: /var/lib/clickhouse
|
||||||
- name: clickhouse-override-server-config
|
- name: clickhouse-override-server-config
|
||||||
mountPath: /etc/clickhouse-server/config.d
|
mountPath: /etc/clickhouse-server/config.d
|
||||||
|
{{- range $filename, $_ := .Values.configOverride.userConfig }}
|
||||||
- name: clickhouse-override-user-config
|
- name: clickhouse-override-user-config
|
||||||
mountPath: /etc/clickhouse-server/config.d
|
mountPath: /etc/clickhouse-server/users.d/{{$filename}}
|
||||||
|
subPath: {{$filename}}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ storageSize: 100Gi
|
||||||
|
|
||||||
configOverride:
|
configOverride:
|
||||||
serverConfig:
|
serverConfig:
|
||||||
zzoverride.xml: |-
|
zz-server-override.xml: |-
|
||||||
# <clickhouse>
|
# <clickhouse>
|
||||||
# <logger>
|
# <logger>
|
||||||
# <level>information</level>
|
# <level>information</level>
|
||||||
|
|
@ -110,4 +110,21 @@ configOverride:
|
||||||
# <another_setting>value</another_setting>
|
# <another_setting>value</another_setting>
|
||||||
# </clickhouse>
|
# </clickhouse>
|
||||||
userConfig:
|
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