memcached lookups in apache module

2011-08-23 Thread Dennis Jacobfeuerborn

Hi,
I'm working on an apache module that basically rewrites URLs based on a 
simple memcached lookup. I've noticed that apr-util already comes with 
memcached functions but I'm wondering about the 
apr_memcache_server_create() argument semantics.


Apparently I have to provide minimum, soft maximum, hard maximum and a 
time-to-live value and I'm not sure what values are sensible here.
I'm dealing with ten webservers accessing ten memcached servers and there 
are going to be lookups between all systems all the time so I really don't 
need any dynamic behavior.


What are good values for the minimum number of connections? 1, 10, 100?
The hard maximum number is obvious but what is the purpose of the soft 
maximum number of connections?


Thanks,
  Dennis


Re: memcached lookups in apache module

2011-08-23 Thread Nick Kew
On Tue, 23 Aug 2011 16:11:59 +0200
Dennis Jacobfeuerborn denni...@conversis.de wrote:

 Hi,
 I'm working on an apache module that basically rewrites URLs based on a 
 simple memcached lookup. I've noticed that apr-util already comes with 
 memcached functions but I'm wondering about the 
 apr_memcache_server_create() argument semantics.

Look in trunk or 2.3.x instead of 2.2, and you have the readymade
socache modules, including one which provides memcache.

BTW, this would be more on-topic for the modules-dev list.


-- 
Nick Kew


Re: memcached lookups in apache module

2011-08-23 Thread Dennis Jacobfeuerborn

On 08/23/2011 04:35 PM, Nick Kew wrote:

On Tue, 23 Aug 2011 16:11:59 +0200
Dennis Jacobfeuerborndenni...@conversis.de  wrote:


Hi,
I'm working on an apache module that basically rewrites URLs based on a
simple memcached lookup. I've noticed that apr-util already comes with
memcached functions but I'm wondering about the
apr_memcache_server_create() argument semantics.


Look in trunk or 2.3.x instead of 2.2, and you have the readymade
socache modules, including one which provides memcache.


Thanks. I've taken a quick look at mod_socache_memcache and 
mod_authn_socache and I think I've got an idea how to implement this.


What is the status of 2.3/2.4? Is the current code semi production ready 
and do you know when 2.4 will be released?


Regards,
  Dennis