Railway provides controls over resource usage in the form of usage limits and auto-sleeping of inactive services.
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.
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.
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.
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:
- When your usage reaches 75% of your hard limit
- When your usage reaches 90% of your hard limit
- 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 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:
- Navigate to your service's settings > Deploy > App Sleeping
- Toggle "Enable App Sleeping"
- 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