Relationship between two servers

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Relationship between two servers

Post by josh »

We will have a dedicated server for one of my projects which will house all the content, there will also be a terrabyte or so of "archive" data. What I want to do is to have the archive server pointed to by a subdomain if possible, without having the main server act as a proxy (waste of bandwidth)
Any suggestions as to this?


Now the other problem is the servers will need to communicate on a regular basis, the production server may ask the archive server to email a .zip file to someone for example, I plan to do this through xml but I'm not sure of the best approach. At first I was thinking of a tcp socket running on the archive server, listening for requests and invoking other shell scripts based on that request, but this archive server may or may not have a fixed IP. So the next thing I was looking at was having a persistent connection between the two machines that basically sits there and never times out. This is too messy but is an option. Another would be to have the archive server tell the production server every-time it's IP changes, I know about $_SERVER['SERVER_ADDR'] but it is showing my internal IP and I'm lead to believe it is just reading this out of my httpd.conf anyways. When the project goes live the server will have it's own connection (no internal IPs) but is this something I can rely on? Also would this be updated in real-time or would I have to set up a cron to run a script every 10 minutes to check if the IP changed and report it to the production server if necessary?

Anyways another option that would solve (maybe) both of these is http://www.no-ip.com/index.php


Please give me some advice, this is pretty far down the road so I have a few weeks to consider the options and I really want to go for the best way
Post Reply