]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: Add thread-map config parameter in the global section
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Oct 2017 13:49:32 +0000 (15:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:33 +0000 (13:58 +0100)
commit6251902e6731182c5bec30e4d1fa94c9fe0def22
treec891ccd52c8f842a736ac697ecf7ae3d4d637839
parentb2812a624096280489a0c7a1aabfbe1c94884d12
MINOR: threads: Add thread-map config parameter in the global section

By default, no affinity is set for threads. To bind threads on CPU, you must
define a "thread-map" in the global section. The format is the same than the
"cpu-map" parameter, with a small difference. The process number must be
defined, with the same format than cpu-map ("all", "even", "odd" or a number
between 1 and 31/63).

A thread will be bound on the intersection of its mapping and the one of the
process on which it is attached. If the intersection is null, no specific bind
will be set for the thread.
doc/configuration.txt
include/types/global.h
src/cfgparse.c
src/haproxy.c