- only-core <set> do not bind to CPUs on other hardware core number
- drop-thread <set> do not bind to CPUs on this hardware thread number
- only-thread <set> do not bind to CPUs on other hardware thread number
+ See also: "cpu-policy"
crt-base <dir>
Assigns a default directory to fetch SSL certificates from when a relative
processed by haproxy. See also "quic_enabled" sample fetch.
numa-cpu-mapping
- If running on a NUMA-aware platform, HAProxy inspects on startup the CPU
+ When running on a NUMA-aware platform with the cpu-policy is set to
+ "first-usable-node" (the default one), HAProxy inspects on startup the CPU
topology of the machine. If a multi-socket machine is detected, the affinity
is automatically calculated to run on the CPUs of a single node. This is done
in order to not suffer from the performance penalties caused by the
inter-socket bus latency. However, if the applied binding is non optimal on a
particular architecture, it can be disabled with the statement 'no
numa-cpu-mapping'. This automatic binding is also not applied if a nbthread
- statement is present in the configuration, or the affinity of the process is
+ statement is present in the configuration, if the affinity of the process is
already specified, for example via the 'cpu-map' directive or the taskset
- utility.
+ utility, or if the cpu-policy is set to any other value. See also "cpu-map",
+ "cpu-policy", "cpu-set".
ocsp-update.disable [ on | off ]
Disable completely the ocsp-update in HAProxy. Any ocsp-update configuration
} cpu_set_cfg;
/* CPU policy choice */
-static int cpu_policy = 0;
+static int cpu_policy = 1; // "first-usable-node"
/* list of CPU policies for "cpu-policy". The default one is the first one. */
static int cpu_policy_first_usable_node(int policy, int tmin, int tmax, int gmin, int gmax, char **err);