Merge pull request #64854 from xogoodnow/mlock-parameter

Added mlock_executable parameter
This commit is contained in:
Alexey Milovidov 2024-06-06 02:21:40 +02:00 committed by GitHub
commit 4dac9dacc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1206,6 +1206,16 @@ Expired time for HSTS in seconds. The default value is 0 means clickhouse disabl
<hsts_max_age>600000</hsts_max_age>
```
## mlock_executable {#mlock_executable}
Perform mlockall after startup to lower first queries latency and to prevent clickhouse executable from being paged out under high IO load. Enabling this option is recommended but will lead to increased startup time for up to a few seconds.
Keep in mind that this parameter would not work without "CAP_IPC_LOCK" capability.
**Example**
``` xml
<mlock_executable>false</mlock_executable>
```
## include_from {#include_from}
The path to the file with substitutions. Both XML and YAML formats are supported.