Introduction

Master Autoscaling in 5 Minutes: Quick Guide by Adam & Judoscale

Let Adam walk you through autoscaling in less than 5 minutes in the video below!

Getting Started

Sign up for a Judoscale account, and select “Render” for your hosting platform.

Screenshot: choose your hosting platform in Judoscale

Next, follow the link to your Render account settings to obtain your API key.

👀 Note

Judoscale needs your API key in order to fetch service information and update the number of running instances. Your Render services are not affected until you explicitly enable autoscaling.

In your Render account settings, create a new API key and name it “Judoscale” (you can name it anything you want).

Screenshot: create an API key in Render

Paste your API key into Judoscale, and click “Connect to Render”.

Judoscale will list your personal Render account and any teams you’re a part of. Select the team you want to link to Judoscale.

👀 Note

Judoscale can only link services within Render projects. Teams without projects can’t be linked. Learn more about Render projects & environments.

Screenshot: Render team listing in Judoscale

👀 Note

You can link additional teams later by clicking “Add team” in the Judoscale dashboard sidebar.

After linking the team to Judoscale, you’ll be presented with the list of projects + environments that belong to that team. Select the first project environment you want to link to Judoscale.

Screenshot: Render team projects + environments listing in Judoscale

This will add the selected Render project environment as a Judoscale application, automatically linking all the services within that environment, and take you to the team dashboard.

👀 Note

You can link additional project environments later by clicking “Link another Render project environment” in the team dashboard.

Here you’ll see all of your linked Render project environments and their respective services, the number of running instances, and their autoscaling status within Judoscale. If this is your first time linking an environment, none will be autoscaling yet.

Screenshot: Judoscale team dashboard listing Render services

👀 Note

Judoscale cannot see whether you’re using Render’s native autoscaling feature. You should disable Render’s autoscaler before enabling autoscaling in Judoscale. Using multiple autoscalers on the same service will cause unpredictable scaling.

Installing the adapter

In the Judoscale team dashboard, click the service you want to autoscale. This takes you to the Scaling page, where you’ll be prompted to install the adapter.

Screenshot: Judoscale adapter installation wizard

Choose your stack information, and follow the instructions to install the adapter. The adapter is how Judoscale collects queue metrics from your application, similar to a lightweight APM tool. Check the web frameworks and job backends we currently support here.

You’ll also need to set a JUDOSCALE_URL environment variable in your Render environment group or service settings. This is how the Judoscale adapter knows where to send metrics and link those metrics to the correct service.

Once you’ve installed the adapter and deployed your application, Judoscale will begin showing your queue metrics in the Scaling page charts.

Screenshot: scaling charts in Judoscale

If your web service isn’t receiving traffic, or if your worker service has no jobs waiting in queue, you won’t see any activity in the charts. Let it collect metrics while your app is under load to see queue time information.

Configuring and enabling autoscaling

Now that Judoscale is monitoring your service, you’re ready to autoscale!

Scroll down the Scaling page to review your autoscale settings. The default settings are usually a good starting point for most services, but you’ll want to customize your “Instances” range based on how high and low you’re comfortable scaling.

Screenshot: Judoscale configuration

There’s no “correct” range here. Judoscale defaults to one instance as the minimum, but some teams always want multiple instances running even under light load, so they’ll see the minimum instances to two or higher. The maximum is really about limiting costs. Remember that under heavy load (high queue times), Judoscale will continue scaling your service up until the max instances is reached.

Scroll down and click “Save and enable autoscaling”, and that’s it!

🚨 Warning

If anything in these docs doesn’t work quite right or you have questions, know that you can always reach out to us at [email protected]. Your email goes directly to the Judoscale devs!