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.
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
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(). Exampleuser_profile_events_per_cpu
Shard per-userProfileEvents 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.