MINOR: applet: assign the same nice value to a new appctx as its owner task
authorWilly Tarreau <w@1wt.eu>
Thu, 31 May 2018 12:44:25 +0000 (14:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Jun 2018 09:18:21 +0000 (11:18 +0200)
commit10d81b8757f71ed85bce3fcc80125545fd75a178
treea98466b4bd289c86cbc7f3ddd430b255ac3168d8
parent34b1facbcf0e7abbf3c58709d1a9cbe4ac608519
MINOR: applet: assign the same nice value to a new appctx as its owner task

When an applet is created, let's assign it the same nice value as the task
of the stream which owns it. It ensures that fairness is properly propagated
to applets, and that the CLI can regain a low latency behaviour again. Huge
differences have been seen under extreme loads, with the CLI being called
every 200 microseconds instead of 11 milliseconds.
include/proto/stream_interface.h