Paul

We need to expose two parameters for the NIO sender.. the defaults are 10secs to establish a connection and 60secs to decide if a socket connection timed out. Although exposed, these would apply system wide. Is this something we want to include for 1.1?

asankha

See HttpCoreNIOSender::getClientParameters()
....
           .setIntParameter(HttpConnectionParams.SO_TIMEOUT,
               cfg.getProperty(HttpConnectionParams.SO_TIMEOUT, 60000))
           .setIntParameter(HttpConnectionParams.CONNECTION_TIMEOUT,
cfg.getProperty(HttpConnectionParams.CONNECTION_TIMEOUT, 10000))


Paul Fremantle wrote:
Chathura

How do you reconfigure the transport to have a lower wait time?

Paul

On 9/13/07, Chathura Ekanayake <[EMAIL PROTECTED]> wrote:
Hi,

This delay is introduced by the underlying transport used by Synapse. That
transport takes about
60 seconds to report the failure of the target endpoint. Loadbalancer takes
action to remove the failed
endpoint and send requests to remaining endpoints only after the failure is
reported.
Currently there is no way to configure the time taken to detect the failure
at the transport level.

Although this is not related to the problem, you are using failover="false"
attribute in your load balance
configuration. This will cause lose of messages, sent to the failed
endpoint, while it is detected as failed.
If you want to resend such messages to remaining endpoints, use
failover="true" or remove the failover
attribute, which defaults to true.

Thanks,
Chathura



On 9/13/07, bvalentine1 <[EMAIL PROTECTED]> wrote:
Hello,

We want to load balance requests through Synapse but after shutting down 1
of the 3 endpoints, no more requests are recieved by our endpoints for
about
60 seconds.

Is this configurable or a symptom of a bad configuration?

Here is the config:

<definitions xmlns="http://ws.apache.org/ns/synapse";>

    <sequence name="main" onError="errorHandler">
        <in>
            <send>
                <endpoint>
                    <loadbalance failover="false">
                        <endpoint>
                            <address
uri="http://localhost:7010/wsProvider/webservice/wsProvider";>

<suspendDurationOnFailure>30</suspendDurationOnFailure>
                                <timeout>
                                        <duration>3</duration>
                                        <action>fault</action>
                                </timeout>
                            </address>
                        </endpoint>
                                                <endpoint>
                            <address
uri="http://localhost:7015/wsProvider/webservice/wsProvider";>

<suspendDurationOnFailure>30</suspendDurationOnFailure>
                                <timeout>
                                        <duration>3</duration>
                                        <action>fault</action>
                                </timeout>
                            </address>
                        </endpoint>
                        <endpoint>
                            <address
uri="http://localhost:7020/wsProvider/webservice/wsProvider";>

<suspendDurationOnFailure>30</suspendDurationOnFailure>
                                <timeout>
                                        <duration>3</duration>
                                        <action>fault</action>
                                </timeout>
                            </address>
                        </endpoint>
                    </loadbalance>
                </endpoint>
            </send>
        </in>

        <out>
            <send/>
        </out>
    </sequence>

    <sequence name="errorHandler">

        <makefault>
            <code value="tns:Receiver"
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
        </makefault>

        <header name="To" action="remove"/>
        <property name="RESPONSE" value="true"/>

        <send/>
    </sequence>

</definitions>


Thanks for the help



--
View this message in context:
http://www.nabble.com/Load-Balancing%3A-Clients-wait-60-seconds-after-1-of-3-endpoints-shut-down-tf4431948.html#a12643882
Sent from the Synapse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to