Thanks for your answer.
I want to know how to find which SQL Node deals with SQL request. Because I want test
whether the loadblanceStrategy=random or loadblanceStrategy=bestResponseTime are OK.
In my project, I want to use mysql-cluster to implement High Availability of Database. I
want to how much time are used for switching from one SQL node to another. But, with the
test going on, I find that maybe the configuration item of loadblanceStrategy are not
So I want to know which SQL Node deals with SQL requests, so that I can make sure which
loadbalance algorithm should I use.
Please help me.Thanks,
From: Boehm, Matthew [mailto:mboehm@stripped]
Sent: 2010年3月4日 0:30
To: Peter Chen; cluster@stripped
Subject: RE: how to find which SQL node deals with SQL request?
AFAIK, NDBD nodes don't actually process SQL. MySQLd handles processing
of SQL and passes along requests for data retrieval to the NDBD nodes.
If you use EXPLAIN PARTITIONS <SQL>, you can see which NDBD node(s) will
be accessed to get that data back.
> -----Original Message-----
> From: Peter Chen [mailto:peter.chen@stripped]
> Sent: Wednesday, March 03, 2010 3:22 AM
> To: cluster@stripped
> Subject: how to find which SQL node deals with SQL request?
> Hi all,
> I am using mysql-cluster 7.0.9 for testing.
> There are two SQL nodes, two Data nodes and one management node in my
> mysql-cluster. And the mysql-cluster is deployed on Solaris 10 sparc
> I configure JDBC url to implement load balancing. The JDBC URL is like
> I execute SQL operation on host A, and host A connect to these two SQL
> nodes to access DB.I want to know how to find which SQL node deals
> SQL operation?
> Now I am using Solaris command "snoop" to grab packages on port 33306.
> But I think it's not good.
> In my opinion, I can decide the SQL node handling SQL operation by
> checking some files of MySQL, such as some log files.But I am not
> Could you tell me how to check it?