Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 91503 invoked from network); 3 Aug 2006 22:07:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 22:07:59 -0000 Received: (qmail 75053 invoked by uid 500); 3 Aug 2006 22:07:55 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 75002 invoked by uid 500); 3 Aug 2006 22:07:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 74991 invoked by uid 99); 3 Aug 2006 22:07:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 15:07:55 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jfclere@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 15:07:54 -0700 Received: by nf-out-0910.google.com with SMTP id x37so823054nfc for ; Thu, 03 Aug 2006 15:07:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Hi2rkAduIFkkbPOzDNrBZDGKXyrGHjrSIeIOtOxZ9uQc5SeeKABENb0pVlclvWuefkny9mQJhyJgkGi3qNs2mJnt4hSVCsi9GyebyvVesViH9Sp+qkRHd/ujOehcYGQ5PPXI2m9LOB9iqY12ZhqUGAe/08YfiFwTEWMImHE3Dmk= Received: by 10.49.8.4 with SMTP id l4mr4506984nfi; Thu, 03 Aug 2006 15:07:33 -0700 (PDT) Received: from ?127.0.0.1? ( [62.203.115.220]) by mx.gmail.com with ESMTP id i1sm1669440nfe.2006.08.03.15.07.32; Thu, 03 Aug 2006 15:07:32 -0700 (PDT) Message-ID: <44D273C1.3070006@gmail.com> Date: Fri, 04 Aug 2006 00:08:01 +0200 From: Jean-frederic Clere User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060620 Debian/1.7.13-0.2 X-Accept-Language: en, fr MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r428437 - /httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/mod_proxy_health_checker.c References: <20060803160151.C3AE01A981A@eris.apache.org> <44D251D3.6080107@apache.org> In-Reply-To: <44D251D3.6080107@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ruediger Pluem wrote: >On 08/03/2006 06:01 PM, jfclere@apache.org wrote: > > >>Author: jfclere >>Date: Thu Aug 3 09:01:50 2006 >>New Revision: 428437 >> >>URL: http://svn.apache.org/viewvc?rev=428437&view=rev >>Log: >>Use only one slotmem for status and checker. >> >>Modified: >> httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/mod_proxy_health_checker.c >> >>Modified: httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/mod_proxy_health_checker.c >>URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/mod_proxy_health_checker.c?rev=428437&r1=428436&r2=428437&view=diff >>============================================================================== >>--- httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/mod_proxy_health_checker.c (original) >>+++ httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/mod_proxy_health_checker.c Thu Aug 3 09:01:50 2006 >>@@ -40,13 +40,19 @@ >> { >> const health_worker_method *worker_storage; >> worker_storage = ap_lookup_provider(PROXY_CKMETHOD, "default", "0"); >>+ proxy_server_conf *sconf = ap_get_module_config(s->module_config, >>+ &proxy_module); >>+ char *slotmem_loc = sconf->slotmem_loc; >> >> if (worker_storage) { >> apr_status_t rv; >>- rv = worker_storage->create_slotmem("proxy/checker", ap_proxy_lb_workers(), pconf); >>+ if (!slotmem_loc) >>+ slotmem_loc = apr_pstrcat(pconf, ":", proxy_module.name, NULL); >>+ >>+ rv = worker_storage->create_slotmem(slotmem_loc, ap_proxy_lb_workers(), pconf); >> >> > >Sorry for being confused, but in one case you store a (struct proxy_worker_conf) in this slotmemory and >in proxy_util you use the same area to store a proxy_worker_stat entry. So as far as I understand it you >store different structures, with different sizes in the same memory. Does this really work? > > This works, but there is another problem (also in trunk) that I have not solved yet: - in httpd.conf change the workers (add one in top for example). - make graceful restart - go to /server-status/ The information about workers (Access/Read/Write) is wrong. With the persistance I have added you have to remove the *.slotmem file to arrange it, in trunk a stop and a start helps. To solve that I am thinking of using ap_md5_binary on the worker_conf list. Comments? Cheers Jean-Frederic >Regards > >RĂ¼diger > > >