LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-25-2013, 05:02 AM   #1
tquang
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
IPVSADM not load balance MySQL Master-Master


Hi, I have got a big problem with my database system in working with balance

MySQL 1: 172.16.0.47 | Master 1 / Slave 2
MySQL 2: 172.16.0.49 | Master 2 / Slave 1
=>Master vs Master replicate

So, I need to balance request to 2 this servers, I installed ipvsadm on MySQL 1 and config on this
Code:
-A -t 172.16.0.48:3306 -s wlc
-a -t 172.16.0.48:3306 -r 172.16.0.47:3306 -g -w 1
-a -t 172.16.0.48:3306 -r 172.16.0.49:3306 -g -w 1
I create new NIC with IP 172.16.0.48 too. All firewall turned off.

But when telnet 172.16.0.48 3306, it does not work

How can I config to balance between requests like as: If have 2 request to
_1 will go to MySQL 1
_1 will go to MySQL 2

Thanks

Last edited by tquang; 06-26-2013 at 09:42 PM.
 
Old 06-26-2013, 09:42 PM   #2
tquang
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
How can I config to balance between requests like as: If have 2 request to
_1 will go to MySQL 1
_1 will go to MySQL 2
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL replicate Master-Master doesn't work tquang Linux - Server 4 08-05-2012 08:52 AM
mysql master-master-slaves database setup jindalarpan Linux - Server 1 04-10-2011 02:30 AM
LXer: Setting Up Master-Master Replication On Four Nodes With MySQL 5 On Debian Etch LXer Syndicated Linux News 0 11-20-2008 07:30 PM
LXer: Master-Master Replication With MySQL 5 On Fedora 8 LXer Syndicated Linux News 0 02-19-2008 05:40 AM
LXer: Setting Up Master-Master Replication With MySQL 5 On Debian Etch LXer Syndicated Linux News 0 10-25-2007 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration