3. Basic structure
tbl_a tbl_a tbl_a
DB11 DB12 DB13
Data nodes
tbl_a
DB7 tbl_a
DB7
DB6 DB6
DB1 DB21
Spider nodes Monitoring nodes
Spider's HA structure is composed of
data nodes, spider nodes and monitoring nodes.
4. The part of structure
- Data nodes
Data nodes store real data.
Each data node that linked same Spider table store same data.
(like RAID 1)
- Spider nodes
The entrance of user access.
Spider nodes offer load balance, fail over and transparently access to
data node.
- Monitoring nodes
Monitoring nodes monitor data nodes.
5. Monitoring parameters
- monitoring_bg_interval(mbi)
Interval of background monitoring.(microsecond)
The default value is 10000000
- monitoring_bg_kind(mbk)
The kind of background monitoring.
0 : It doesn't monitor.
1 : It monitors state of connection.
2 : It monitors state of a table without where clause.
The default value is 0
6. Monitoring parameters
- monitoring_kind(mkd)
The kind of monitoring.
0 : It doesn't monitor.
1 : It monitors state of connection.
2 : It monitors state of a table without where clause.
The default value is 0
- monitoring_limit(mlt)
The limititation of records at monitoring table.
(Only when monitoring_kind is bigger than 1, it is effective.)
0 or more : Number of limitation.
The default value is 1
- monitoring_server_id(msi)
The server_id of monitoring MySQL server.
The default value is self server_id
15. How to add new node
after failover
and preparing new server
without stopping the service
16. Create a table of a new node to the clustered table
You need to create a new node, in order to
maintain redundancy, when there is a trouble
at the node that composes the cluster.
Here, I will explain how to add a table of a
new node, without stopping the service.
17. Initial Structure
tbl_a tbl_a tbl_a
DB2 DB3 DB4
tbl_a
DB1 tbl_a
DB7
DB6
DB5
There are 4 MySQL servers with Spider
(include 3 monitoring nodes) and
3 MySQL servers without Spider (including 1 broken node).
23. Any Questions?
Thank you for taking
your time!!
Kentoku SHIBA (kentokushiba at gmail dot com)
http://wild-growth.blogspot.com/
http://spiderformysql.com