Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

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!

Results 1 to 2 of 2
  1. #1
    Wistow.net
    wistow's Avatar
    Join Date
    Jun 2004
    Location
    Barnsley, UK
    Posts
    909
    Country

    UK
    DNF$
    1,784
    Bank
    0
    Total DNF$
    1,784
    Donate  

    Automatic Cross-Server File Storage

    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

  2. #2
    DNF Member
    kodeking's Avatar
    Join Date
    May 2004
    Posts
    318
    DNF$
    605
    Bank
    0
    Total DNF$
    605
    Donate  

    Re: Automatic Cross-Server File Storage

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com