Add to Favorites     Most Valuable Member of the Month
Hosting Discussion
 

forgot password?


SPONSORED LINKS

Reply


Old
  Post #1 (permalink)   11-19-2008, 01:08 PM
HD Newbie
 
Join Date: Nov 2008
Location: In front of my PC.
Posts: 35

Status: TheWebMistress is offline
Heyha, I have one account with a hosting company at the moment who have all their databases hosted on seperate machine instead of localhost. Im noticing lags when doing some db admin.
What are your views on db as localhost?
 
 
 


Old
  Post #2 (permalink)   11-19-2008, 02:03 PM
HD Newbie
 
Join Date: Nov 2008
Posts: 9

Status: headbull is offline
Really depends, if not running the mysql on the same server. You should at least have an extremely good connection to the sql server.

And it should also be a good reason for it also, maybe that the site is so demanding that it can not handle both sql and http request at once.

What control panel you got on your hosting ?
__________________
:: Laxhost.com
:: Shared, reseller, vps and dedicated
 
 
 


Old
  Post #3 (permalink)   11-19-2008, 08:35 PM
HD Amateur
 
Join Date: Oct 2008
Posts: 62

Status: hzSari is offline
Mysql cluster server usually handles load and process much effectively than a localhost server. The mysql service configuration at such a server should be well optimized as in accordance with the number of connections, users etc. in the my.cnf file.
__________________
hzSari | HostingZoom.com
ModVPS.com | ResellerZoom.com
Power Speed Reliability
 
 
 


Old
  Post #4 (permalink)   11-20-2008, 07:39 AM
HD Amateur
 
Join Date: Dec 2003
Location: 3inetworks.net
Posts: 83

Status: gate2vn is offline
I always prefer separate database and web servers. Much more better to run all on one server. However, as mentioned above, you will need a good connection between them. We utilize gigabit connections in the same LAN and no complain from customers at all.
__________________
www.gate2vn.net
Managed hosting solutions on multiple intelligent datacenters

DirectAdmin hosting | Helm hosting | Xen-VPS | Managed servers
 
 
 


Old
  Post #5 (permalink)   11-20-2008, 10:12 AM
HD Moderator
 
ldcdc's Avatar
 
Join Date: May 2004
Location: Ploiesti
Posts: 2,660

Status: ldcdc is offline
Indeed, a problem may be the connection between the two servers. But the mysql slowness can just as well be due to the heaviness of the job, or the load already placed on the server by other users.
 
 
 


Old
  Post #6 (permalink)   12-12-2008, 08:34 PM
HD Newbie
 
Join Date: Sep 2008
Posts: 28

Status: Digitallinx is offline
You might want to consider tweaking your my.cnf file as well as optimizing your tables and rewriting your queries for best performance.
 
 
 


Old
  Post #7 (permalink)   12-14-2008, 11:29 AM
HD Community Advisor
 
handsonhosting's Avatar
 
Join Date: Mar 2005
Location: Omaha, NE
Posts: 478

Status: handsonhosting is offline
localhost is great for small databases, but if you are running large databases, or generating a lot of visits to the site, utilizing a second machine is usually a benefit.
__________________
Conor Treacy
http://www.HandsOnWebHosting.com
cPanel Hosting, SSL Certificates, Domain Registration, VPS & Dedicated Servers
Proudly providing hosting to www.HostingDiscussion.com Forums!
 
 
 


Old
  Post #8 (permalink)   12-15-2008, 01:15 PM
HD Addict
 
Join Date: Dec 2008
Location: Florida,Tampa
Posts: 101

Status: HivelocityLB is offline
In my opinion you can't really compare a locally hosted mySQL service and a remotely hosted mySQL service.
Clearly accessing your databases directly from the same disk is going to be faster than accessing your databases from a remotely hosted mySQL service.

__________________
Dedicated Servers - sales@hivelocity.net - 1-888-869-HOST(4678)
Viva Hivelocity "THE SERVER STUD" - Award Winning Hosting
Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support.
 
 
 


Old
  Post #9 (permalink)   12-17-2008, 09:06 AM
HD Newbie
 
Join Date: Dec 2008
Posts: 15

Status: MoEzzi is offline
alternatively you could use both and split the duties. What I mean is that you can replicate the db onto the localhost and use it only for reading purposes. Any writes would happen at your offsite db server and would trickle down to the localhost when it repilcates.

