Above all have a database
Hope is two database data can be synchronized
But when a database problems
Will automatically jump to another one
CodePudding user response:
Automatic switching dataFirst configuration 2 database default data source 1 when the database hung up the data source will snap interceptor automatically switch to the data source 2 at this moment
CodePudding user response:
The simplest is to use keepalivedCodePudding user response:
Itself does not implement, can only use a third party, of course, because is not native, so extreme cases is not reliable, make do with itCodePudding user response:
Take a look at this blog http://www.cnblogs.com/alvin_xp/p/4162249.htmlCodePudding user response:
The main master replicate or through a third party such as keepliveCodePudding user response:
keepalived