瀏覽代碼

adapt scaling/concurrency

Rodja Trappe 1 年之前
父節點
當前提交
cf9784fd9e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      fly.toml

+ 4 - 4
fly.toml

@@ -24,9 +24,9 @@ kill_timeout = "5s"
   protocol = "tcp"
   internal_port = 8080
   processes = ["app"]
-  auto_stop_machines = true
+  auto_stop_machines = false
   auto_start_machines = true
-  min_machines_running = 10
+  min_machines_running = 18
 
   [[services.ports]]
     port = 80
@@ -37,8 +37,8 @@ kill_timeout = "5s"
     port = 443
     handlers = ["tls", "http"]
   [services.concurrency]
-    type = "connections"
-    hard_limit = 80
+    type = "requests"
+    hard_limit = 60
     soft_limit = 40
 
   [[services.tcp_checks]]