GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Admins - How Do I Do This? (https://gfy.com/showthread.php?t=1117927)

EddyTheDog 08-09-2013 02:55 PM

Admins - How Do I Do This?
 
If I have a server on DigitalOcean in NY and I want to expand so I have a server on the West Coast and one in Amsterdam - Which I can do on DigOcean BTW - How do I replicate the site and make sure the surfers go to the correct/closest server?...

For example - EddyTheDog.com is on a NY1 server - I want it in all 3 locations and distributed - Also if one fails then of course it goes to the next.....

I am sure all 3 of my regular surfers will cope if I go down for a few hours - Its more of a learning exercise...

I know I can distribute traffic via SRV - But that's not really good enough.....

So replication is the first issue and traffic management is the second - Where should I look for good basic info?..

To all the idiots who are going to say 'GoogleIsYourFreind' - Don't bother - I have some of the best people in the biz here, I may as well make use of them:upsidedow....

Dankasaur 08-09-2013 02:58 PM

Digital Ocean doesn't currently allow that, to do it, you'd have to have a server take the initial request, figure out the server you have closest to that user, then proxy them to it. Then have your sites mirrored on the other servers.

EddyTheDog 08-09-2013 03:04 PM

Quote:

Originally Posted by Dankasaur (Post 19753493)
Digital Ocean doesn't currently allow that, to do it, you'd have to have a server take the initial request, figure out the server you have closest to that user, then proxy them to it. Then have your sites mirrored on the other servers.

If just one server is taking the original request that seems to defeat the object - If it goes down you are still fucked - Also whats a good way of mirroring the servers...

I can only think that I need a third party, like Cloudflare perhaps?....

sarettah 08-09-2013 03:11 PM

Something like this might do it for you http://www.dnsmadeeasy.com/services/...ffic-director/

I know nothing about it, just found it in google.

Eddy. Remember.

Google Is Your Friend !

;p

.

EddyTheDog 08-09-2013 03:22 PM

Quote:

Originally Posted by sarettah (Post 19753508)
Something like this might do it for you http://www.dnsmadeeasy.com/services/...ffic-director/

I know nothing about it, just found it in google.

Eddy. Remember.

Google Is Your Friend !

;p

.

If I didn't know you would enjoy it I would slap you so hard...

sarettah 08-09-2013 03:22 PM

As far as mirroring the server is concerned: I have not done it myself but I would guess that this could be accomplished by running mirroring software on each of the servers in a round robin fashion.

sarettah 08-09-2013 03:24 PM

I should have said somewhere in there. I am NOT a server admin. I am just a lowly applications developer.

Dankasaur 08-09-2013 03:24 PM

rsync. 8chars.

EddyTheDog 08-09-2013 03:31 PM

Quote:

Originally Posted by Dankasaur (Post 19753528)
rsync. 8chars.

That's given me a starting place - Thanks

freecartoonporn 08-10-2013 01:00 AM

roundrobin / cloudflare ?

Ferus 08-10-2013 01:18 AM

You can use GeoIP to redirect the customer

How to replicate the site, depends on if its static or DB driven content.

The right thing would be to build a cluster, but that would mean you needed to reinstall both sites. It would also give you a complete failover solution in case one server is down

directfiesta 08-10-2013 02:38 AM

Quote:

Originally Posted by Dankasaur (Post 19753528)
rsync. 8chars.

replicatyion = done

ioad balancing = round robbin

as location driven, a geo ip solution should do


ps: get an external dns server, such as zoneedit or other.

eroticsexxx 08-10-2013 09:42 AM

Geo IP redirection, in addition to a Mirrored Cluster is your best bet.

Mr. Stiff 08-10-2013 10:27 AM

Yep, geo-dns and rsync to keep servers in sync..

http://www.dnsmadeeasy.com/services/...ffic-director/
http://www.cyberciti.biz/tips/linux-...rectories.html

If your site is (almost) static, easier to use a CDN (maxcdn, cloudflare, etc)


All times are GMT -7. The time now is 07:16 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123