![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
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.
__________________
![]() ![]() * Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Icq: 14420613
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,106
|
Quote:
Of course when I say easy - Its easy when you know how..... There is not an easy answer - Its going to cost basically... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Just Doing My Own Thing
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Industry Role:
Join Date: Jul 2013
Posts: 89
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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. . |
![]() |
![]() ![]() ![]() ![]() ![]() |