Yep, Setting up a virtual.subdomain like images.yoursite.com is the best thing you can do . here is another alterntive though a resource hazard. write a template that recursively crawls your parent images directory ,it's subdirectories and notes the attributes of the files like name size etc in a structure. This template then crawls through the other server doing the same (you can have same template on the other server and crawl request generated by a simple cfhttp request that after the crawling gets back a wddx structure for the files on the other server.). You can now compare these two structures and mark the file/files that need to be synchronized(i.e deleted,or uploaded on whichever server) and then a template(customtag) could be used for this file upload and deletion. I'll recommend scheduling crawling templates so that it's as automatic as you want. But Beware this is going to slow down you server when the task runs as file operations are resource hogs. Do let me know if robocopy supports in web synchronization maybe activated by a com request (<cfobject>). Regards, Amit Talwar -----Original Message----- From: Kevin Bridges [mailto:KBridges@collectamerica.com] Sent: Wednesday, May 09, 2001 12:13 AM To: Fusebox Subject: RE: Automatic File synchronization between clustered servers.
In shared server environments like that typically I have seen people set up a dedicated image machine that is not running cf or anything to bog it down that does nothing but serve images to the other servers. It's a great way to increase performance of the sites serving/processing content as well. If you want to see a working example go to http://shopping.yahoo.com/ and look at where all the images are stored.
Then as need increases more image servers are added to back each other up.
-----Original Message----- From: billking@hostworks.com [mailto:billking@hostworks.com] Sent: Tuesday, May 08, 2001 11:46 AM To: Fusebox Subject: OT: Automatic File synchronization between clustered servers.
I have an issue with a client who has a shared server environment (2 SERVERS RUNNING WIN NT) and due to the set up of the site and affiliate sites the client requires image files on both server boxes.
The problem is that the images that are uploaded often don't copy to both places because of network contention etc...I am performing a cffile to the share from either direction.
I have been looking for something that will do an automatic file compare and copy to maintain uniformity between two directories. Has anyone run into this and found a solution??
Signed,
Bill King HostWorks INC http://www.hostworks.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists