Hi all,
I had deployed a code on Fly, which is making constant API call to an endpoint. Because of this my machine stays up all the time and causing billing issue. Can you tell me how to debug the issue? . Also i am providing my fly.toml file here:
fly.toml app configuration file generated for ml-backend on 2025-05-05T00:30:49-04:00
See App configuration (fly.toml) · Fly Docs for information about how to use this file.
app = ‘ml-backend’
primary_region = ‘sjc’
[build]
[env]
PORT = ‘8080’
WEBSOCKET_PORT = ‘8765’
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = ‘suspend’
auto_start_machines = true
min_machines_running = 0
processes = [‘app’]
[http_service.concurrency]
type = “requests”
hard_limit = 80
soft_limit = 50
[[services]]
protocol = ‘tcp’
internal_port = 8080
auto_stop_machines = ‘suspend’
auto_start_machines = true
min_machines_running = 0
[services.concurrency]
type = “requests”
hard_limit = 80
soft_limit = 50
[[services.ports]]
port = 80
handlers = [‘http’]
[[services.ports]]
port = 443
handlers = [‘tls’, ‘http’]
[[checks]]
type = “tcp”
name = “tcp-health”
interval = “30s”
timeout = “5s”
grace_period = “10s”
port = 8080
[[vm]]
size = ‘performance-1x’