Project

General

Profile

Support #42249

arrêter d'être cheap sur les process lancés par uwsgi

Added by Frédéric Péters about 1 year ago. Updated about 1 year ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
29 Apr 2020
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No
Club:
No

Description

cf https://www.techatbloomberg.com/blog/configuring-uwsgi-production-deployment/ Dynamic Worker Scaling (cheaper)

je propose de réfléchir à ça et que toutes nos applications se donnent davantage de place pour gérer la montée en charge,

cheaper-algo = busyness              
processes = 500                      ; Maximum number of workers allowed
cheaper = 8                          ; Minimum number of workers allowed
cheaper-initial = 16                 ; Workers created at startup
cheaper-overload = 1                 ; Length of a cycle in seconds
cheaper-step = 16                    ; How many workers to spawn at a time

cheaper-busyness-multiplier = 30     ; How many cycles to wait before killing workers
cheaper-busyness-min = 20            ; Below this threshold, kill workers (if stable for multiplier cycles)
cheaper-busyness-max = 70            ; Above this threshold, spawn new workers
cheaper-busyness-backlog-alert = 16  ; Spawn emergency workers if more than this many requests are waiting in the queue
cheaper-busyness-backlog-step = 2    ; How many emergegency workers to create if there are too many requests in the queue

Related issues

Related to w.c.s. - Development #44416: debian, paramétrage "cheaper" pour uwsgiSolution déployée24 Jun 2020

Actions
Related to Chrono - Development #45455: modernisation uwsgi.iniSolution déployée24 Jul 2020

Actions
Related to Combo - Development #51313: uwsgi, cheaperSolution déployée21 Feb 2021

Actions

History

#1

Updated by Thomas Noël about 1 year ago

Yep. Il faut juste s'assurer que ça ne se base pas sur la charge de la machine, parce qu'elle est globale à l'hôte sur nos saas.

#2

Updated by Frédéric Péters 4 months ago

#3

Updated by Frédéric Péters 4 months ago

#4

Updated by Frédéric Péters 4 months ago

Also available in: Atom PDF