perf: 收敛后端资源与健康检查开销
- 缩小模块扫描范围并显式注册各业务模块自动配置 - 增加可配置线程池、MQ 连接池与消费线程池,降低默认资源占用 - 将 RAG 与分析库中间件探活下沉到健康检查并增加短缓存 - 补齐文档向量库生命周期释放与 SSE 断连清理
This commit is contained in:
@@ -2,8 +2,10 @@ package tech.easyflow.chatlog.config;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
@AutoConfiguration
|
||||
@MapperScan("tech.easyflow.chatlog.mapper")
|
||||
@ComponentScan("tech.easyflow.chatlog")
|
||||
public class ChatlogModuleConfig {
|
||||
}
|
||||
|
||||
@@ -12,5 +12,8 @@ public interface ChatSyncService {
|
||||
|
||||
void maintainMysqlTables();
|
||||
|
||||
/**
|
||||
* 执行启动期必要的 MySQL 表准备。
|
||||
*/
|
||||
void startupCheck();
|
||||
}
|
||||
|
||||
@@ -173,9 +173,6 @@ public class ChatSyncServiceImpl implements ChatSyncService {
|
||||
@Override
|
||||
public void startupCheck() {
|
||||
tableManager.ensureCurrentAndNextMonth();
|
||||
if (analyticalDBRepository.enabled()) {
|
||||
analyticalDBRepository.selfCheck();
|
||||
}
|
||||
}
|
||||
|
||||
private void clearExpiredSessions() {
|
||||
|
||||
Reference in New Issue
Block a user