memcache weight session
| From: | Rudy Gevaert | Date: | Tue, 03 Jun 2008 13:48:35 +0000 |
| Subject: | memcache weight session | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-5483@lists.php.net to get a copy of this message | ||
Hello,
I have set up php-memcache 3.0.1 and would like to use it to store my sessions in:
$session_save_path = "tcp://hostx:11211?weight=10,tcp://hosty:11211?weight=1,tcp://hostz:11211?weight=20";
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', $session_save_path);
ini_set('memcache.session_redundancy',3);
The basic functionality works:
- sessions save,edit,destroy
- redundancy
If one host fails it happily continues to work.
However the weight of the servers doesn't seem to respond to what I have configured.
It just randomly takes a server. When I put a memcached server off line it just takes on of the others at random.
That is not what I want :). I really need to specify the most preferred host.
Is this in fact working for anybody?
I hope this is the correct channel to request help, because I couldn't find a more specific channel.
Thank you in advance,
Rudy
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert Rudy.Gevaert@UGent.be tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen Systems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --