stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanna Dangalla <prasa...@wso2.com>
Subject Re: Access URL not accessible with load balancing
Date Tue, 09 Sep 2014 11:21:01 GMT
Hi,
     We added port 8280 manually to the template file and it worked.

Thanks

On Tue, Sep 9, 2014 at 10:16 AM, Nirmal Fernando <nirmal070125@gmail.com>
wrote:

>
>
> On Tue, Sep 9, 2014 at 9:58 AM, Chamila De Alwis <chamilad@wso2.com>
> wrote:
>
>> Thanks Nirmal! That clears it up.
>>
>> In our case, it seems that LB is not opening the port specified as the
>> proxyPort by the cartridge.
>>
>
> Yes, unfortunately such a dynamism is hard to implement :-) (you need to
> restart LB etc.)
>
>>
>> According to the puppet module template the transportReceiver port is
>> defined at the nodes.pp as port 80 by default ($lb_httpPort)[1]. If the LB
>> should accept requests at the port defined by the cartridge definition,
>> shouldn't it be passed to LB through launch parameters or through the
>> member activate event?
>>
>
>> [1] -
>> https://github.com/apache/stratos/blob/4.0.0-rc4/tools/puppet3/manifests/nodes.pp
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Tue, Sep 9, 2014 at 8:57 AM, Nirmal Fernando <nirmal070125@gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Let me explain the rationale behind defining a proxy port. Proxy port is
>>> a way to let LB know, that LB should redirect all the requests that are
>>> coming to it (i.e. proxy port) to mapped host port (i.e. port). This
>>> mapping becomes vital when LB exposes multiple ports (i.e. you can define n
>>> number of transport receivers in LB). Hence, if you require a Cartridge to
>>> be load balanced, and then it's a must to define the port mapping and it's
>>> not practical to define a default value due to the fact that people have
>>> the liberty to change the transport receiver configurations in LB.
>>>
>>> On Tue, Sep 9, 2014 at 8:36 AM, Akila Ravihansa Perera <
>>> ravihansa@wso2.com> wrote:
>>>
>>>> Hi Prasanna,
>>>>
>>>> This commenting is not relevant since LB axis2.xml is deployed via
>>>> Puppet. Please check Puppet lb module templates.
>>>> On 9 Sep 2014 08:19, "Prasanna Dangalla" <prasanna@wso2.com> wrote:
>>>>
>>>>> Hi sajith,
>>>>>
>>>>> In LB's axis2.xml file. (in
>>>>> <LB_HOME>/repository/conf/axis2/axis2.xml), the below mentioned
part is
>>>>> commented. Is this the reason because ports 8280 and 8243 are commented
in
>>>>> this.
>>>>>
>>>>>     <!-- uncomment for non blocking http transport based on HttpCore
+
>>>>> NIO extensions -->
>>>>>     <!-- transportReceiver name="http"
>>>>> class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
>>>>>         <parameter name="port" locked="false">8280</parameter>
>>>>>         <parameter name="non-blocking" locked="false">true</parameter
>>>>> -->
>>>>>         <!--parameter name="bind-address" locked="false">hostname
or
>>>>> IP address</parameter-->
>>>>>         <!--parameter name="WSDLEPRPrefix"
>>>>> locked="false">https://apachehost:port/somepath</parameter-->
>>>>>         <!-- parameter name="httpGetProcessor"
>>>>> locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter>
>>>>>     </transportReceiver -->
>>>>>
>>>>>     <!-- the non blocking https transport based on HttpCore + SSL-NIO
>>>>> extensions -->
>>>>>     <!-- transportReceiver name="https"
>>>>> class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
>>>>>         <parameter name="port" locked="false">8243</parameter>
>>>>>         <parameter name="non-blocking" locked="false">true</parameter
>>>>> -->
>>>>>         <!--parameter name="bind-address" locked="false">hostname
or
>>>>> IP address</parameter-->
>>>>>         <!--parameter name="WSDLEPRPrefix"
>>>>> locked="false">https://apachehost:port/somepath</parameter-->
>>>>>         <!-- parameter name="httpGetProcessor"
>>>>> locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter>
>>>>>         <parameter name="keystore" locked="false">
>>>>>             <KeyStore>
>>>>>
>>>>> <Location>repository/resources/security/wso2carbon.jks</Location>
>>>>>                 <Type>JKS</Type>
>>>>>                 <Password>wso2carbon</Password>
>>>>>                 <KeyPassword>wso2carbon</KeyPassword>
>>>>>             </KeyStore>
>>>>>         </parameter>
>>>>>         <parameter name="truststore" locked="false">
>>>>>             <TrustStore>
>>>>>
>>>>> <Location>repository/resources/security/client-truststore.jks</Location>
>>>>>                 <Type>JKS</Type>
>>>>>                 <Password>wso2carbon</Password>
>>>>>             </TrustStore>
>>>>>         </parameter -->
>>>>>         <!--<parameter name="SSLVerifyClient">require</parameter>
>>>>>             supports optional|require or defaults to none -->
>>>>>     <!-- /transportReceiver -->
>>>>>
>>>>>
>>>>> On Tue, Sep 9, 2014 at 12:04 AM, Chamila De Alwis <chamilad@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Setting proxyPort to 80 works successfully.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Chamila de Alwis
>>>>>> Software Engineer | WSO2 | +94772207163
>>>>>> Blog: code.chamiladealwis.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Sep 8, 2014 at 10:42 PM, Udara Liyanage <udara@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Instead of 0 could you try with 80.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Prasanna Dangalla
>>>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>>>> lean.enterprise.middleware
>>>>>
>>>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>>>> twitter: @prasa77
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77

Mime
View raw message