BUG/MINOR: listener: renice the accept ring processing task

It is not acceptable that the accept queues are handled with a normal
priority since they are supposed to quickly dispatch the incoming
traffic, resulting in tasks which will have their respective nice
values and place in the queue. Let's renice the accept ring tasks
to -1024.

No backport is needed, this is strictly 2.0.
This commit is contained in:
Willy Tarreau 2019-04-12 15:25:04 +02:00
parent 587a8130b1
commit 0d858446b6

View File

@ -201,6 +201,7 @@ static int accept_queue_init()
ha_alert("Out of memory while initializing accept queue for thread %d\n", i); ha_alert("Out of memory while initializing accept queue for thread %d\n", i);
return ERR_FATAL|ERR_ABORT; return ERR_FATAL|ERR_ABORT;
} }
t->nice = -1024;
t->process = accept_queue_process; t->process = accept_queue_process;
t->context = &accept_queue_rings[i]; t->context = &accept_queue_rings[i];
accept_queue_rings[i].task = t; accept_queue_rings[i].task = t;