Projet

Général

Profil

Support #42249

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

Ajouté par Frédéric Péters il y a presque 4 ans. Mis à jour il y a plus de 2 ans.

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

Lié à w.c.s. - Development #44416: debian, paramétrage "cheaper" pour uwsgiFermé24 juin 2020

Actions
Lié à Chrono - Development #45455: modernisation uwsgi.iniFermé24 juillet 2020

Actions
Lié à Combo - Development #51313: uwsgi, cheaperFermé21 février 2021

Actions

Historique

#1

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.

#2

Mis à jour par Frédéric Péters il y a environ 3 ans

#3

Mis à jour par Frédéric Péters il y a environ 3 ans

#4

Mis à jour par Frédéric Péters il y a environ 3 ans

#5

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.

Formats disponibles : Atom PDF