Skip to content

Commit a9eb82a

Browse files
committedApr 21, 2024
Try to raise fly's limits so many websocket connections can stay open
1 parent 586b023 commit a9eb82a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎fly.toml

+13
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,16 @@ primary_region = 'ewr'
2020
memory = '1gb'
2121
cpu_kind = 'shared'
2222
cpus = 1
23+
24+
# We reached error when everyone joined during a presentation:
25+
#
26+
# Instance 6e82403da07628 reached hard limit of 25 concurrent connections.
27+
# This usually indicates your app is not closing connections properly or is
28+
# not closing them fast enough for the traffic levels it is handling. Scaling
29+
# resources, number of instances or increasing your hard limit might help.
30+
#
31+
# https://fly.io/docs/reference/load-balancing/#web-service
32+
[services.concurrency]
33+
type = "connections"
34+
hard_limit = 200
35+
soft_limit = 100

0 commit comments

Comments
 (0)
Please sign in to comment.