Its not as complicated to set up as you might think and could work well for your needs. Its most often used by voip companies running multiple servers that handle calls.
__________________
EZZI.net - a service of Cinedigm (NASDAQ : CIDM)

A robust network of fail-safe internet data centers.
 
 
 


Old
  Post #10 (permalink)   12-29-2008, 01:17 PM
HD Newbie
 
Join Date: Dec 2008
Posts: 26

Status: webspacedepotcm is offline
It's pretty common for most shared/reseller environments to use locally hosted MySQL, and usually there are no issues. Chances are, if a website has a database so large that it needs to be hosted on a standalone SQL server, it probably isn't suited for a shared Apache server anyway.

It really depends on the configuration and size of the site. However, unless there is a definite NEED for it, I think its much simpler and more efficient to use one server for both web + mysql.
__________________
WebSpaceDepot.com
"Hosting Unleashed"
 
 
 


Old
  Post #11 (permalink)   01-14-2009, 11:15 AM
HD Newbie
 
Join Date: Jan 2009
Posts: 12

Status: Kaumil is offline
Quote:
Originally Posted by TheWebMistress View Post
Heyha, I have one account with a hosting company at the moment who have all their databases hosted on seperate machine instead of localhost. Im noticing lags when doing some db admin.
What are your views on db as localhost?
In my experience, dedicated mysql servers always perform better than it being on a local machine, especially if there is load on the main machine.

Maybe the database server itself is overloaded, although, I find that hard to believe!
__________________
Kaumil P.
www.uptimehost.com
Clustered Cloud Web Hosting
Tel: 1-888-817-2944
 
 
 


Old
  Post #12 (permalink)   01-16-2009, 11:10 PM
HD Master
 
Join Date: Jan 2009
Location: India
Posts: 275

Status: engineerroy2008 is offline
They might be running some big servers with heavy DB usage so they had isolated the DB into a separate server, its a good technical move, if you face some delay in this you can ask them but overall its a good plan
__________________
Server Management & Support to your hosting clients (unlimited tickets and servers) in one monthly fee. **We will harden and monitor your servers + provide direct support to your hosting clients**
 
 
 


Old
  Post #13 (permalink)   01-17-2009, 11:30 PM
HD Newbie
 
Join Date: Jan 2009
Posts: 48

Status: Lagniappe is offline
Quote:
Originally Posted by HivelocityLB View Post
In my opinion you can't really compare a locally hosted mySQL service and a remotely hosted mySQL service.
Clearly accessing your databases directly from the same disk is going to be faster than accessing your databases from a remotely hosted mySQL service.

As a blanket statement, I don't think so. Yes for minor databases, the lack of a network may be faster - provided the machine isn't underpowered and/or overloaded. However it is quite common to move databases to their own server in larger environments. For high transactional volume, the configuration of a web server and a database server will be radically different... In terms of the 'average website' you are probably correct. But for high tx work, probably not. It at least goes against the prevailing dba wisdom anyway.

For reliability and speed, a typical webserver will run RAID10 arrays. Most database servers run RAID5 or even 5+1 (RAID5 mirrored). The more spindles you can throw at a database the better. I admin a db server with 24 spindles - RAID1 boot, RAID10 os/apps, and RAID5+1 data.
__________________
LagniappeInternet.com - wholesale only Reseller and VPS Hosting
Lagniappe: "a word worth travelling to New Orleans to get", Mark Twain, Life on the Mississippi
Proud sponsor of Web Host Boot Camp, the first all-virtual web hosting conference.
 
 
 


Old
  Post #14 (permalink)   01-25-2009, 11:57 PM
HD Newbie
 
Join Date: Jan 2009
Posts: 1

Status: mart is offline
I think it really depends. If you have a big number of simple queries (easily resolvable by table keys) for not so relevant data (daily backup suffices), you might want to avoid the delays caused by network latency and stick with the local db. Security is another issue. If you need security and can't secure the network between host and db, you will start thinking of encrypted links; expensive and slow. And last, another network component is another degree of complexity and potential source of failure.

There will be good reasons to use external db hosts, but it needs thorough thinking. Anyway, I agree absolutely that a good admin must consider the options.
__________________
web tech analysis
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: