httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zisis Lianas <Zisis.Lia...@consol.de>
Subject Re: httpd 2.4.1 and mod_slotmem_shm / mod_proxy_balancer (AH01179)
Date Wed, 07 Mar 2012 09:39:50 GMT
Hi Jim,

for me/us it's needed, because we operate with multi-instancing.

e.g.:
Apache installation directory ("ServerRoot") is /opt/http-2.4.x/
(belonging to apache:apache). This installation only provides the
httpd binaries/modules.


Users on this server configure their own apache insances:

(user1:group1)
/var/www/project1/
                 \==> logs/  (error/access/pid/mutex)
                 \==> htdocs/  (content)
                 \==> config/  (httpd.conf, includes, etc.)

(user2:group2)
/var/www/project2/
                 \==> logs/
                 \==> htdocs/
                 \==> config/

(user3:group3)
/var/www/project3/
                 \==> logs/
                 \==> htdocs/
                 \==> config/


So a customizable slotmem-shm file would make sense in
this scenario.


Regards,
Zisis

----- Original Message -----
From: "Jim Jagielski" <jim@jaguNET.com>
To: dev@httpd.apache.org
Sent: Tuesday, March 6, 2012 7:26:19 PM
Subject: Re: httpd 2.4.1 and mod_slotmem_shm / mod_proxy_balancer (AH01179)

My plan is 2 pronged... to see if r1297560 is enough and if
allowing a slotmem override is even needed (or wanted) ... ;)

On Mar 6, 2012, at 12:35 PM, Zisis Lianas wrote:

> Thanks Jim, that works fine for the default-rel-runtimedir configuration.
> Slotmem file is created as <serverroot>/logs/slotmem-shm-sxxxxxxxx.shm.
> 
> Now if also the slotmem-file-target-location directive gets available,
> this thread is done for me.
> 
> 
> Regards,
> Zisis
> 
> ----- Original Message -----
> From: "Jim Jagielski" <jim@jaguNET.com>
> To: dev@httpd.apache.org
> Sent: Tuesday, March 6, 2012 5:21:22 PM
> Subject: Re: httpd 2.4.1 and mod_slotmem_shm / mod_proxy_balancer (AH01179)
> 
> http://svn.apache.org/viewvc?rev=1297560&view=rev
> 
> On Mar 6, 2012, at 10:39 AM, Jeff Trawick wrote:
> 
>> On Tue, Mar 6, 2012 at 10:33 AM, Jim Jagielski <jim@jagunet.com> wrote:
>>> Yeah, that seems better, ala ./modules/cache/mod_socache_dbm.c
>> 
>> On behalf of anyone else reading this thread, here's the idiom from
>> mod_socache_dbm.c:
>> 
>> #define DEFAULT_DBM_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-dbm-"
>> ...
>>      const char *path = apr_pstrcat(p, DEFAULT_DBM_PREFIX, namespace,
>>                                      NULL);
>> 
>>       ctx->data_file = ap_server_root_relative(p, path);
>> 
>> 
>>> 
>>> On Mar 6, 2012, at 8:36 AM, Jeff Trawick wrote:
>>> 
>>>> On Tue, Mar 6, 2012 at 7:56 AM, Jim Jagielski <jim@jagunet.com> wrote:
>>>>> OK... What I'll do is add a directive which provides a
>>>>> "default" location for slotmem file...
>>>> 
>>>> Uhh, that seems as endless as per-mutex directives.
>>>> 
>>>> Is slotmem not using DEFAULT_REL_RUNTIMEDIR already?  (not perfect,
>>>> but a good start)
>>>> Directive to specify runtime directory (API returns serverroot +
>>>> DEFAULT_REL_RUNTIMEDIR if not configured).
>>>> Directive like Mutex but for shmem?
>>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> Born in Roswell... married an alien...
>> 
> 


Mime
View raw message