Machines don't stop automatically


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”

auto_rollback = true

build-target = “prod”

strategy = “canary”

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

port = 80
handlers = [“http”]
force_https = true

port = 443
handlers = [“tls”, “http”]

type = “requests”
soft_limit = 100
hard_limit = 500

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.