feat: 实现RCU升级后端服务初始版本

- 添加Kafka消费者组件用于消费升级事件数据
- 实现数据处理器进行数据验证和转换
- 添加数据库写入组件支持批量写入G5数据库
- 配置环境变量管理连接参数
- 添加日志记录和错误处理机制
- 实现优雅关闭和流控功能
This commit is contained in:
2026-03-17 19:23:51 +08:00
parent 23ebc6f059
commit a954db752f
21 changed files with 5919 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
module.exports = {
apps: [{
name: 'bls-upgrade-backend',
script: 'dist/index.js',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env_file: '.env',
env: {
NODE_ENV: 'production',
PORT: 3001
},
error_file: './logs/error.log',
out_file: './logs/out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
kill_timeout: 5000,
time: true
}]
};