Skip to main content
These settings configure the ClickHouse server and are autogenerated from ClickHouse source.

user_directories

Section of the configuration file that contains settings:
  • Path to configuration file with predefined users.
  • Path to folder where users created by SQL commands are stored.
  • ZooKeeper node path where users created by SQL commands are stored and replicated.
If this section is specified, the path from users_config and access_control_path won’t be used. The user_directories section can contain any number of items, the order of the items means their precedence (the higher the item the higher the precedence). Examples
Users, roles, row policies, quotas, and profiles can be also stored in ZooKeeper:
You can also define sections memory — means storing information only in memory, without writing to disk, and ldap — means storing information on an LDAP server. To add an LDAP server as a remote user directory of users that are not defined locally, define a single ldap section with the following settings: Example

user_files_path

The directory with user files. Used in the table function file(), fileCluster(). Example

user_profile_events_per_cpu

Shard per-user ProfileEvents counters per CPU to avoid cross-CPU cache-line contention under high thread counts. Each user pays getNumCPUs() * num_events * sizeof(atomic) of memory (hundreds of KiB on machines with many cores). Disable to fall back to a single shared atomic per event per user, trading throughput for memory.

user_scripts_path

The directory with user scripts files. Used for Executable user defined functions Executable User Defined Functions. Example
Last modified on July 23, 2026