Re:NGINX open sources TCP load balancing
by oimaz on Monday April 20, 2015 @12:57PM
(#9409362)
can this loadbalance redis and memcache?
[ Parent
| on HN ]
Don't know for NGinx yet, but one can balance with HAProxy, e.g. create 2 backends for read/write respectively.
http://blog.haproxy.com/2014/01/02/haproxy-advanced-redis-he...
Re:NGINX open sources TCP load balancing
by phildougherty on Monday April 20, 2015 @01:10PM
(#9409458)
Yes it could. You would either need to have redis slave replication setup and then only load balance your read-replicas, or else you would need to use sticky sessions to always send requests back to the right node.. I'm not sure if sticky sessions is possible with TCP loadbalancing in nginx but I assume it is.