Enabling or Disabling Event Scheduler
Scenarios
Event scheduler manages the scheduling and execution of events. The MySQL built-in event scheduler cannot guarantee the consistency of event statuses between primary and standby DB instances. If a failover or switchover occurs, events will not be scheduled. RDS for MySQL resolves this issue. With RDS for MySQL, even if there is a failover or switchover, event status will still be properly scheduled. You can simply enable or disable the event scheduler on the RDS console.
- By default, the event scheduler is disabled after a DB instance is created.
- After a primary/standby failover or switchover, the event status remains unchanged. The event_scheduler is on for the original primary DB instance and off for the original standby DB instance.
- After a restoration to a new DB instance, the event status is the same as that of the original DB instance.
- After a single DB instance is changed to primary/standby DB instances, the event status is the same as that of the primary DB instance.
Constraints
- Only MySQL kernel 5.6.43.2, 5.7.25.2, and later versions are supported.
- Event scheduler cannot be enabled for read replicas.
Enabling Event Scheduler
- Log in to the management console.
- Click in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
- On the Instance Management page, click the target primary/standby DB instances.
- In the DB Information area on the displayed Basic Information page, click in the Event Scheduler field.
After you enable the event scheduler on the RDS console, log in to the DB instance and check that the event status has been set to enable
Disabling Event Scheduler
- Log in to the management console.
- Click in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
- On the Instance Management page, click the target primary/standby DB instances.
- In the DB Information area on the displayed Basic Information page, click in the Event Scheduler field.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot