Archiv für den Monat March, 2011

PECL/mysqlnd_ms: let web requests be your M/S load balancer

Wednesday, March 2nd, 2011

Introducing the best load balancing policy for PECL/mysqlnd_ms: "random_once". A (PHP) web request is short-lived. A web server can handle multiple requests per second. There are many web servers running an application. For each web request choose a random slave to use for the rest of the request. Don’t do load […]

A missed load balancing opportunity?

Tuesday, March 1st, 2011

Write-read sequences can be tricky for users of MySQL replication, if what has been written needs to be available for reading immediately. Slaves could be behind. You have to run the sequence on the master. If MySQL semisynchronous replication would tell the client which slave is in sync, a client library could select that […]