Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 21, 2010 1:43 am 
Offline
Newbie

Joined: Sun Mar 21, 2010 1:18 am
Posts: 2
Hello,

I host www.phillyfuture.org on Linode. Been very happy with the service.

I was trying to improve mysql's performance a few hours ago by modifying my.cnf to better utilize the memory on my system .

Now, no matter what I do, I get many variants of the following error:

Warning: Incorrect information in file: './phillyfuture/cache.frm' query: UPDATE cache SET data = 'N;', created = 1269149472, expire = 0, headers = '' WHERE cid = 'variables' in /var/www/www.phillyfuture.org/web/includes/database.mysql.inc on line 174

Here is my memory configuration:

http://pastebin.com/9jHwrgm0

The database uses Innodb.

Here is the my.cnf file (the commented out innodb section is what I was trying to change)

http://pastebin.com/a9dbHuCA

As of right now, the site is down with the error indicated above.

Line 174 in database.mysql.inc is

trigger_error(check_plain(mysql_error($active_db) ."\nquery: ". $query), E_USER_WARNING);

I can login to the database and it appears okay.

/proc/version reports:

Linux version 2.6.18.8-linode22 (root@build.linode.com) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP Tue Nov 10 16:12:12 UTC 2009

And MySQL reports its version is

Server version: 5.0.32-Debian_7etch8-log Debian etch distribution

Thank you in advance for any help or direction you can provide.

Karl


Top
   
 Post subject: Update
PostPosted: Sun Mar 21, 2010 2:23 am 
Offline
Newbie

Joined: Sun Mar 21, 2010 1:18 am
Posts: 2
I have the site working again, but performance is still poor and I believe by modifying my.cnf appropriately, I could better use my hosting resources.

The fix, btw, was reverting what I did from this MySQL forum postin on changing innodb_log_file_size:

http://forums.mysql.com/read.php?22,298 ... msg-298782

I had to revert my ib_log files.

If anyone here has any suggestions on appropriate my.cnf settings, please share.

Thanks,

Karl


Top
   
 Post subject:
PostPosted: Sun Apr 04, 2010 10:35 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 7:30 am
Posts: 11
ICQ: 110035931
Website: http://www.olindata.com
AOL: T4HNLWalterH
Location: The world
There are a lot of things you can do to improve performance, but it is near impossible to tell you specifically what to do. It all depends on many factors:

- what storage engines do you use?
- what is your access pattern like?
- what kind of certainty do you need when a crash occurs?
- What is the size of your dataset and the size of your active dataset?
- What other software is running on your system?
etc. etc.

The problem with MySQL tuning is that there are many factors that play a part in it, and it seems to be a matter of change, test, implement (or revert). That said, there are companies who can help you out with that, like Open Query or Percona (disclaimer: i do work for the first one ;) ). You usually give them access to your server and they will change things for you (or with you, dpending on your preference).


Top
   
 Post subject:
PostPosted: Tue Apr 06, 2010 9:35 pm 
Offline
Senior Member

Joined: Mon Feb 28, 2005 7:21 pm
Posts: 76
Have you tried something as simple as the my-medium.cnf configuration?

What's the output of this query?
Code:
show variables like 'innodb%';


Top
   
 Post subject:
PostPosted: Wed Apr 07, 2010 3:23 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 7:30 am
Posts: 11
ICQ: 110035931
Website: http://www.olindata.com
AOL: T4HNLWalterH
Location: The world
The default configurations that come with MySQL are ancient and should not be used. I wish they never existed in teh first place ;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group