[owncloud-devel] Owncloud pool of servers behind a load balancer

Jos Poortvliet jospoortvliet at gmail.com
Sun Feb 14 17:48:30 GMT 2016


On Friday, February 5, 2016 4:45:51 PM BRST Pablo Marques wrote:
> Hi Owncloud devel 
> 
> It has been suggested on the user list that I ask this question to this development list : 
> 
> I am setting up a load balanced Owncloud with nginx. 
> Two backend servers running 8.2.2 with shared NFS storage. 
> Both servers are configured to use the same Redis server for memcache 
> 
> 'memcache.local' => '\\OC\\Memcache\\Redis', Not clear to me if using '\\OC\\Memcache\\APCu' instead is any better or worse in this line 
See https://doc.owncloud.org/server/8.2/admin_manual/installation/deployment_recommendations.html it probably answers some of your questions.

> 'memcache.distributed' => '\\OC\\Memcache\\Redis', 
> 'memcache.locking' => '\\OC\\Memcache\\Redis', 
> 'redis' => 
> array ( 
> 'host' => '10.10.10.34', 
> 'port' => '6379', 
> 'timeout' => '0', 
> 'dbindex' => '0', 
> ), 
> 
> All works great except that if I disable a backend server, the user that happened to be on that backend server is forced to authenticate again when the session is switched to the other server. 
> Isn't the user sessions stored and shared in Redis for both servers? 
> 
> I also configured the php.ini on both servers with these entries: 
> 
> session.save_handler = redis 
> session.save_path = "tcp://10.10.10.34:6379?database=1" 
> 
> How should I configure this setup to avoid user re-authentication on backend failure? 
> 
> Regards 
> 
> Pablo 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20160214/285fc6cd/attachment.sig>


More information about the Devel mailing list