On Thu, 08 Jan 2004 16:28:41 +0100, Jens Frank wrote:
On Thu, Jan 08, 2004 at 04:13:46PM +0100, Gabriel Wicke wrote:
I'm still wondering how the images are stored currently- on the hd of a single Server? They don't seem to be in the database.
Single server, not in the database currently.
Once we use a cluster of Apaches the files need to be available to all servers. The easiest solution might be to mount the media dir from a fileserver (with a big Raid array) via nfs.
And to replicate it to a secondary machine using rsync, for backup purpose. Having heartbeat on the squids, could those build an NFS cluster?
In theory-yes. The disadvantage is security- the Squids are the firewall, separate fileservers could be configured to only accept connections from the apaches. Having both the database and the fileservers behind the firewall and behind the Apaches should be much safer.
There are network filesystems like afs that could propably do a better job for immediate replication than nfs, don't know. We should figure this out soon...
Whatever the configuration is- this might be a good application for the current servers. The main server should have raid, but the backup one could most propably do without. These servers won't see a lot of hits- basically one write and one read for each image/file for whatever the squid config's timeout value is. But they should be connected with Heartbeat to provide failover. I'm not shure if there's a good test module for fileservers that can detect the more subtle failures.
Gabriel