Re: Balance and sync data

2008-09-19 Thread Martin Spinassi
On Thu, 2008-09-18 at 23:31 +0200, André Warnier wrote: Martin Spinassi wrote: [...] Martin, I re-read the thread from the beginning, and as I understand it you have - clients that upload files, most of then images - clients that download these same images - and you would like a system

Re: Balance and sync data

2008-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz [EMAIL PROTECTED] wrote: Why not have your upload servlet invoke rsync when a new file has been stored? You're not seriously suggesting that as a viable

Re: Balance and sync data

2008-09-18 Thread Hassan Schroeder
On Thu, Sep 18, 2008 at 7:47 AM, Christopher Schultz [EMAIL PROTECTED] wrote: I suppose it depends on the frequency of image uploads. 100 images a day wouldn't be too bad. 100 images per minute would seriously suck. True, I was envisioning a relatively low-frequency operation, for no

Re: Balance and sync data

2008-09-18 Thread Martin Spinassi
On Thu, 2008-09-18 at 08:34 -0700, Hassan Schroeder wrote: On Thu, Sep 18, 2008 at 7:47 AM, Christopher Schultz [EMAIL PROTECTED] wrote: I suppose it depends on the frequency of image uploads. 100 images a day wouldn't be too bad. 100 images per minute would seriously suck. True, I was

Re: Balance and sync data

2008-09-18 Thread Tommy Pham
--- On Wed, 9/17/08, Hassan Schroeder [EMAIL PROTECTED] wrote: From: Hassan Schroeder [EMAIL PROTECTED] Subject: Re: Balance and sync data To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, September 17, 2008, 6:13 PM On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz [EMAIL

Re: Balance and sync data

2008-09-18 Thread André Warnier
Martin Spinassi wrote: [...] Martin, I re-read the thread from the beginning, and as I understand it you have - clients that upload files, most of then images - clients that download these same images - and you would like a system that handles this and duplicates the images to 2 or more

RE: Balance and sync data

2008-09-17 Thread Martin Spinassi
On Tue, 2008-09-16 at 17:59 -0400, Paul McGurn wrote: If you're expecting the size of your image store to grow, or better yet, grow rapidly, you'd be best served to consider a strategy either with mod_proxy/mod_rewrite, or better yet, looking into a CDN (content delivery network) to host

Re: Balance and sync data

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi [EMAIL PROTECTED] wrote: I don't know yet, I didn't try it yet, I was waiting to see if there is a better solution than rsync them every minute. Why not have

Re: Balance and sync data

2008-09-17 Thread Hassan Schroeder
On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz [EMAIL PROTECTED] wrote: Why not have your upload servlet invoke rsync when a new file has been stored? You're not seriously suggesting that as a viable production strategy, are you? [ IM IN UR DURECTRY COPYNG UR IMAGES ] Sure -- why

Re: Balance and sync data

2008-09-16 Thread Hassan Schroeder
On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi [EMAIL PROTECTED] wrote: I don't know yet, I didn't try it yet, I was waiting to see if there is a better solution than rsync them every minute. Why not have your upload servlet invoke rsync when a new file has been stored? -- Hassan Schroeder

Re: Balance and sync data

2008-09-16 Thread Martin Spinassi
On Tue, 2008-09-16 at 07:37 -0700, Hassan Schroeder wrote: On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi [EMAIL PROTECTED] wrote: I don't know yet, I didn't try it yet, I was waiting to see if there is a better solution than rsync them every minute. Why not have your upload servlet

Re: Balance and sync data

2008-09-16 Thread Hassan Schroeder
On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi [EMAIL PROTECTED] 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

Re: Balance and sync data

2008-09-16 Thread Martin Spinassi
On Tue, 2008-09-16 at 08:56 -0700, Hassan Schroeder wrote: On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi [EMAIL PROTECTED] 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?

Re: Balance and sync data

2008-09-16 Thread André Warnier
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 [EMAIL PROTECTED] 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

Re: Balance and sync data

2008-09-16 Thread Martin Spinassi
On Tue, 2008-09-16 at 22:20 +0200, André Warnier wrote: [...] 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

RE: Balance and sync data

2008-09-16 Thread Paul McGurn
/ Paul McGurn -Original Message- From: Martin Spinassi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 5:53 PM To: users@tomcat.apache.org Subject: Re: Balance and sync data On Tue, 2008-09-16 at 22:20 +0200, André Warnier wrote: [...] The question I've been holding back since