News Archive
PhpRiot Newsletter
Your Email Address:

More information

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

Note: This article was originally published at Planet PHP on 2 March 2011.
Planet PHP
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 ...