Support #42249
arrêter d'être cheap sur les process lancés par uwsgi
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
29 avril 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Club:
Non
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
Demandes liées
Historique
Mis à jour par Thomas Noël il y a presque 4 ans
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.
Mis à jour par Frédéric Péters il y a environ 3 ans
- Lié à Development #44416: debian, paramétrage "cheaper" pour uwsgi ajouté
Mis à jour par Frédéric Péters il y a environ 3 ans
- Lié à Development #45455: modernisation uwsgi.ini ajouté
Mis à jour par Frédéric Péters il y a environ 3 ans
- Lié à Development #51313: uwsgi, cheaper ajouté
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Nouveau à Fermé
C'est passé comme ça partout.