Hoi Arend,
Have you already taken a look at MySQL proxy?
http://forge.mysql.com/wiki/MySQL_Proxy
It might be able to do what you want, or might need a slight modification
to do so.
Best regards,
Arnold
On Sat, 10 Nov 2007 16:51:03 +0100, "Arend van Beelen" <arend@hyves.nl>
wrote:
> Hi Donal,
>
> thanks for your suggestion. While I think this approach might provide
some
> quick solutions short-term, there actually is a much bigger problem we
are
> trying to attack. I don't know exactly how much details I can give, but I
> will give some background information to get some more insight in the
> situation...
>
> We are dealing with literally hundreds of webservers, and hundreds of
> database servers, and are expanding both of them on a frequent basis.
> Whenever we increase the number of webservers, the databases become our
> bottleneck and vice versa. We realize we won't magically solve any of
> these bottlenecks by introducing parallel querying on the databases. We
> have lots of tables which are divided over more than a dozen database
> clusters, and we are getting more and more tables which become so big
they
> have to be spread out over multiple databases. Because of the
distribution
> of these tables, querying them becomes increasingly hard, and we are
> approaching a limit where further distribution will become virtually
> undoable using our current approach. The current approach being querying
> the various databases serially from PHP and manually merging the results.
> If we continue down this path, our PHP application will have to do
> increasingly many queries serially, and latencies will add up more and
> more. Not to mention the code maintenance required for finding the
correct