We're reaching the top end of what a single web server can handle (We already moved all the images over to a pool of load-balanced lighttpd image servers) and now we're starting to think about adding more web servers and a load balancer for them. We're probably going to go down the route of an HAProxy software load balancer.
Question is will running through a load balancer cause any problems for elgg?
The first thing which springs to mind is sessions. I know some session info is stored in the database but I have a feeling elgg is relying on Apache for some of it so maybe if the same client hits a different server their session will get lost? Not had time to really dig into it and confirm yet. Can anyone fill in the details?
The other issue will be IP address tracking. My custom security plugin does it but I can fix that to take the IP from the special headers added by HAProxy... I'm assuming elgg itself doesn't use client IP addresses anywhere.
Any other issues I should consider?
Thanks very much for your help!
Chris
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- chris14679@chris14679
chris14679 - 0 likes
You must log in to post replies.I just discovered apache mod_rpaf can solve the IP issue by faking the correct client IP within apache, easy solution!
Sessions are still a concern...