Reducing Cloud Waste With Automatically Scheduled Hibernation
Save money and time by automating scheduled hibernation of your development or testing environments hosted in the cloud. Reduce up to 70% resource waste!
Join the DZone community and get the full member experience.Join For Free
Cloud computing is suitable for both static and dynamic workloads, but with no distinction between them, any user may face wasteful cloud resource utilization. The self-estimated waste can be about 30%, while after thorough analysis the ratio can reach up to 70% in the case of a not round-the-clock software environment.
There are different ways to optimize these expenses and save cloud costs in order to apply the released budget in directions that can bring more income or more reward programs for the team. The most widely used are:
- Monitoring utilization and rightsizing instances,
- Automating hibernation of temporary workloads,
- Shutting down workloads during certain hours,
- Selecting a cloud or region based on price.
Here we will cover scheduling automatic start and stop of workloads. This is one of the most simple but still highly effective solutions to save money while running your development, stage, or testing environments in the cloud.
Usually, during such lifecycle stages as development or testing, the environment is not constantly required, like during nighttime or weekends. The waste can be easily noticed in the simple illustration of a week with 5 working days approximately 10 hours each:
As you see, about 70% of resources are wasted during non-working hours. So it would be a smart decision to stop your environment during such an idling period to cut expenditures. Obviously, doing it manually is an inefficient way of management, so you need to automate the process.
Jelastic has created a scheduler add-on that is designed to automate the stop and start operations for any environment on the cloud platform. Being extremely simple in configuration, it allows us to gain considerable savings, especially when working with multiple environments. And to help you with that, below we’ll consider the steps required to install and manage this add-on, as well as a number of possible configurations for the most common use cases with this solution.
Hibernation Scheduler Installation
1. Log in to the dashboard and click the Marketplace button at the top pane.
2. Switch to the Add-ons tab and find the Env Start/Stop Scheduler solution. Hover over it and click the appeared Install button.
3. Provide the following data to customise add-on up to your needs:
- Switch on the Stop/Start toggles and specify the time the environment should be stopped/started respectively,
- Select days of the week for each action to be applied,
- Choose a preferable Time Zone.
- Environment name: target environment that should be managed by add-on
- Nodes: environment layer the add-on will be installed to; it is fetched automatically upon selecting the environment (we recommend leaving this field with default choice).
Note that Start/Stop Scheduler can be run on just a single layer at a time; otherwise (i.e., if being integrated to several ones) only the lastly installed or reconfigured will be working.
Click Install to add a scheduler.
4. In a moment, you’ll see a notification about the operation being completed successfully.
That’s it! The add-on has been installed and is already working, being ready to regulate your environment activity time based on the given schedule in compliance with the Time Zone you chose.
Hibernation Scheduler Management
In case you need to adjust the start / stop conditions after installation, this can be done directly via the dashboard:
1. Click on the Add-Ons icon next to the environment layer, where the solution was installed. Within the opened tab, find the scheduler and select the Configure button.
2. The appropriate frame will be shown, allowing to set new values for the Stop and Start time, Days and Time Zone. For example, you can untick the weekends, so the environments will be fully deactivated during these days.
Click Apply to use the changed settings.
Note: in case the destination environment is shared among several collaborators, only one collaborator can install and configure the add-on. So, avoid situations when the first collaborator installs an add-on and the second one configures it and vice versa.
3. When moving a project to production or in case you just don’t need this solution anymore, use the menu at the top right corner of the scheduler configuration to Uninstall it.
That’s all! Now, you know how to reduce cloud waste with automatically scheduled hibernation using Jelastic Env Start/Stop Scheduler add-on. Organize your environment's uptime to maximize resources and funds saving on your testing and development environments running with Jelastic PaaS.
Published at DZone with permission of Tetiana Fydorenchyk, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.