引擎页面卡顿,特别是离线编排页面打开慢,磁盘占用资源大,这类问题如何解决?
一般是因为引擎上线工作已经很多时间,产生了大量的历史数据,导致数据库压力较大。
对于商业版本162及以下版本,需要手工增加索引。
进入对应的引擎库automlxx:
离线pipeline job运行历史表 engine_index_chart_history
CREATE INDEX IDX_ENGINE_INDEX_CHART_HISTORY_STATUS ON engine_index_chart_history(`status`);
CREATE INDEX IDX_ENGINE_JOB_PIPELINE_HISTORY_STATUS ON engine_job_pipeline_history(`status`);
优化engine-manager.sc_instance,automlxx.engine_component_runtime_info等频繁变更的表磁盘碎片。
参考文档:https://blog.csdn.net/qq_46416934/article/details/126113184
定期清理表数据,保留最近3个月即可。
delete from engine_job_pipeline_history where start_time < "删除日期" and status != "running";
delete from engine_index_chart_history where start_time < "删除日期" and status != "running";
delete from engine_notice where create_time < "删除日期";