dbTalk Databases Forums  

Best practices for using Event Scheduler in Cluster?

comp.databases.mysql comp.databases.mysql


Discuss Best practices for using Event Scheduler in Cluster? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Theodore Hope
 
Posts: n/a

Default Best practices for using Event Scheduler in Cluster? - 12-09-2010 , 02:17 PM






I had never before used the Event Scheduler with Cluster (only with
InnoDB on a single machine). Now that I began to experiment with it on
Cluster it dawned on me that mysql.event is a MyISAM table and
therefore won't be replicated in the Cluster.

My goal is to store Events in the Cluster itself, so that they will be
run even if one of the SQL nodes is down.

I ran "alter table event engine=ndb" on both SQL nodes and that seemed
to work: Events propagated as expected and the recurring Event was run
(once) each time, as expected.

However, after stopping the cluster and trying to start it again I get
errors when trying to start the mysqld:
101209 17:48:01 [Note] table './mysql/event' opened read only
101209 17:48:01 [ERROR] Event Scheduler: Failed to open table
mysql.event
101209 17:48:01 [ERROR] Event Scheduler: Error while loading from
disk.
101209 17:48:01 [Note] Event Scheduler: Purging the queue. 0 events

I ended up deleting the NDB version of mysql.event and recreating the
MyISAM version :-( :-(

What's the best practice for using the Event Scheduler with Cluster?
I couldn't find Cluster-specific notes on the Event Scheduler.

Thanks....

Reply With Quote
  #2  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: Best practices for using Event Scheduler in Cluster? - 12-10-2010 , 03:42 AM






Theodore Hope <theodorehope (AT) gmail (DOT) com> wrote:

Quote:
I had never before used the Event Scheduler with Cluster (only with
InnoDB on a single machine). Now that I began to experiment with it on
Cluster it dawned on me that mysql.event is a MyISAM table and
therefore won't be replicated in the Cluster.
More to that: the event scheduler thread runs in the SQL node.
And while you *could* activate the event scheduler on multiple SQL
nodes, it will not be synchronized. So where's the point to store
the events table in the cluster anyway?

Quote:
My goal is to store Events in the Cluster itself, so that they will be
run even if one of the SQL nodes is down.
This won't work with the current implementation.

Quote:
What's the best practice for using the Event Scheduler with Cluster?
I couldn't find Cluster-specific notes on the Event Scheduler.
Chose one SQL node to run events. And find a way to cope with it
when this node goes down.


XL

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.