Autoscaling based on a script
K
Kai Marshland
I would like to be able to configure autoscaling based on factors outside of memory and cpu, such as requests per minute to a web server, jobs in a queue for a worker server, or even custom properties related to my business logic. Rather than request a separate autoscaling feature for each, I would like to be able to specify a bash script that gives the number of instances.
Log In

Anurag Goel
Would a REST API endpoint to scale your service manually work for this? It'll be much more generic and can be invoked from anywhere.
K
Kai Marshland
Anurag Goel: Yes, though a bash script would be somewhat more convenient.

Anurag Goel
Kai Marshland: this is perhaps better handled through a Render CLI command then?
render scale svc 3
?K
Kai Marshland
Anurag Goel: Not sure how the render cli will work, but bash script > API endpoint > render cli. The reason is that I might want to do this without needing a dockerfile to install the render cli dependency.

Anurag Goel
Kai Marshland: makes sense, but the CLI will be available in all native environments!
K
Kai Marshland
Anurag Goel: Nice! I'm clearly too conditioned by heroku