Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 35978 invoked from network); 3 Feb 2011 09:14:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2011 09:14:43 -0000 Received: (qmail 46340 invoked by uid 500); 3 Feb 2011 09:14:43 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 46168 invoked by uid 500); 3 Feb 2011 09:14:41 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 46160 invoked by uid 99); 3 Feb 2011 09:14:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 09:14:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of charith.dhanushka@gmail.com designates 209.85.215.170 as permitted sender) Received: from [209.85.215.170] (HELO mail-ey0-f170.google.com) (209.85.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 09:14:35 +0000 Received: by eyf5 with SMTP id 5so673383eyf.15 for ; Thu, 03 Feb 2011 01:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=KuDxyk8CdLw9Z5mZ7vpck76y4X/f3bFYW7OSOtLoOyU=; b=Am3fhfhFUV1+DIIaSGZfL9kCUKe92dqQkswH78X0ucAXr0zXJjB1ADleKxz5P8bZar dzreCRfGzAi8/3cU9BzJDQSbXAZlX6BTkSz6SGVK/WRpajGnSyP5iJzmIkQbiFCDFV3a 6pbKi+A9wjigKwXO69+rSydAvQstpE+v3mim8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=upH++52h75rmnH1ejEmv1n1+knGXjLXMkAkQbJTwvNKyBgy9QS3RQjLbw5pjcUeyjB 7m5Y5ZofKVAOAizAtFUfecgm7c6g6oFFt7idLj9I1LGusbHDLqy4U/YHtMMdZ8iFl+sH ZnfKhNrlUELjz5OTRFor6/6rDvwH9Lc8naX3E= MIME-Version: 1.0 Received: by 10.213.27.203 with SMTP id j11mr8516373ebc.51.1296724453690; Thu, 03 Feb 2011 01:14:13 -0800 (PST) Received: by 10.213.31.70 with HTTP; Thu, 3 Feb 2011 01:14:13 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Feb 2011 14:44:13 +0530 Message-ID: Subject: Re: Issue with switch on/off LoadBalance and FailOver endpoints from Jconsole From: Charith Wickramarachchi To: dev@synapse.apache.org Content-Type: multipart/alternative; boundary=0015174c18226f0d41049b5d3082 --0015174c18226f0d41049b5d3082 Content-Type: text/plain; charset=ISO-8859-1 +1 Which means user should be able to use the child endpoints even though the LB/FO Endpoints are down. Allowing those child endpoints be to reused in the other parts of the configuration. thanks, Charith On Thu, Feb 3, 2011 at 12:11 PM, Miyuru Wanninayaka wrote: > Hi all, > > As current implementation of LoadBalance and FailOver endpoints, when we > turned off LB/FO endpoint from jconsole, what really happens is all child > endpoints of FO/LB endpoints gets switched off. I think this behavior is > wrong. Since FO/LB endpoint has a context, it's possible to keep status in > that context and handle in send() method of LB/OF endpoints without turning > off child endpoints. > > Also in shared indirect endpoint situations like this: > > > algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> > > > > > > > > > >
> > > turning off ST_Quote_LB1 will cause ST_Quote_FO1 to stop working. > > Any ideas? > > -- > Miyuru Wanninayaka > Software Engineer - WSO2 Inc . > -- Charith Dhanushka Wickramarachchi http://charithwiki.blogspot.com/ --0015174c18226f0d41049b5d3082 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable +1

Which means user should be able to use the child endpoints even t= hough the LB/FO Endpoints are down. Allowing those child endpoints be to re= used in the other parts of the configuration.

thanks,
Charith=A0 =

On Thu, Feb 3, 2011 at 12:11 PM, Miyuru Wann= inayaka <miyurud= w@gmail.com> wrote:
Hi all,

As current implementation of LoadBalance and FailOver endpoi= nts, when we turned off LB/FO endpoint from jconsole, what really happens i= s all child endpoints of FO/LB endpoints gets switched off. I think this be= havior is wrong. Since FO/LB endpoint has a context, it's possible to k= eep status in that context and handle in send() method of LB/OF endpoints w= ithout turning off child endpoints.

Also in shared indirect endpoint situations like this:

=A0=A0=A0= <endpoint name=3D"ST_Quote_LB1">
=A0=A0=A0=A0=A0=A0=A0 = <loadbalance algorithm=3D"org.apache.synapse.endpoints.algorithms.R= oundRobin">
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <endpoint key=3D"SimpleStockQu= oteService_EP"/>
=A0=A0=A0=A0=A0=A0=A0 </loadbalance><= br>=A0=A0=A0 </endpoint>
=A0=A0=A0 <endpoint name=3D"ST_Qu= ote_FO1">
=A0=A0=A0=A0=A0=A0=A0 <failover>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <endpoint key=3D"SimpleStockQu= oteService_EP"/>
=A0=A0=A0=A0=A0=A0=A0 </failover>
= =A0=A0=A0 </endpoint>
=A0=A0=A0 <endpoint name=3D"Simpl= eStockQuoteService_EP">
=A0=A0=A0=A0=A0=A0=A0 <address ur= i=3D"http://localhost:9000/services/SimpleStockQuoteService<= /a>"/>
=A0=A0=A0 </endpoint>

turning off ST_Quote_LB1 will cause ST_Q= uote_FO1 to stop working.

Any ideas?

--
Miyuru Wanninayaka
Software Engineer -
WSO2 Inc.



--
Charith Dhanushk= a Wickramarachchi
http://ch= arithwiki.blogspot.com/

--0015174c18226f0d41049b5d3082--