News

EC2 Scheduler

Why use an EC2 scheduler?

If you’re part of an organisation that’s looking to make improvements in cost optimisation and governance by using automation then an EC2 scheduler is a natural choice. An EC2 scheduler allows you to maximise utilisation efficiencies without the overhead of writing and maintain custom scripts or doing it manually. You can turn off and on idle EC2s via schedule saving as much as 65% on non production instances.

You don’t need to look too far for stories of organisations that have built scripts to do this themselves and have run into (oftentimes very large) issues with maintaining those scripts. Sometimes the original coder leaves or something turns off that wasn’t meant to. Often technology gets updated or instances get added to the stack. Tagging structures can change too – all in all it can get very unwieldy.

By using a managed EC2 scheduler, you can create schedules in minutes using either the GUI or the APIs, with a single view of what’s happening inside your environment. Organisations can use roles and permissions to empower their end users with oversight of how their environment is being managed. Developers can even intercede in any planned changes on an ad-hoc basis if they don’t want certain EC2 instances to turn on/off. There are rich logs which can tell an admin (or anyone) what processes have taken place and the outcomes.

How much can I save with an EC2 Scheduler?

The savings can actually be quite significant. We mostly see schedulers used for non-production instances – ones that can be turned off outside of work hours – but occasionally organisations like to turn off non business-critical EC2 instances when they’re not required too.

Typically we see schedules keeping infrastructure turned on from 9am-5pm or 8am-6pm depending on uses and requirements. Oftentimes however these off times get postponed using our unique snooze function – Keith Jarrett, Global Head of Cost Optimisation for AWS, explained it best at re:Invent 2016.

You can expect the following kind of results:

How much can I save with an EC2 Scheduler?

Days

On

Off

Savings

Mon-Fri

09:00

17:00

77%

Mon-Fri

08:00

18:00

71%

Mon-Fri

07:00

21:30

57%

Mon-Mon

09:00

17:00

66%

Mon-Mon

08:00

20:00

50%

Mon-Mon

07:30

18:00

52%

How does GorillaStack schedule EC2s?

GorillaStack’s EC2 scheduler is simple to use. With one click you can give GorillaStack highly restrictive cross account access using an IAM role. Once you use GorillaStack to access your environment, you can group instances together using tag groups based on your existing tags.

When the right EC2 instances have been identified, you can set up 2 rules – one to stop a group of instances and one to start those instances again. You can be as granular or as broad as you like in identifying the EC2 instances – by account(s) and by region(s). You can also set the time by timezone for simplicity. Once that’s set up you can empower individuals or whole groups in your organisation to be notified by Slack, HipChat or E-mail when a cycle is about to take place and to cancel that cycle if they so wish or snooze it for any custom amount of time.

You can set up as many rules as you like meaning you can schedule EC2 instances from any number of regions, accounts and tag groups, in any number of ways.

Once these cycles get going, users can leverage the Engine Room to track savings, predict future savings and report back to the finance team. Further, there are rich logs of all events that have taken place so users can inspect those logs and the associated metadata to determine if everything ran on the instance scheduler according to plan or if any machines were excluded from a cycle (for example some instances are unavailable in certain regions when they come to be turned back on).

Couldn’t I just use Amazon’s EC2 scheduler?

Amazon provides a highly technical solution which requires a great deal of work to roll out inside your own infrastructure and to maintain. It requires knowledge and integration of DynamoDB, Lambda, CloudWatch, Cloudformation and some Python. It’s so complicated in fact that AWS provide a 40 page manual just to schedule instances.

• Any changes to even the simplest things like tags or schedules require coding and deployment.
• There’s no feedback loop with consolidated logs and savings reporting
• Users can’t snooze or cancel impending cycles.
• Access is limited by who has access to the code base.
• There are no enterprise grade features such as SAML, role based access control and audit history on rule configuration.
• Targeting by tag/region/account/timezone is somewhere between ‘complicated’ and impossible.

While the Amazon EC2 scheduler is a possibility, particularly for those who like to get deep into code there is a better solution for managing scheduling processes, one which allows the DevOps to concentrate on the more importance task of innovation and remove the distraction of undifferentiated heavy lifting.

Find out more about GorillaStack

If you’d like more information about how to use GorillaStack to schedule your EC2 instances and save money, there are a few next steps you can take. You can set up a quick demo, have a chat with us via our Slack channel or better still get started with a free trial. We look forward to working with you!