Re: Serving static files in a cluster

2010-02-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, On 2/21/2010 9:36 AM, Hassan Schroeder wrote: On Sun, Feb 21, 2010 at 3:23 AM, imrank imran...@gmail.com wrote: Can I use the approach of having all the files sitting on a single NFS file server and have the different tomcat instances

Re: Serving static files in a cluster

2010-02-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/21/2010 10:21 AM, André Warnier wrote: You can certainly do that on the base of symbolic links and NFS mounts for instance. Each Tomcat would contain something like : Just be sure that Tomcat doesn't delete your entire document

Re: Serving static files in a cluster

2010-02-23 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/21/2010 10:21 AM, André Warnier wrote: You can certainly do that on the base of symbolic links and NFS mounts for instance. Each Tomcat would contain something like : Just be sure that Tomcat doesn't delete

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
Imran Khan wrote: Hey, I am using tomcat 5.5.26 on Ubuntu, currently having a clustered configuration, but having the entire cluster on a single box. I have the tomcat instances sitting behind apache. Eventually I'd like to move to cluster on different physical boxes. Part of our application

Re: Serving static files in a cluster

2010-02-21 Thread imrank
. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Serving-static-files-in-a-cluster

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 3:23 AM, imrank imran...@gmail.com wrote: Can I use the approach of having all the files sitting on a single NFS file server and have the different tomcat instances read/write the files to that server's filesystem? I guess theres gonna be some cost in terms of network

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
imrank wrote: Hey, Thanks for ur prompt reply. Unfortunately, the approach you described wouldn't work in our case because our app needs to do some custom authorization logic before a file can be downloaded (sorry should've mentioned that). I dont think I can get httpd to perform this

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
Hassan Schroeder wrote: On Sun, Feb 21, 2010 at 3:23 AM, imrank imran...@gmail.com wrote: Can I use the approach of having all the files sitting on a single NFS file server and have the different tomcat instances read/write the files to that server's filesystem? I guess theres gonna be some

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 7:36 AM, André Warnier a...@ice-sa.com wrote: Not to mention possible inconsistencies between the different copies.. ;-) Imagine you have 4 balanced Tomcats, each of which has its own file repository, and each of which can potentially run the next upload request or

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
Hassan Schroeder wrote: On Sun, Feb 21, 2010 at 7:36 AM, André Warnier a...@ice-sa.com wrote: Not to mention possible inconsistencies between the different copies.. ;-) Imagine you have 4 balanced Tomcats, each of which has its own file repository, and each of which can potentially run the

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 8:54 AM, André Warnier a...@ice-sa.com wrote: it's uploads that add a file to the file system on the Tomcat that processed the request. And that would be the source filesystem to rsync from. Yes, but how often ? In the simplest case, once each time a file is uploaded

Re: Serving static files in a cluster

2010-02-21 Thread imrank
/Serving-static-files-in-a-cluster-tp27672008p27677298.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 3:01 PM, imrank imran...@gmail.com wrote: Hasan, the approach you described is one that I was also considering to keep things consistent across tomcat instances (btw, there is no modifications occurring to existing files). I was considering using an approach whereby

Serving static files in a cluster

2010-02-20 Thread Imran Khan
Hey, I am using tomcat 5.5.26 on Ubuntu, currently having a clustered configuration, but having the entire cluster on a single box. I have the tomcat instances sitting behind apache. Eventually I'd like to move to cluster on different physical boxes. Part of our application involves serving