If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!Hi
I am currently creating a custom image Hosting website and would appreciate your input regarding cross-server file storage. I know these types of sites eat bandwidth and take up lots of storage space, so I was looking at implementing a feature where the site could be run over a few servers instead of just one.
If I decided to go with this option, what would be the easiest way to implement it using php? How would I be able to build it into the admin panel where when a new server is needed, I can just add it into the admin panel and set it up there, and images/files are automatically shared between the servers available so as not to overcrowd any of the servers?
Thanks in advance,
Craig
UK Deal Finder
Make a php script for each additional server that retrieves the memory/cpu/hdd usage. Memory and cpu numbers should be hourly and daily averages. Have the upload script grab each server's stats every couple of minutes. When a user uploads a file have the script find the least bogged down server of the network and upload the file there. You would want to have a php script on each file server to accept files from the main server. I think there is a way to POST files to another server via PHP, but you would have to look into that.
Bookmarks