note 87378 added to memcache.ini

From: Date: Tue, 02 Dec 2008 16:40:30 +0000
Subject: note 87378 added to memcache.ini
Groups: php.notes 
Request: Send a blank email to php-notes+get-147560@lists.php.net to get a copy of this message
The current memcache 3.0.2 (beta) has options for server redundancy. Has anyone tried this yet? Although it's beta, it would suit our client's needs perfectly as a session handler and it would reduce the need for us to rewrite large sections of code and reinvent the wheel. Documentation on these new features is very hard to find unfortunately. What I've come up with in a situation with two memcached servers and 6 webservers and with the following demands: 1) users keep their sessions when a webserver fails or loadbalancing decides to move them to another server 2) users keep their sessions when a memcached server fails (and 3) it needs to be fast) session.save_handler='memcache'; session.save_path='tcp://host1:11211, tcp://host2:11211'; memcache.redundancy=2; memcache.session_redundancy=2; memcache.allow_failover=2; Would that work? (I've tried explaining memcached is not directly meant for this job and that it should actually be run on the webservers - they see it as just a very fast database) ---- Server IP: 213.249.64.162 Probable Submitter: 193.173.162.51 ---- Manual Page -- http://www.php.net/manual/en/memcache.ini.php Edit -- https://master.php.net/note/edit/87378 Del: integrated -- https://master.php.net/note/delete/87378/integrated Del: useless -- https://master.php.net/note/delete/87378/useless Del: bad code -- https://master.php.net/note/delete/87378/bad+code Del: spam -- https://master.php.net/note/delete/87378/spam Del: non-english -- https://master.php.net/note/delete/87378/non-english Del: in docs -- https://master.php.net/note/delete/87378/in+docs Del: other reasons-- https://master.php.net/note/delete/87378 Reject -- https://master.php.net/note/reject/87378 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147560) next »