I am exploring the option of deploying MySQL multi-site clustering. The MySQL cluster deployment has three sites and it has two node groups and each node group contains three data nodes with the NoOfReplicas=3. The 3 data nodes in a node group are placed in three different sites for geographic spread.
All three sites are accessing the MySQL cluster through the mysqld server and performs the SELECT and INSERT/UPDATE operations in a single table.
Question 1:
Which data node will be accessed when the queries are issued from a site. Will the query access the local data node sitting at the same site from where the query originates.
Question 2:
Using the EXPLAIN statement, I can understand which partition is being used in the query operation, but not the exact data node that gets accessed for the query. Is there any way to understand which data node in the node group accessed for the query.
Question 3:
Is there a way to set the site affinity / tagging for the data node selection in a node group.