Skip to content

Commit f230d5f

Browse files
dveedenlance6716
andauthored
Remove failover (#931)
Co-authored-by: lance6716 <[email protected]>
1 parent 37a3291 commit f230d5f

9 files changed

+0
-754
lines changed

README.md

-13
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ This repo uses [Changelog](CHANGELOG.md).
2323
* [Incremental dumping](#canal)
2424
* [Client](#client)
2525
* [Fake server](#server)
26-
* [Failover](#failover)
2726
* [database/sql like driver](#driver)
2827

2928
## Replication
@@ -326,18 +325,6 @@ MySQL [(none)]>
326325
>
327326
> To customize server configurations, use ```NewServer()``` and create connection via ```NewCustomizedConn()```.
328327
329-
330-
## Failover
331-
332-
Failover supports to promote a new master and let replicas replicate from it automatically when the old master was down.
333-
334-
Failover supports MySQL >= 5.6.9 with GTID mode, if you use lower version, e.g, MySQL 5.0 - 5.5, please use [MHA](http://code.google.com/p/mysql-master-ha/) or [orchestrator](https://github.com/outbrain/orchestrator).
335-
336-
At the same time, Failover supports MariaDB >= 10.0.9 with GTID mode too.
337-
338-
Why only GTID? Supporting failover with no GTID mode is very hard, because replicas can not find the proper binlog filename and position with the new master.
339-
Although there are many companies use MySQL 5.0 - 5.5, I think upgrade MySQL to 5.6 or higher is easy.
340-
341328
## Driver
342329

343330
Driver is the package that you can use go-mysql with go database/sql like other drivers. A simple example:

failover/const.go

-11
This file was deleted.

failover/doc.go

-8
This file was deleted.

failover/failover.go

-67
This file was deleted.

failover/failover_test.go

-176
This file was deleted.

failover/handler.go

-22
This file was deleted.

0 commit comments

Comments
 (0)