last day (15 days later) » 

14:40
Hey @ypercube, what's up?
Hi
I have a new gig with a site and MySQL seems to be loaded
and the site is quite slow.
I suspect one reason is fragmentation
InnoDB or MyISAM...and which Version?
5.1
both MyISAM and InnoDB are used.
Server has 64GB
Actually 2 servers.
They told me it's a cluster
And I can't say I'm a cluster expert ;)
Here's a decent article on how to find out if tables are fragmented: palominodb.com/blog/2010/10/25/how-i-find-mysql-fragmentation
Fixing it will require table locks, so use carefully...why do you suspect the slowdown is fragmentation?
thnx, I've already got a list of file sizes. I'll run the script to get data from information schema
They have 2 tables (one is InnoDB) the other MyISAM.
The first is rather small but they are doing a lot of INSERTs
and deleting 24 hours aged data.
Haven't yet looked at the procedures that do the deletions.
14:55
any idea approx. how many inserts per day?
The other table (myisam) is updated every 6 hours with a procedure (lets say its name is X:
Applications use X1
Insert new data into X2
Send applications to use X2
Delete all from X1
Copy all from x2 to X1
Most Inserts happen at these four times of the day.
The rest of the time, it's 99% Reads
generally I wouldn't assume a slowdown is fragmentation (unless the tables have never been defragmented, which is possible)
if it turns out not to be, your next step would probably be to do an analysis of the slow query log and running it through pt-query-digest after a couple days worth of logs
Yeah, I intend to do that. They have a JetProfiler setup now, which I haven't used before. I usually like analysing the slow log.
15:11
interesting...never seen JetProfiler before either
that could be interesting
low level analysis is more fun though
It shows several (i suppose it's real time) slow queries
and locking
Do you have any webpage recommendation for reading about clusters?
do you know if it's MySQL cluster or percona xtradb cluster? I'm assuming the latter, because MySQL cluster users NDBCLUSTER engine (it's not myisam or innodb).
I've also not really worked with either one, so wouldn't know how to direct you here
I see "version 5.1.61-log" in the variables list
what about the output of '\s' (command line shortcut)
15:30
when connected through command line to mysql?
I'm through workbnch now.
ahh
i don't know if there's an equivalent view in workbench...\s basically gives an overview of the server (version, uptime, queries-per-second)
it shows 5.1.61-log
so it's probably not a cluster
And they meant something else. I'll ask.
do you know if it's running innodb plugin or the built-in innodb?
15:49
No plugin.
I opened the my.cnf and I see nothing about it.
i would see if they're open to at least using the plugin...there are a few performance benefits to using it over builtin innodb in 5.1
even more performance benefit in using 5.5, but I know upgrades can be a slow/painful process and is a last resort, imo
yes. thnx for the advice.
Well, my plan is to setup the slow log and analyze it first. In the meantime, I could increase the key and innodb buffer sizes. With 64GB or RAM, having 27 unused seems a waste.
I suppose there is no harm in raising them.
Upgrading will be a suggestion for later. And moving from VPS to a real server.
sounds like a good plan!
Any way/script to check how the VPS is affecting performance?
Maybe I should ask Roland, too. He seems to be still at the Heap
not that I know of
16:04
Ok. Thnx for the chat!
yup, good luck

last day (15 days later) »