Machines don't stop automatically

Hi,

I have 3 machines running NodeJS and would expect 2 of those machines to stop, as those 3 machines process only 2-3 requests per second. Thus it should be well below the soft_limit.

Am I doing something wrong?

Thank you!

app = “XXXXXX”
primary_region = “fra”
kill_signal = “SIGINT”
kill_timeout = “5s”

[experimental]
auto_rollback = true

[build]
build-target = “prod”

[deploy]
strategy = “canary”

[[services]]
protocol = “tcp”
internal_port = 8080
processes = [“app”]
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1

[[services.ports]]
port = 80
handlers = [“http”]
force_https = true

[[services.ports]]
port = 443
handlers = [“tls”, “http”]

[services.concurrency]
type = “requests”
soft_limit = 100
hard_limit = 500

[[services.tcp_checks]]
interval = “15s”
timeout = “2s”
grace_period = “1s”
restart_limit = 0

I can see in your app logs that machines are being stopped but they get started back up again immediately. This has happened with some customers before. Are you by any chance using websockets in your application?

Hi @senyo ,

thanks for getting back to me!

I am not using any sockets – it’s a a very basic ExpressJs app.

Happy to give you more info via Email (installed packages) – in case that’s of interest – I sent an email to support today, asking the same question.

Seems to work now!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.