-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #575 from openedx/cag/fix-clickhouse-settings
refactor: use patch for clickhouse settings
- Loading branch information
Showing
9 changed files
with
78 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
IMPORTANT: This patch is not applied to Clickhouse Cloud Providers. | ||
make sure to contact your cloud provider support to apply this patch. | ||
|
||
These are miscellaneous ClickHouse server settings, which get mounted to | ||
/etc/clickhouse-server/config.d/docker_config.xml | ||
|
||
See https://clickhouse.com/docs/en/operations/configuration-files for details. | ||
|
||
These default settings allow connecting to Clickhouse when run as a | ||
standalone docker container, instead of through docker-compose. | ||
--> | ||
|
||
<!-- | ||
Port for HTTP API. See also 'https_port' for secure connections. | ||
This interface is also used by ODBC and JDBC drivers (DataGrip, Dbeaver, ...) | ||
and by most of web interfaces (embedded UI, Grafana, Redash, ...). | ||
--> | ||
<http_port>{{CLICKHOUSE_INTERNAL_HTTP_PORT}}</http_port> | ||
|
||
<!-- | ||
Port for interaction by native protocol with: | ||
- clickhouse-client and other native ClickHouse tools (clickhouse-benchmark, | ||
clickhouse-copier); | ||
- clickhouse-server with other clickhouse-servers for distributed query processing; | ||
- ClickHouse drivers and applications supporting native protocol | ||
(this protocol is also informally called as "the TCP protocol"); | ||
See also 'tcp_port_secure' for secure connections. | ||
--> | ||
<tcp_port>{{CLICKHOUSE_INTERNAL_NATIVE_PORT}}</tcp_port> | ||
|
||
<listen_host>::</listen_host> | ||
<listen_host>0.0.0.0</listen_host> | ||
<listen_try>1</listen_try> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
IMPORTANT: This patch is not applied to Clickhouse Cloud Providers. | ||
make sure to contact your cloud provider support to apply this patch. | ||
|
||
Override configuration in users.xml. ClickHouse will read this from a mount on | ||
/etc/clickhouse-server/users.d/ on startup. | ||
|
||
The http settings revert back to the value from versions pre-23.6, | ||
when the default was changed from 1Mb to 128Kb. This allows larger POSTs such | ||
as the event sink sends from the LMS. | ||
|
||
NOTE: Currently this patch does not impact Kubernetes deployments. ClickHouse | ||
writes to the user directory that we want to override causing errors if we try | ||
to mount this file there: | ||
--> | ||
<profiles> | ||
<default> | ||
<http_max_field_value_size>1048576</http_max_field_value_size> | ||
<http_max_field_name_size>1048576</http_max_field_name_size> | ||
</default> | ||
</profiles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
tutoraspects/templates/aspects/apps/clickhouse/config/docker_config.xml
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
tutoraspects/templates/aspects/apps/clickhouse/config/server_config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<clickhouse> | ||
{{patch("clickhouse-server-config")}} | ||
</clickhouse> |
2 changes: 1 addition & 1 deletion
2
tutoraspects/templates/aspects/apps/clickhouse/users/user_config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<clickhouse> | ||
{{ CLICKHOUSE_EXTRA_USERS_XML_CONFIG }} | ||
{{patch("clickhouse-user-config")}} | ||
</clickhouse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters