Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20550 invoked from network); 16 Sep 2008 20:22:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2008 20:22:29 -0000 Received: (qmail 96398 invoked by uid 500); 16 Sep 2008 20:22:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96366 invoked by uid 500); 16 Sep 2008 20:22:14 -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 96355 invoked by uid 99); 16 Sep 2008 20:22:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 13:22:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.85.38.174] (HELO popeye.combios.es) (212.85.38.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 20:21:15 +0000 Received: from [192.168.245.129] (p549EAC2D.dip0.t-ipconnect.de [84.158.172.45]) (authenticated bits=0) by popeye.combios.es (8.13.8/8.13.8/Debian-3) with ESMTP id m8GKLd1b006310 for ; Tue, 16 Sep 2008 22:21:39 +0200 Message-ID: <48D014F1.6040609@ice-sa.com> Date: Tue, 16 Sep 2008 22:20:01 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Balance and sync data References: <1221569827.2874.17.camel@kr0sty.livra.local> <48CFAE7F.5040409@apache.org> <1221571102.2874.26.camel@kr0sty.livra.local> <48CFB425.5010403@apache.org> <1221572302.2874.40.camel@kr0sty.livra.local> <4eedb92a0809160737p580b62c9ueaa553bf4e6752c0@mail.gmail.com> <1221578271.2874.45.camel@kr0sty.livra.local> <4eedb92a0809160856u4304f095yd0757a946ff86c08@mail.gmail.com> <1221581371.2874.48.camel@kr0sty.livra.local> In-Reply-To: <1221581371.2874.48.camel@kr0sty.livra.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on popeye.combios.es X-Virus-Scanned: ClamAV 0.92.1/8257/Tue Sep 16 10:29:49 2008 on popeye.combios.es X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-97.9 required=2.5 tests=RCVD_IN_PBL, RCVD_IN_SORBS_DUL,USER_IN_WHITELIST autolearn=no version=3.2.3 Martin Spinassi wrote: > On Tue, 2008-09-16 at 08:56 -0700, Hassan Schroeder wrote: >> On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi >> wrote: >> >>>> Why not have your upload servlet invoke rsync when a new file has >>>> been stored? >>> Can you give me some more details or where to get some more info? >> Runtime.exec("/usr/bin/rsync") -- though you may want to instead >> invoke a script file containing the appropriate rsync arguments. >> >> This works fine. I've even used rsync's "dry-run" mode to create a list >> of files that differed between two systems (e.g. staging and production) >> to generate a form page and allow the user to pick which ones to sync. >> >> HTH, > > Thanks Hassan! > > I'll talk to developers to give it a try at our test environment. > > The question I've been holding back since your initial post, is why exactly you do want to load-balance similar requests to 2 Tomcats ? Just an idea : If it is because you have a) "image stuff" and b) "non-image stuff", and they each represent about 50% of the load, then maybe you do not really want to balance (with the problems of sharing and/or duplicating the images), but you could just use a front-end to split the image stuff and send it to Tomcat-1, and the non-image stuff and send it to Tomcat-2. (Apache + mod_rewrite + mod_proxy). This way, only Tomcat-1 would need to handle the images (up and down) and it would always be up-to-date. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org