Optimize Usage

Railway provides controls over resource usage in the form of usage limits and auto-sleeping of inactive services.

Configuring Usage Limits

Usage Limits allow you to set a maximum limit on your usage for a billing cycle.

Visit the Account Usage page to set the usage limits. Once you click the Set Usage Limits button, you will see a modal above where you can set a Custom email alert and a Hard limit.

Usage Limits Modal

Setting Limits for Teams

If you want to set a usage limit for your team, use the account switcher in the top left corner of your dashboard to access the team's usage page.

Custom email alert

Configure a soft limit by setting a threshold in Custom email alert. When your resource usage reaches the specified amount, we will email you that this threshold has been met and resources continue running.

Hard limit

Configure a hard limit to take resources offline once usage meets the specified threshold.

Multiple emails will be sent as your usage approaches your hard limit:

  1. When your usage reaches 75% of your hard limit
  2. When your usage reaches 90% of your hard limit
  3. When your usage reaches 100% of your hard limit and workloads have been taken down.

Find more information about Usage Limits in the reference page.

Enabling App Sleeping

Enabling App Sleep on a service tells Railway to stop a service when it is inactive, effectively reducing the overall cost to run it.

To enable App Sleeping, toggle the feature on within the service configuration pane in your project:

Enable App Sleep
  1. Navigate to your service's settings > Deploy > App Sleeping
  2. Toggle "Enable App Sleeping"
  3. To disable App Sleeping, toggle the setting again

Read more about how App Sleeping works in the App Sleeping Reference page.


Edit this file on GitHub