News for hackers. Stuff that matters.
Re:Bedrock – Rock-solid distributed data by lucio on Tuesday October 18, 2016 @11:41PM (#12740883)
How does the client get "redirected" to another node if the one you're talking to fails? It is transparent to the client?
Re:Bedrock – Rock-solid distributed data by quinthar on Tuesday October 18, 2016 @11:47PM (#12740913)
Our PHP library has the concept of a primary and failover host. We recommend configuring a local Bedrock node as the "primary host", and then setting up a load-balanced pool of all nodes to be used as the "secondary host". This means in normal operation, every webserver talks directly its nearest node (bypassing the load balancer), but "fails over" to the load balancer if the primary is down.

Granted, a simpler configuration is to just have two load balancers -- both of which have all nodes -- and then use each as the primary/secondary. We did this for years and it was fine, but for just a tiny bit more configuration overhead you can bypass the load balancer for the primary and thus shave off those precious milliseconds from each request.