mysql indexes optimization

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
gde
Posts: 13
Joined: Tue Oct 12, 2010 7:19 am

mysql indexes optimization

Post by gde »

Hello,

I've found this bug report by reading different posts on optimizing cacti. Since it was marked as solved for cacti 0.8.8 I thought it wasn't a bad idea to implement it on one of the cactis I manage. After building them, I launched mysqltuner.pl. To my surprise, I get a warning joins are done without indexes:
[!!] Joins performed without indexes: 168525
I don't get this message on other cactis. I haven't read anything related to this issue. Have I been missing something ?

regards,
gde
Last edited by gde on Wed Jan 12, 2011 9:55 am, edited 1 time in total.
|Cacti Version - 0.8.7g||Plugin Architecture - 2.8||Poller Type - Spine|
|os - Debian 5.0.6 | |Web Server - Apache/2.2.11 )|
|PHP - 5.2.6| |MySQL - 5.0.67| |RRDTool - 1.3.1|
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: mysql indexes optimization

Post by gandalf »

Did you run this on 088 code?
R.
gde
Posts: 13
Joined: Tue Oct 12, 2010 7:19 am

Re: mysql indexes optimization

Post by gde »

no, I did it on 087g code

gde
|Cacti Version - 0.8.7g||Plugin Architecture - 2.8||Poller Type - Spine|
|os - Debian 5.0.6 | |Web Server - Apache/2.2.11 )|
|PHP - 5.2.6| |MySQL - 5.0.67| |RRDTool - 1.3.1|
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: mysql indexes optimization

Post by gandalf »

But why do you assume that the fixes made for 088 on using indexes should appear in 087 already?
If this is of importance, you may study the existing 088 upgrade file for additionally created indexes. You may create them on your current cacti. Please pay attention: every occurrence of "host" was changed to "device"
R.
gde
Posts: 13
Joined: Tue Oct 12, 2010 7:19 am

Re: mysql indexes optimization

Post by gde »

Actually, the reason why I applied it was because it was advised here : http://forums.cacti.net/about29707.html.
It's not much of importance really, I'm just trying to find any optimizing leverage I can use.
I'll look into the 088 upgrade file…

thanks
|Cacti Version - 0.8.7g||Plugin Architecture - 2.8||Poller Type - Spine|
|os - Debian 5.0.6 | |Web Server - Apache/2.2.11 )|
|PHP - 5.2.6| |MySQL - 5.0.67| |RRDTool - 1.3.1|
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Re: mysql indexes optimization

Post by Deviloper »

Think about horizontal split of tables to in proof io performance.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: mysql indexes optimization

Post by gandalf »

Deviloper wrote:Think about horizontal split of tables to in proof io performance.
Valid. Others are running the db in memory ...
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest