question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Maintenance Window Feature - Instances Not Stopping

See original GitHub issue

Good Morning,

Thank you for the work put into the project, it has been a great aid in our deployment.

We are keen to use the maintenance window feature to aid in patch management but are coming up against some issues.

The scheduler seems to create the schedules on-the-fly each time instance scheduler is invoked.

You can see the schedules created in the logs as expected.

2020-11-16 - 09:10:46.600 - INFO    : Created schedule testmw from SSM maintence window, start is 2020-11-16T08:05:00+00:00, end is 2020-11-16T09:15:00+00:00

In this example, after 09:15 when the server should shut down the next schedule is generated instead, so the stop date from the previous schedule never occurs:

2020-11-16 - 09:15:47.337 - INFO    : Created schedule testmw from SSM maintence window, start is 2020-11-16T08:05:00+00:00, end is 2020-11-16T09:15:00+00:00

Not sure if this is a bug or if we are doing something wrong, many thanks for any help

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
praveeniscommented, Nov 23, 2020

Thanks @andycattle for sharing the details. As I told before we have some limitation and defects using Maintenance window feature. We have this item in our backlog for future release to improve the usability of the feature.

1reaction
praveeniscommented, Nov 19, 2020

Hi @andycattle ,

Instances will be started based on the Frequency Interval specified in the Input parameter of the solution stack.

If the Frequency Interval is less than 10, Instances will be started 10 mins before the maintenance window and stopped at the end of maintenance window.

If the Frequency Interval is greater than 10, It will use Frequency interval value to start the maintenance window. for example, if Interval specified is 30, Instances will be started 30 mins before the maintenance window.

Also below are the limitation with Instance Scheduler.

  1. Maintenance window must exists in the same account and AWS Region as your deployed stack to schedule your Amazon EC2 instances
  2. Maintenance window created must use UTC time format.

Please let us know if this helps. Also can you please confirm the version of the Instance Scheduler deployed is latest.

Thanks, Praveen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with Maintenance Window Feature - Instances Not ...
We are keen to use the maintenance window feature to aid in patch management but are coming up against some issues. The scheduler...
Read more >
Troubleshooting maintenance windows
Possible fix: 1) Select a different IAM maintenance window role, if one exists in your account, or create a new one and select...
Read more >
Maintenance Windows
AWS Systems Manager Maintenance Windows let you define a schedule for when to perform potentially disruptive actions on your instances such as patching...
Read more >
Create a maintenance window to automatically update SSM ...
Additionally, verify that you have at least one running Amazon Elastic Compute Cloud (Amazon EC2) instance for Linux or Windows Server that is...
Read more >
Creating Maintenance Windows and Scheduling ...
Running AWS Step Function state machines to perform tasks such as removing an instance from an Elastic Load Balancing environment, patching the instance,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found