W
W
WooDFox2014-05-20 18:33:10
PHP
WooDFox, 2014-05-20 18:33:10

How to setup Keepalived HA for MySQL cluster?

Introductory: 1. Three servers
with MySQL (Percona XtraDB Cluster) Ubuntu 12.04 2. IP
addresses 10.10.1.121-123 and balancer
.120 IP .120 and ports 3307 and 3308 3307 refers to the entire real_server pool 3306, DR routing (lb_kind) 3308 refers only to the current node on 3306, NAT routing Connection to .120:3308 works fine, local MySQL always answers when moving .120:3307 does not work (falls off by timeout). Judging by tcpdump port 3306, the packets go normally, but the processing server does not accept them (MySQL responses come from the src ip of the node)



The real question is what can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WooDFox, 2014-05-23
@WooDFox

Problem solved.
The solution came from the side of the manual and consisted in the fact that with DR on IPVS you cannot map ports.
A little later there will be a manual for assembling such a config.

P
Puma Thailand, 2014-05-20
@opium

Set up query splitting via mysqlproxy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question