Welcome! Log In Create A New Profile

Advanced

Re: nginx as load balancer + apache as a web server issue

Reinis Rozitis
August 10, 2010 03:26PM
> Thanks for your quick response, Im going to try that now.
> The thing is I have two webservers, on which one should I store this? If
> Im not wrong if the server that has the memcache running goes down my
> website will wont work, is that correct?

You can run a memcached instance on each webserver and provide both to the
php client/extension. It will automatically distribute / loadbalance and in
case one server goes down continue to work with other (typically all
memcache extensions disable the failed instance for given time period (15
secs) and retry later so there is bassically also no connect delays because
of unresponding servers).

Depending on the needs there is possibility to replicate the session data
(sessions are written to both memcache servers) by setting the PHP ini
variable memcache.session_redundancy for example to 2.


rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx as load balancer + apache as a web server issue

josesan311 August 10, 2010 03:24AM

Re: nginx as load balancer + apache as a web server issue

JG August 10, 2010 03:40AM

Re: nginx as load balancer + apache as a web server issue

josesan311 August 10, 2010 02:46PM

Re: nginx as load balancer + apache as a web server issue

josesan311 August 10, 2010 05:55PM

Re: nginx as load balancer + apache as a web server issue

Reinis Rozitis August 10, 2010 03:26PM

Re: nginx as load balancer + apache as a web server issue

josesan311 August 10, 2010 06:11PM

Re: nginx as load balancer + apache as a web server issue

josesan311 August 10, 2010 09:17PM

Re: nginx as load balancer + apache as a web server issue

Ryan Malayter August 11, 2010 05:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready