openfalcon

来源:互联网 发布:漳浦网络花店 编辑:程序博客网 时间:2024/06/08 22:52

由于部署了多套私有云,所以想着法的减少时间,把falcon的包括文件和db数据全部还原,但是最近一次在部署的时候,发现部署完成后,访问速度有点慢,cpu mem也都正常,这是啥原因来。

经过一番仔细调查,发现可能跟过去的endpoint没有清理有关系,查看当前有多少endpoint counter

use graph;select count(*) from endpoint_counter;足足有50441,好吧。

今天是2017-03月,开删除数据

delete from endpoint_counter where t_create like "2017-01%";delete from endpoint_counter where t_create like "2017-02%";delete from endpoint_counter where t_create like "2017-01%";

再看 只有 302条数据,访问起来感觉快了一些。

呵呵。

如果数据库开启慢查询,可能还能优化不少。

0 0
原创粉丝点击