Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-02-2014, 05:59 PM   #1
lakerslive
Confirmed User
 
Industry Role:
Join Date: Aug 2012
Posts: 929
How Can I have 2 databases hosted on 2 servers

under 1 domain... this will be for community site. Can this be done with php? (i am assuming this is how siteslike youtube/google/xvideos work)

tnx
lakerslive is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 10:16 PM   #2
lonerunner
Confirmed User
 
Industry Role:
Join Date: Nov 2010
Posts: 305
cdn and mirroring, clustering or replication, search on google about that it might help
__________________
Premium wordpress themes VividThemes
lonerunner is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 10:16 PM   #3
Kephael
Confirmed User
 
Industry Role:
Join Date: Mar 2013
Posts: 15
You can use database replication to have the same database hosted on multiple servers locally. Most RDBMS will generally have this sort of functionality.
Kephael is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 10:47 PM   #4
PornDiscounts-V
Confirmed User
 
PornDiscounts-V's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: L.A.
Posts: 5,744
Talk to your host. They probably do this all day long for vps servers.
__________________
Blog Posts - Contextual Links - Hardlinks on 600+ Blog Network
* Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net
PornDiscounts-V is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 10:57 PM   #5
TidalWave
Confirmed User
 
Industry Role:
Join Date: Sep 2007
Location: Los Angeles
Posts: 2,706
You need a semi-complicated setup to keep both DB's fully sync'ed at all times, and also update when one goes down for whatever reason.

Do you want both active at the same time to distribute load, but also be available in case one goes down? (active/active) or do you want one 1 active and 1 for redundancy (active/passive)?

The active/passive method is way easier to implement and manage then trying to keep 2 dynamic DB's update to date in real time with active/active.

It is not easy and won't be cheap or included in some cheap type of hosting -- even if they call it "managed".

You want real sysadmins to do this shit for you, and professionals charge money.
TidalWave is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 11:03 PM   #6
sandman!
Icq: 14420613
 
sandman!'s Avatar
 
Industry Role:
Join Date: Mar 2001
Location: chicago
Posts: 15,432
sure it can be done not super easy to do tho
__________________
Need WebHosting ? Email me for some great deals [email protected]
sandman! is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 11:11 PM   #7
LucyVanAngel
Confirmed User
 
Join Date: Mar 2009
Posts: 305
I need this as well. Who here can do that job? I already talked to my host (nationalnet) they said i need a programmer to split the dbs.
LucyVanAngel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 11:20 PM   #8
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,106
Quote:
Originally Posted by LucyVanAngel View Post
I need this as well. Who here can do that job? I already talked to my host (nationalnet) they said i need a programmer to split the dbs.
It will depend on what and why - If its just a WP install that needs splitting between servers then that's easy - It gets more complicated from there really...

Of course when I say easy - Its easy when you know how.....

There is not an easy answer - Its going to cost basically...

Last edited by EddyTheDog; 04-02-2014 at 11:22 PM..
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2014, 11:28 PM   #9
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,106
Just as an after thought - If you are paying for managed hosting this what you are paying for - Its an upsell for them as well...
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2014, 07:19 AM   #10
dunhill
Confirmed User
 
dunhill's Avatar
 
Industry Role:
Join Date: Jul 2013
Posts: 89
Quote:
Originally Posted by lakerslive View Post
under 1 domain... this will be for community site. Can this be done with php? (i am assuming this is how siteslike youtube/google/xvideos work)

tnx
The only thing you can do from php is a basic roundrobin to choose a database server, but you need a solution to ignore a failed slave. This can be achieved either by creating a file that stores the alive slaves(you can go further by setting a weight for each one based on the slaves server load) or at the DNS level(this will work out of the box on your php script and it's easy to update on my opinion).

It is a lot to talk about the database replication, some people needs it for redundancy, some people needs it to scale up starting from a simple master-slave setup and going to multi master setup when a single master become a bottleneck.

Assuming that you need a simple master-slave setup, if you have a managed plan and they can't do this simple job for you then it's time to drop that host. Period.
dunhill is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2014, 10:21 AM   #11
TidalWave
Confirmed User
 
Industry Role:
Join Date: Sep 2007
Location: Los Angeles
Posts: 2,706
Like I said above, "managed server", doesn't mean something like THIS would be included -- especially if you are not paying enough.

Handling DB replication is a big job. It's almost part of your programmers/DB administrator -- not your server sysadmin.

You need to wear multiple hats to have DB replication active/active.

It's going to cost you money, professionals COST MONEY.

Your $199/month "managed server" IS NOT going to cover that.

I would expect at least another $199/month on top of your server cost for initial setup and on-going management of your DB replication.
You may even have an initial setup fee of $500~ to get everything setup and running smoothly at first -- but do not expect it to continue running smoothly, they break quite easy and often.
You will have more stability with active/passive (one running the main DB, one for backup only) then active/active (both actively serving queries and staying in-sync with each other - because BOTH will be receiving updates at the SAME time, so one can't copy off another).


If you're at this point, the cost should be feasible from a budget perspective. If you're site isn't important enough or making enough money but you "need" all this, perhaps its time to rethink whether your site should even exist.


.

Last edited by TidalWave; 04-03-2014 at 10:25 AM..
TidalWave is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.