Welcome! Log In Create A New Profile

Advanced

Memcached modules behaviour

November 09, 2009 01:26PM
Greetings,

I have a pool of two memcached servers that I use in nginx for
querying (using Valery's eval module) and, in case of cache miss, for
setting with the key/value pair in a PHP script. How does nginx/eval
module query this memcached pool? Any kind of hashing is done? Round-
robin? While we're at it, does eval module reuse the default nginx
memcache module implementation?

The original problem is that I'm having memcached key/value sets in
PHP being done to a specific server (some key hashing algorithm is
used with the PECL memcache extension), while later on nginx appears
to be querying both servers (causing a cache miss when contacting the
wrong server).

Any suggestions on how to solve this? Right now, the options I'm
seeing are:
1. extend either nginx or PECL's memcache (or memcached)
2. use only one server for memcached
3. have my PHP do a set for every server in the pool

#2 is of course the easiest, not necessarily the safer. Thanks in
advance.

Pedro.
Subject Author Posted

Memcached modules behaviour

matamouros November 09, 2009 01:26PM

Re: Memcached modules behaviour

agentzh November 11, 2009 09:02PM

Re: Memcached modules behaviour

matamouros November 12, 2009 06:26AM

Re: Memcached modules behaviour

agentzh November 16, 2009 10:48PM

Does nginx has a module as apace module mod_speling?

dennisjanuary November 17, 2009 12:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready