User Guide
Configuration

Configuration

A Pingora configuration file is a list of Pingora settings in yaml format.

Example

---
version: 1
threads: 2
pid_file: /run/pingora.pid
upgrade_sock: /tmp/pingora_upgrade.sock
user: nobody
group: webusers

Settings

Keymeaningvalue type
versionthe version of the conf, currently it is a constant 1number
pid_fileThe path to the pid filestring
daemonwhether to run the server in the backgroundbool
error_logthe path to error log output file. STDERR is used if not setstring
upgrade_sockthe path to the upgrade socket.string
threadsnumber of threads per servicenumber
userthe user the pingora server should be run under after daemonizationstring
groupthe group the pingora server should be run under after daemonizationstring
client_bind_to_ipv4source IPv4 addresses to bind to when connecting to serverlist of string
client_bind_to_ipv6source IPv6 addresses to bind to when connecting to serverlist of string
ca_fileThe path to the root CA filestring
work_stealingEnable work stealing runtime (default true). See Pingora runtime (WIP) section for more infobool
upstream_keepalive_pool_sizeThe number of total connections to keep in the connection poolnumber

Extension

Any unknown settings will be ignored. This allows extending the conf file to add and pass user defined settings. See User defined configuration section.