Julio,

In this scenario am I right in thinking that in MySQL the Master 
automatically acts as a load balancer and that  I therefore don't need 
any other software
to automatically delegate reads between slaves and MySQL knows to send 
all writes to the Master?

I'm slightly confused,  I've been reading an article at on Scaling MySQL 
with replication at  http://docs.hp.com/en/5991-7432/ar01s05.html - to 
quote:-

"There should be two data sources configured in any application that is 
accessing the replicated database. One is the LVS, which acts as a load 
balancer for any read queries to the slave servers, and the other is the 
master server for any write queries.

Why would you need LVS to balance the load between the slaves if this is 
already handled by the Master?

MerMer

>   Yes, there's a way, but it's not in Django that you do this, but on
> the database. You don't need to configured Django (or any application
> accessing the database) to "talk" to slave hosts. It's the job of the
> database server software to abstract this step for you.
>
>   You're going to setup slaves to a master host, and in most cases,
> the former will be used for SELECT and the latter to I/U/D.
>
>   What happens is something like this: Master M and slaves S1 and S2
> are configured. Application asks M for row id 15. M sends query to S1.
> S1 answers to M who answers to application. Application asks for row
> id 20. M sends to the next slave, S2, and so on. As new queries keep
> coming, so M keeps rotating between its slaves.
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to