I’m not seeing my apps machines scale down even though I have auto_stop_machines = “suspend” and a soft_limit set. Ive tested adjusting soft_limit to a high number and I am not seeing fly suspend my machines.
From my analytics, should I be looking at App Concurrency to see what soft_limit should be set to?
Thanks for the tip. I have read the docs and added the values that should cause the app to scale down and up as needed but it doesn’t appear to be working. Is there a way to see why its not scaling? Maybe a log?
If it’s not scaling down, then there’s something hitting your service to keep it alive. Usually it takes 7-10 minutes of idle before the fly proxy shuts down the machine.
Right now I have 10 machines and they are all actively taking requests. From the dashboard, they are all around “700 App Concurrency”. Shouldn’t they autoscale down until the soft_limit is hit which is 8,000? Technically one server should be able to handle this in my scenario.
I mean that. I don’t use proxy_proto so I don’t know if it’s requires type: connections. I look at the fly docs and it didn’t mention any requirements for that.
@timl1 it could be related, the mentioned bugfix prevented changes to service definitions to propagate to fly-proxy. Your experiments changing soft_limt, suspension types and so on may not have been in effect unless you also recreated machines.