perf: 收敛后端资源与健康检查开销

- 缩小模块扫描范围并显式注册各业务模块自动配置

- 增加可配置线程池、MQ 连接池与消费线程池,降低默认资源占用

- 将 RAG 与分析库中间件探活下沉到健康检查并增加短缓存

- 补齐文档向量库生命周期释放与 SSE 断连清理
This commit is contained in:
2026-05-28 11:22:14 +08:00
parent 72df00f25b
commit 11e595b088
43 changed files with 1343 additions and 288 deletions

View File

@@ -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 {
}

View File

@@ -12,5 +12,8 @@ public interface ChatSyncService {
void maintainMysqlTables();
/**
* 执行启动期必要的 MySQL 表准备。
*/
void startupCheck();
}

View File

@@ -173,9 +173,6 @@ public class ChatSyncServiceImpl implements ChatSyncService {
@Override
public void startupCheck() {
tableManager.ensureCurrentAndNextMonth();
if (analyticalDBRepository.enabled()) {
analyticalDBRepository.selfCheck();
}
}
private void clearExpiredSessions() {