Hibernate Environments and Applications
As a Studio Administrator, you can create hibernation policies to scale down environments when they are not in use to reduce costs and improve resource allocation. You can use C3 AI Studio to do the following:
- Create hibernation policies across a cluster and apply them to environments and applications.
- Set a schedule or timeout period to stop and resume applications and environments in AI Studio.
- Filter multi-node applications and SNEs by hibernation setting and owner and also by exclusion start and end dates.
- Apply hibernation schedules to one or more multi-node applications and set single-node environments (SNEs) to hibernate after a time period of inactivity.
When an environment or application hibernates, you can manually resume the environment or application in C3 AI Studio. For information on how to manually start an environment or application in C3 AI Studio, see Create, Start, Terminate, and Monitor Environments and Application.
Hibernation cost implications
When environments are in a hibernated state, they can still incur storage costs. To check persistent data storage utilization for your environments, see Monitor Environment and Application Storage Utilization.
To save on hibernated environment costs, terminate unnecessary environments. See Create, Start, Terminate, and Monitor Environments and Application.
Prerequisites
To use hibernation, you must have the C3.StudioAdmin role to access AI Studio.
See Start and Stop an Application or Environment from the C3 AI Console for more information on how to use code to Start and Stop an application or environment.
The Hibernation dashboard
The Hibernation dashboard displays the total number of SNEs or applications, the number of SNEs or applications that have auto-hibernation set, the number of SNEs or applications that have no hibernation set, and the number of SNEs or applications currently part of a hibernation exclusion period.
Create a hibernation schedule for multi-node applications
By default, multi-node applications automatically hibernate at 9pm PST. This hibernation time does not update with to your local time unless you set a hibernation schedule that uses a different time zone. Multi-node application schedules start at a time you specify when you create a hibernation schedule. All applications will hibernate at this time unless you set a different hibernation policy or exclude an application from the hibernation policy. For example, if you create a default hibernation policy for multi-node applications starting at midnight, an application you create at 11:59 PM will automatically hibernate at midnight. If you create an application at 12:01 AM, it will hibernate the next day at midnight.
To change hibernation for a multi-node application from the default schedule, you must create a hibernation schedule, then apply the schedule to the multi-node Application.
Create a hibernation schedule by performing the following steps:
- Navigate to Admin > Hibernation > Settings in C3 AI Studio.
- Select the plus sign (+) in the upper right-hand corner of the Hibernation Schedules for Multi-node Applications section.
- Complete the fields in the Add new hibernation setting modal.
Edit a hibernation schedule
- In Admin > Hibernation > Settings in C3 AI Studio, under Hibernation Schedules for Multi-node Applications, select the schedule you want to edit.
- Select the edit icon to the right of the hibernation schedule you want to change.
- Make changes, then select Next.
- Select Confirm to confirm that you want to apply changes to the multi-node applications listed in the modal.
Delete a hibernation schedule
- In Admin > Hibernation > Settings in C3 AI Studio, under Hibernation Schedules for Multi-node Applications, select the schedule you want to edit.
- Select the trash can icon to the right of the hibernation schedule you want to delete.
- Select Confirm to confirm that you want to delete the hibernation schedule and apply the default schedule to an multi-node applications using this schedule.
Note: You cannot delete a hibernation schedule that is set as the default for multi-node applications.
Set a default hibernation policy for single-node environments (SNEs)
SNEs hibernate after a period of inactivity. By default, single-node environments (SNEs) hibernate after four hours.
Change the default hibernation settings for an SNE by performing the following steps:
- Navigate to Admin > Hibernation > Settings in C3 AI Studio.
- Select the edit icon to the right of the Default setting for single-node environments option.
- Choose the time to wait to hibernate an SNE, then select Next:
- No hibernation
- After 30 minutes of inactivity
- After 1 hour of inactivity
- After 2 hours of inactivity
- After 3 hours of inactivity
- After 4 hours of inactivity (default)
- After 5 hours of inactivity
- After 6 hours of inactivity
- Select Confirm apply changes to SNEs listed in the modal.
Set a default hibernation schedule for multi-node applications
- Create a hibernation schedule.
- Select the edit icon to the right of the Default setting for multi-node applications option.
- Select the schedule to apply to multi-node applications and select Next.
- Select Confirm to apply changes to multi-node applications listed in the modal.
Apply a hibernation setting for a single-node environment (SNE)
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Single-node Environments tab, hover over the environment for which you want to set the hibernation setting.
- Select the edit icon on the right side of the row for that environment.
- Select a schedule to apply to the environment.
- Set Hibernation exclusion to On to set a period of time to keep the environment from hibernating. Otherwise, set Hibernation exclusion to Off.
- Select Confirm to apply changes to the environment.
Apply a hibernation setting for a multi-node application
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Multi-node Applications tab, hover over the application for which you want to set the hibernation setting.
- Select the edit icon on the right side of the row for that application.
- Select a schedule to apply to the application.
- Set Hibernation exclusion to On to set a period of time to keep the application from hibernating. Otherwise, set Hibernation exclusion to Off.
- Select Confirm to apply changes to the application.
Bulk apply a hibernation setting to multi-node applications
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Multi-node Applications tab, select the checkbox next to one or more applications.
- Select the Edit button in the upper right corner of the applications list.
- Validate that the number of applications is correct.
- Select a schedule to apply to the applications.
- Set Hibernation exclusion to On to set a period of time to keep the applications from hibernating. Otherwise, set Hibernation exclusion to Off.
- Select Preview.
- Select Confirm to apply changes to the applications displayed in the list.
Exclude an application from hibernation
Exclude an application from a hibernation policy during a specified date and time range. If you do not set an end date and time for the exclusion period, the application will not hibernate after the exclusion start date. The exclusion date range for multi-note applications uses the same time zone as the default hibernation schedule. To check which time zone your default hibernation schedule uses, see Create a hibernation schedule for multi-node applications schedule for multi-node applications.
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Multi-node Applications tab, hover over the application for which you want to set the exclusion dates.
- Select the edit icon on the right side of the row for that application.
- Set Hibernation exclusion to On to set a period of time to keep the application from hibernating. Set Hibernation exclusion to Off to remove a hibernation exclusion from the application.
- Select Confirm to apply changes to the application.
Exclude an SNE from hibernation
Exclude an SNE from a hibernation policy during a specified date and time range. If you do not set an end date and time for the exclusion period, the SNE will not hibernate.
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Single-node Environments tab, hover over the environment for which you want to set the hibernation setting.
- Select the edit icon on the right side of the row for that environment.
- Set Hibernation exclusion to On to set a period of time to keep the environment from hibernating. Set Hibernation exclusion to Off to remove a hibernation exclusion from the environment.
- Select Confirm to apply changes to the environment.
Start an environment manually
When an environment hibernates, you can manually resume the environment by performing the following steps.
- In C3 AI Studio, navigate to Envs.
- Choose the environment to start.
- In Overview, in the upper right corner, select the ellipsis (...) button.
- Select Resume environment.
Resume an application in C3 AI Studio
When an application hibernates, you can manually restart it by performing the following steps.
- In C3 AI Studio, navigate to Apps.
- Choose the application to start.
- In Overview, in the upper right corner, select the ellipsis button.
- Select Resume environment.
View environments on the exclusion list
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Single-node Environments tab, sort the environments by exclusion to see all environments on the exclusion list.
View applications on the exclusion list
- Navigate to Admin > Hibernation in C3 AI Studio.
- In the Multi-node Applications tab, sort the applications by exclusion to see all applications on the exclusion list.
Hibernation Troubleshooting
Here are some hibernation troubleshooting tips:
Unable to delete hibernation schedule
If you're unable to delete a hibernation schedule, check that the hibernation schedule is not set as a default for multi-node environments.
Applications are not hibernating according to hibernation policy
If SNE or multi-node applications are not hibernating according to the hibernation policy, try the following troubleshooting steps:
- Check the hibernation policy for the SNE or application to ensure it is using the correct policy.
- Verify that a hibernation exclusion is not set for the SNE or application.
- If the SNE or application is set to use the default, verify that the default hibernation policy is correct by going to Admin > Hibernation > Settings in C3 AI Studio.