removed hyperdx (they also have graceful shutdown) and tried to change the process for running on server. It didn't work.

This commit is contained in:
rafaelsideguide
2024-07-10 18:29:55 -03:00
parent 7c3cc89a80
commit 86d0e88a91
5 changed files with 123 additions and 122 deletions
+63
View File
@@ -0,0 +1,63 @@
# fly.toml app configuration file generated for firecrawl-scraper-js on 2024-04-07T21:09:59-03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'firecrawl-scraper-js'
primary_region = 'mia'
kill_signal = 'SIGINT'
kill_timeout = '5s'
[build]
[processes]
app = 'npm run start:production'
worker = 'npm run worker:production'
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 2
processes = ['app']
[http_service.concurrency]
type = "requests"
hard_limit = 100
soft_limit = 50
[[http_service.checks]]
grace_period = "20s"
interval = "30s"
method = "GET"
timeout = "15s"
path = "/"
[[services]]
protocol = 'tcp'
internal_port = 8080
processes = ['app']
[[services.ports]]
port = 80
handlers = ['http']
force_https = true
[[services.ports]]
port = 443
handlers = ['tls', 'http']
[services.concurrency]
type = 'connections'
hard_limit = 30
soft_limit = 12
[[vm]]
size = 'performance-4x'
processes = ['app']