2017-12-28 15:13:23 +00:00
|
|
|
<a name="settings"></a>
|
|
|
|
|
|
|
|
# Settings
|
|
|
|
|
|
|
|
There are multiple ways to make all the settings described below.
|
|
|
|
Settings are configured in layers, so each subsequent layer redefines the previous settings.
|
|
|
|
|
|
|
|
Ways to configure settings, in order of priority:
|
|
|
|
|
2018-09-04 11:18:59 +00:00
|
|
|
- Settings in the `users.xml` server configuration file.
|
2017-12-28 15:13:23 +00:00
|
|
|
|
2018-09-04 11:18:59 +00:00
|
|
|
Set in the element `<profiles>`.
|
2017-12-28 15:13:23 +00:00
|
|
|
|
2018-03-25 02:04:22 +00:00
|
|
|
- Session settings.
|
2017-12-28 15:13:23 +00:00
|
|
|
|
2018-09-04 11:18:59 +00:00
|
|
|
Send ` SET setting=value` from the ClickHouse console client in interactive mode.
|
2017-12-28 15:13:23 +00:00
|
|
|
Similarly, you can use ClickHouse sessions in the HTTP protocol. To do this, you need to specify the `session_id` HTTP parameter.
|
|
|
|
|
2018-09-04 11:18:59 +00:00
|
|
|
- Query settings.
|
|
|
|
- When starting the ClickHouse console client in non-interactive mode, set the startup parameter `--setting=value`.
|
|
|
|
- When using the HTTP API, pass CGI parameters (`URL?setting_1=value&setting_2=value...`).
|
2017-12-28 15:13:23 +00:00
|
|
|
|
|
|
|
Settings that can only be made in the server config file are not covered in this section.
|
2018-09-04 11:18:59 +00:00
|
|
|
|
2018-10-16 10:47:17 +00:00
|
|
|
|
|
|
|
[Original article](https://clickhouse.yandex/docs/en/operations/settings/) <!--hide-->
|