Re: Load avg is 65 and cpu is 100% on mysqld
>terrible ratio; you are better turning the QC off. >> You mean I should be turning off -> have_query_cache | YES ?
Yes please turn it off i.e.
SET GLOBAL query_cache_type=0;
(and add a line into mysql options file i.e. /etc/my.cnf)
[mysqld]
...
query_cache_type=0
Drop this index:
>KEY `BillingStatusIndex` (`billingstatus`),
Recreate following index:
>KEY `CircleRandomIndex` (`status`,`billingstatus`,`circle`),
i.e drop KEY `CircleRandomIndex`, add KEY `CircleRandomIndex`(`billingstatus`,`status`,`circle`);
And provide EXPLAIN output for the SELECTs before and after index changes:
EXPLAIN SELECT idsubscription,idkeyword,msisdn,subscribemode,billed,status,circle FROM subscription WHERE status = 'active' AND billingstatus = 'false' \G
>I increased the max_tmp_table_size to 3G. Now the disk tables are not increasing more. So load is a kinda gradual 0.4 as of now.. Still we might expect it to rise again. As mem is fully occupied on 64bit.
Looks like you are using big values for the connection buffers, so provide us SHOW GLOBAL VARIABLES/STATUS\G output for a review
Edited 5 time(s). Last edit at 06/24/2012 10:57AM by Aftab Khan.