If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Replication - how to pick a slave...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-07, 04:20
tholder tholder is offline
Registered User
 
Join Date: Dec 2006
Location: Bristol, England
Posts: 7
Question Replication - how to pick a slave...

I'm considering replication with MySQL as a way to improve concurrency on our application but am wondering how I go about selecting a slave database for my reads?

I should say this is a web app, and ideally when a session is created I want it to stay with a particular server (this is based on my understanding that not all slaves will necessary be bang up to date depending on load etc?).

I guess I have 3 solutions:

1. pick a slave in my application code - I could do this, but it doesn't seem very intelligent as it may not evenly spread the load.

2. some sort of mysql configuration that sees all slaves as a single server? Don't know if this is possible or how it works in practise.

3. a hardware load balancer - don't really know anything abou this, but presumably solutions exist?

If anyone could shed any light on any of the above I'd greatly appreciate it.

Thanks
Tom
Reply With Quote
  #2 (permalink)  
Old 01-28-07, 22:17
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
Based on your req.. u need a load balancer. Yes you can use this replications to meet your goals.
But if you are using autoincrement ids, then you does not solve your problems.
Try this

http://www.onlamp.com/pub/a/onlamp/2...plication.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On