Scaling vertical et horizontal
Choisissez la taille des dynos (vertical) et leur nombre (horizontal). Auto-scaling sur Pro.
Vertical : taille des dynos
| Taille | vCPU | RAM | Plans |
|---|---|---|---|
| basic | 0,5 | 512 Mo | Free, Pro |
| standard-1x | 1 | 1 Go | Free, Pro |
| standard-2x | 2 | 2 Go | Pro |
| performance-m | 4 | 4 Go | Pro, Entreprise |
| performance-l | 8 | 8 Go | Pro, Entreprise |
| performance-xl | 16 | 16 Go | Entreprise |
$ 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
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é