system.server_settings table. The changeable_without_restart column says whether the server applies a new value when it reloads its configuration file, or only when it starts. The column is an Enum8 with four values, not a boolean.
This article is about self-managed ClickHouse, where you edit the server configuration files yourself.
Check a setting
Because the column is an enum, compare it with a name instead of a number. A test such as
changeable_without_restart != 0 also matches IncreaseOnly and DecreaseOnly, which are applied in one direction only:
How a change is applied
- Put the new value into a file in the
config.ddirectory next to the main configuration file (see Configuration files). - The server checks its configuration files for changes every
config_reload_interval_msmilliseconds (2000 by default) and reloads them when they change. To reload at once, runSYSTEM RELOAD CONFIG. - If the setting is
No, orIncreaseOnlyand you lowered it, restart the server.
Verify the value in use
changed is 1 when the setting is specified in the configuration.
For a setting that can be changed at runtime (Yes, IncreaseOnly), value is the value the running server uses, so you can watch it change after a reload. For a setting marked No, value is read from the loaded configuration: after you edit the file it can already show the new value although the server still works with the old one until it is restarted.
What the table does not cover
- Users and their settings defined in
users.xmlorusers.dare not server settings. The server reloads them on the fly. - Server-wide defaults for
MergeTreetables (themerge_treesection of the configuration file) are computed once and kept for the lifetime of the server process, including the effect that thecompatibilitysetting of the default profile has on them. Changing them requires a restart. To change a setting of one table without a restart, useALTER TABLE ... MODIFY SETTING.