mysql database Two Synchronous open-source software otter "reprint"

Under the first project, the main flow of database management background is only used for administrators to configure, does not affect any business, single rooms to meet the demand. But non-customer requirements for double room double write, in line with the simple idea to solve the problem, we intend to double the read write a single point. But the result. . . . Depressing is that people are too lazy to even tell us the reason, how to ask all the questions about the data inconsistencies, a single write! amount. . . Development schedule is very tight, we first developed, to eventually deployed, client database synchronization issues any connection. This time around several days later, dba then he said, because the Mysql replication mechanism itself is not reliable in the situation across the room. Tears ran .......

? Otter open source , this wonderful point in time, just can be used on, ye! Otter to pay tribute to the developers!
? Otter wiki pages: HTTPS: //github.com/alibaba/otter
?
Environment requires otter is:? Mysql, jdk, zookeeper, node, aria2, manager?
To prevent the otter flash off, I put some software uploaded to Baidu on the cloud:
?? http://pan.baidu.com/share/link?uk=3708161223&shareid=2987646776#dir
other is not to say, just say to install and use.
1 ,? the JDK install MySQL, ZooKeeper
? Otter only supports versions 5.5 and below, Mysql, does not support maridb
assumed here to install the database A: 192.168.85.10: 3306
Database B: 192.168.85.11:3306
the JDK, I installed 7 after installation, configuration environment variable
zookeeper, you can install only one can be installed in a cluster form.
I'm just an address, zookeeper installed:? 192.168.85.10: 2181
? 2 Installation node and aria2
node aria2 need support, I was in the engine room of the installation of a set of AB.

? Installation node:
?? Create a directory: mkdir node
? Enter the directory:? Cd node
? Download node:
? Decompress:?? Tar zxvf node.deployer- $ version.tar.gz
modify node configurations:?? Vi conf / otter.properties
otter.manager.address = 172.20.150.70: 1099 ## otter.communication.manager.port with the configuration manager in otter.properties of
?? node start / stop:
?? cd bin
?? startup.sh/ stop.sh, are provided
??
? install aria2:
Download aria2:
decompress:?? tar zxvf aria2- $ version.tar.gz
order to facilitate the switch directory: mv aria2- $ version aria2
into the directory: cd aria2
compile:

Guess you like

Origin www.cnblogs.com/sqlserver-my/p/11013458.html