Skip to content

Commit

Permalink
Merge branch 'main' into feature/update-dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Jan 31, 2025
2 parents 89fa6eb + bebf5d1 commit d1befc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/bin/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const client = new pg.Pool({
// this values should correlate with service concurrency hard_limit configured in fly.toml
// and must take into account the connection limit of our PG server, see
// https://fly.io/docs/postgres/managing/configuration-tuning/
max: 100,
max: 150,
// close connections that haven't been used for one second
idleTimeoutMillis: 1000,
// automatically close connections older than 60 seconds
Expand Down
4 changes: 2 additions & 2 deletions api/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ processes = []
script_checks = []
[services.concurrency]
# Remember to update PG Pool config option `max` in bin/spark.js when changing `hard_limit`.
hard_limit = 1500
soft_limit = 600
hard_limit = 2000
soft_limit = 1000
type = "connections"

[[services.ports]]
Expand Down

0 comments on commit d1befc4

Please sign in to comment.