-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instance Scheduler doesn’t stop RDS instance after MaintenanceWindow is completed. #384
Comments
More information. example of schedule which I use:
region: the only region I use: ap-southeast-2 |
What we noticed: it happens only with those instances which have schedules without starting time: tag: schedule rds-mon-fri0800-2300-sat-sunxxxx-2000-Brisbane
Maintenance window: Every Saturday 02:00 - 02:30 UTC+11 we expect on Saturday: But instead of that we get this:Instance is started at 02:00(MW started) and is stopped at 20:00(Brisbane time) by period. And it was working for 18 hours… if we change MW time and put it after stopping time - it will work properly. Is this behaviour bug or feature? |
Hi @nalalia-1702. The behavior you describe would be expected behavior that emerges due to the current scheduling logic. Instance scheduler looks at each day individually, and a 1-sided stop schedule has the effect of splitting a day into two halves: an "any" period (in which the instance can be in any state) and a "stopped" period (in which the instance is expected to be off). Adding a maintenance window injects an extra running period into the middle of the existing schedule which results in a schedule that looks something like this: any -- running -- any -- stopped the result being exactly the behavior you describe. Whether this is a bug or a feature would be open to some interpretation, but I will bring it up with the rest of the team and add it as a backlog item for evaluation |
@CrypticCabub I get it , thank you. To be honest would be really good to have possibility to have schedules like this: Thank you. |
Any updates on this issue? We are seeing the same behaviour described in this ticket. We are on verison 1.5.6. For example we have a database that turns on for maintenance and it will stay on until the end time instead of turning off after maintenance. |
Hi @matt-it-guy -- do you also have the same scenario as I discussed with natalia above? (a 1-sided start/stop period on the same day as the maintenance window which causes an overlap). That particular issue is a fundamental issue with the current implementation of 1-sided periods. The team is considering potential fixes but have not settled on a satisfactory approach at present. However, If your scenario is different from the overlapping 1-sided period scenario, please let us know the specific configuration of your schedule so that we can dig into the issue further. |
Thanks for your response. We have the same scenario as Natalia. |
Instance Scheduler doesn’t stop instance after MaintenanceWindow is completed.
I have deployed Main CF stack into central account, deployed remote account to all other accounts(workload accounts) in my AWS Organisation. So all RDS instances which I am scheduling are hosted in workload accounts. Regular schedules which I create work perfectly.
According to documentation “Instance Scheduler“ can start and stop RDS instances for MaintenanceWindows automatically. It starts instances at the start of MW and stops them at the end of MW.
But in my case this feature doesn’t work in 50% cases.
During MW RDS instances are started, but not stopped by Instance Scheduler in some reason.
I don’t see any errors in log files. Just nothing, no any event.
For example MW for TEST-RDS-INSTANCE instance 25/02/2023 00:00 - 00:30
RDS Instance has been started at 00:00 , but hasn’t been stopped at 00:30.
Worth to mention:
The text was updated successfully, but these errors were encountered: