Skip to content

Commit

Permalink
feat: fly suspend machines
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Oct 25, 2024
1 parent 63ed865 commit 0d9a491
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .changeset/tidy-terms-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@stackspulse/server": patch
"stackspulse": patch
---

Fly set aut_stop to "suspend".
23 changes: 11 additions & 12 deletions apps/server/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ primary_region = 'sjc'
image = "ghcr.io/pradel/stackspulse/server:0.16.2"

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ['app']
internal_port = 3000
force_https = true
auto_stop_machines = "suspend"
min_machines_running = 0
processes = ['app']

[http_service.concurrency]
type = 'requests'
hard_limit = 1000
soft_limit = 900
[http_service.concurrency]
type = 'requests'
hard_limit = 1000
soft_limit = 900

[[vm]]
size = 'shared-cpu-1x'
memory = '256mb'
size = 'shared-cpu-1x'
memory = '256mb'
24 changes: 12 additions & 12 deletions apps/web/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ primary_region = 'sjc'
image = "ghcr.io/pradel/stackspulse:0.16.2"

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[http_service.concurrency]
type = "requests"
soft_limit = 400
hard_limit = 450
internal_port = 3000
force_https = true
auto_stop_machines = "suspend"
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[http_service.concurrency]
type = "requests"
soft_limit = 400
hard_limit = 450

[[vm]]
size = 'shared-cpu-1x'
memory = '512mb'
size = 'shared-cpu-1x'
memory = '512mb'

0 comments on commit 0d9a491

Please sign in to comment.