1
xalys
6y

Does anyone have experience with load balancing PHP-FPM?

Comments
  • 1
  • 1
    @Linux does it help with performance? Which load balancing appliance did you use?
  • 2
    @xalys
    Not really actually. I prefer instead to loadbalance entire webbservers.

    HAproxy is recommended
  • 1
    @Linux thanks. I’m building a web cluster with HAProxy and was wondering if I would gain performance by load balancing PHP as well. So if HTTP traffic comes in on server A, server A and B could both handle PHP..
  • 2
    @xalys
    Yes!
    Just let they share the same database and fileshare :)
  • 1
    @Linux yeah, for now I’m going to go with HAProxy, ExaBGP for my VIP, and a UNIX socket for PHP-FPM..
  • 0
    @xalys
    Sounds like a good idea! PHP over TCP is slower than socket :)
  • 0
    @Linux hmm, I'm benchmarking it right now. I think I'm going to the results in a little blog, because there's not much information on the interwebs about PHP-FPMM load balancing specifically :(
Add Comment