Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6765DC677 for ; Tue, 11 Jun 2013 14:25:44 +0000 (UTC) Received: (qmail 65413 invoked by uid 500); 11 Jun 2013 14:25:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65347 invoked by uid 500); 11 Jun 2013 14:25:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 65328 invoked by uid 99); 11 Jun 2013 14:25:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 14:25:39 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [76.96.62.40] (HELO qmta04.westchester.pa.mail.comcast.net) (76.96.62.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 14:25:34 +0000 Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta04.westchester.pa.mail.comcast.net with comcast id mzQV1l0030QuhwU542Qt6S; Tue, 11 Jun 2013 14:24:53 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.106.98]) by omta02.westchester.pa.mail.comcast.net with comcast id n2Qt1l00Z27QCxh3N2QtPm; Tue, 11 Jun 2013 14:24:53 +0000 Message-ID: <51B73337.3010106@christopherschultz.net> Date: Tue, 11 Jun 2013 10:24:55 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: http request (no only session) replication in cluster References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1370960693; bh=FfJShVfbCwNUjo9AFbu8JrRFlyhVn29lDWGBI1SAWww=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=qGi0HDIzQ26YEH/4xm1hcJLhyHrimV+iysRmV496symQMlLjsADZhIK8RJBnAaS5E Spewm0WpkES053WVwGXu3a883dMVmkIsVktcYGVFtwgnKyO+edqcGwTgeDaxVeGe9q yZGSP/Lg0/SflhN9UBSKAIChXDNC7nn/i43Epd3y54yiob9ZcDeYvzZP0SSPE54wrs KqijKza/jjZFhkc+H1K720dSGZzuy0l+1KO1i+S4td/jWBaAMu8nP85biXPIox55hi 8BhaMonzELgzEeU2SWjolOyXvEW+CfefO5lL+LmtmKUQac+eOx2liXHh+joJU+sG6v 57CIxO6dB43Ag== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Ja, On 6/11/13 9:54 AM, Ja kub wrote: > What can be done to guarantee failover in below scenario: > > 2 tomcats behind cisco loadbalancer 1 http request can last very > long about 50 seconds - response from webservice can take so long > load is 200 requests per second I must response in max 4 seconds > more than backing webservice > > is there something like http request replication ? > > 50 s * 200 req/s = 10.000 pending requests > > if one tomcat is eg killed, can in any way other tomcat serve his > requests ? > > is there any out of the box solution, eg similar to session > replication ? The best way to do this is to configure your load balancer to buffer responses and re-try another cluster node in the case of an unexpected disconnect. If you can't buffer the response, then it is entirely inappropriate to re-process a request: instead, you should let the failure propagate all the way back to the client and let them decide what to do. > is it possible to save socket to database, or send it via network? No. I think you are confused about what a socket is. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRtzM3AAoJEBzwKT+lPKRYPaEQAIEDPqvboqXW/X05PSmPwaCC IC8LegK8XFSc+IZvVHurGw0cemd8VcQOLRDlfK6OQM/wGfsTfsxWelJRm7KmjeS6 kZJuIfg6AAdEibgQj/dnQ/VhLAxBh8XYnDtkNyniAIwP5iigTXKsAUVNHz/o1vCI MFZ3ToqhtNHw7NkFXwyi6GnPuZOGXABedk1IQsD37iawYgjkPtdKteu6Y96M6L7y hguv4cilbk4N1RrNsIR2cxDYj/BZ+qide+ZVs5EPpbvym1FGTHqu+q911Ux/YURi wZI1ny/63AydWt9SOD3f6SOBBFHF20Nf5jKPQ+0F0zBso42Rw11kXevR93DrUCLV rseud/2odBjtn8w3dQMD/LthqUQQPrtCarx8qfa0yQHhnHKQQ0LDJhKxLzn3VEVg 6AO0tCNMyBrV9P2RH5kNo/ebBk7+d0A2IOqDloRb4k6ySKaJzirJ5LMmIxT0bUeg wGafZpqNJ6zcsXSPt1PLnJhx3wVya8gKF/ByFY65lz84rPV41/v1MN/iVVRltUC7 gZIa3w0MtibrG0A5DTuV31ZQSkmr6i1fwif2asktkZ08r91UO9yb8TXVfUVVBaL4 ZQenkl5thHLWf/0Np5PpTIAaNTRiKZvlJCo9/zCF8An3DeMgRbzNjnDKS02+pm9e h4tXjEX7UL1JDjoMBgJ1 =qd37 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org