Skip to content

Commit

Permalink
Increase the limit of connections for on Fly.io app instance
Browse files Browse the repository at this point in the history
Otherwise Fly proxy will start sending the requests to instances that we
don't have... yet. Related to
#424

Signed-off-by: Gerhard Lazu <[email protected]>
  • Loading branch information
gerhard committed Oct 23, 2022
1 parent 16d6b39 commit 2560aca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 2022.fly/fly.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Inspired by https://github.com/fly-apps/live_beats/blob/master/fly.toml
# Full app config reference: https://fly.io/docs/reference/configuration/
app = "changelog-2022-03-13"

kill_signal = "SIGTERM"
Expand Down Expand Up @@ -41,3 +42,11 @@ port = 443
handlers = ["http"]
port = "80"
force_https = true

# Increase the limit of connections that a single app instance can handle
# Otherwise Fly proxy will start sending the requests to instances that we don't have... yet
# Related to https://github.com/thechangelog/changelog.com/issues/424
[services.concurrency]
hard_limit = 2500
soft_limit = 2000
type = "connections"

0 comments on commit 2560aca

Please sign in to comment.