docs: a few more ideas about auto scale

This commit is contained in:
Aditya
2025-09-17 17:56:57 +05:30
parent cbe8f908bd
commit 7612b4b7bb
2 changed files with 12 additions and 1 deletions
+6
View File
@@ -4806,6 +4806,12 @@ func runWebserver(listener net.Listener) {
}
}
// 0x0elliot:
// IF we had to rewrite this, we will focus on ONLY auto scale for apps.
// i recommend we target executions/minute (?) as a metric.
// edge-case: subflows are helped with when worker replicas are higher.
// i kind of never want to scale down. at least, not now.
// also, algorithm is very broken. executions/worker
func AutoScaleApps(ctx context.Context, client *dockerclient.Client, maxExecutionsPerMinute int) {
ticker := time.NewTicker(1 * time.Second)