Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
would excessive mysql databases slow server?
Old 09-15-2010, 06:48 AM would excessive mysql databases slow server?
Experienced Talker

Posts: 49
Trades: 0
Hi,
I have a lot of mysql databases on my server. A lot of them are rarely accessed and unused.

will these slow the server down or increase load?

the pages that access the databases are rarely accessed.
dimensio is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-15-2010, 08:12 AM Re: would excessive mysql databases slow server?
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
Unless you're talking in excess of 1000 databases, I wouldn't be worried. There are few maintenance tasks that run, and so the number of DBs shouldn't noticeably impact performance. If they store a lot of information, they may impact your file system space, but not read/write performance.

The main factors you'll have to consider in DB performance are indexing, query optimization, conf file tweaking, stored procedure development, and UDFs where necessary to decrease query complexity (e.g. addition of a MEDIAN UDF will greatly improve performance over calculating medians in SQL).

You can install iotop and mytop on your server to gauge your I/O activity and MySQL activity respectively. Both will show the top processes for each. If MySQL is your top I/O process, you'll want to review why (e.g. you may have to tweak your my.conf file). MyTop will show queries that are queued up. Should typicaly be 0-1. If you have dozens or more, you'll see which queries are holding up your queue. Fix those problems by indexing columns and tweaking queries.
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE

Last edited by smoseley; 09-15-2010 at 08:23 AM..
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
Old 09-15-2010, 08:15 AM Re: would excessive mysql databases slow server?
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
I wouldnt worry about the "amount" of DB's however, Query complexity will slow down the pages.

Check you have index's set for larger tables and run an optimize every now and again.

Ive had a database that made a webpage load after a minute or so....
After i ran an optimize it was loading instantly.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 09-15-2010, 09:11 AM Re: would excessive mysql databases slow server?
Experienced Talker

Posts: 49
Trades: 0
wow great advice about optimising databases. But its phpbb, sql size 1.87 gb, so optimizing it is super difficult unless there are ssh/phpmyadmin scripts that will do this automatically

its approximately 70 excess databases - most of them on joomla or wordpress etc
dimensio is offline
Reply With Quote
View Public Profile
 
Old 09-15-2010, 09:15 AM Re: would excessive mysql databases slow server?
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Quote:
Originally Posted by dimensio View Post
wow great advice about optimising databases. But its phpbb, sql size 1.87 gb, so optimizing it is super difficult unless there are ssh/phpmyadmin scripts that will do this automatically

its approximately 70 excess databases - most of them on joomla or wordpress etc
Write a php script to call from the browser to run the optimise command? if you know the root username and password?

Or install phpmyadmin?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 09-15-2010, 10:05 AM Re: would excessive mysql databases slow server?
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
Are the joomla and wordpress sites in use? Any one wordpress or joomla site could blast your database, especially if it has open permissions for registration or comments, and gets a lot of requests from spam bots.

Is this a dedicated server or VPS, or is it a shared server? If the latter, your database may be getting slammed by other applications on other accounts on the machine.

If you have SSH access, try the following from command line to add an index to a table:
Code:
$mysql -u 'yourusername' -p 'yourpassword' yourdatabasename
mysql> ALTER TABLE `tablename` ADD INDEX (`columnname`);
mysql> quit
If you have root access, try this to install and use iotip:
Code:
sudo apt-get install iotop
sudo iotop
Click here to see how to install and use mytop: http://jeremy.zawodny.com/mysql/mytop/
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
Reply     « Reply to would excessive mysql databases slow server?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.95633 seconds with 12 queries