Scaling vertical et horizontal

Choisissez la taille des dynos (vertical) et leur nombre (horizontal). Auto-scaling sur Pro.

Vertical : taille des dynos

TaillevCPURAMPlans
basic0,5512 MoFree, Pro
standard-1x11 GoFree, Pro
standard-2x22 GoPro
performance-m44 GoPro, Entreprise
performance-l88 GoPro, Entreprise
performance-xl1616 GoEntreprise
$ paas ps:type web=performance-m --app monsite

Horizontal : nombre d'instances

$ paas ps:scale web=3 worker=2 --app monsite

Auto-scaling

Sur Pro et Entreprise, vous configurez le scaling auto dans paas.toml :

[scaling.web]
min = 2
max = 8
target_cpu = 70
target_rps = 200

[scaling.worker]
min = 1
max = 4
target_queue_depth = 100

Stratégies de déploiement

  • rolling (par défaut) : remplace les pods un par un, sans downtime
  • canary : envoie 5 % du trafic sur la nouvelle version, observe 10 minutes, puis bascule
  • blue-green : prépare la nouvelle version en parallèle, switch instantané