docs(deployment): Fix 8 critical deployment issues and enhance documentation
Summary of fixes: - Fix service discovery address (change .sae domain to internal IP) - Unify timezone configuration (Asia/Shanghai for all services) - Enhance ECS security group configuration (Redis/Weaviate port binding) - Add image pull strategy best practices - Add Python service memory management guidelines - Update Dify API Key deployment strategy (avoid deadlock) - Add SSH tunnel for RDS database access - Add NAT gateway cost optimization explanation Modified files (7 docs): - 00-部署架构总览.md (enhanced with 7 sections) - 03-Dify-ECS部署完全指南.md (security hardening) - 04-Python微服务-SAE容器部署指南.md (timezone + service discovery) - 05-Node.js后端-SAE容器部署指南.md (timezone configuration) - PostgreSQL部署策略-摸底报告.md (timezone best practice) - 07-关键配置补充说明.md (3 new sections) - 08-部署检查清单.md (service address fix) New files: - 文档修正报告-20251214.md (comprehensive fix report) - Review documents from technical team Impact: - Fixed 3 P0/P1 critical issues (100% connection failure risk) - Fixed 3 P2 important issues (stability and maintainability) - Added 2 P3 best practices (developer convenience) Status: All deployment documents reviewed and corrected, ready for production deployment
This commit is contained in:
@@ -31,3 +31,4 @@ WHERE table_schema = 'dc_schema'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -69,3 +69,4 @@ ORDER BY ordinal_position;
|
||||
-- ✅ 断点续传字段已添加
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -82,3 +82,4 @@ runMigration()
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -16,3 +16,4 @@ COMMENT ON COLUMN "dc_schema"."dc_tool_c_sessions"."column_mapping" IS '列名
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,3 +43,4 @@ COMMENT ON COLUMN dc_schema.dc_tool_c_sessions.expires_at IS '过期时间(创
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -193,3 +193,4 @@ function extractCodeBlocks(obj, blocks = []) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -212,3 +212,4 @@ checkDCTables();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -164,3 +164,4 @@ createAiHistoryTable()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -151,3 +151,4 @@ createToolCTable()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -148,3 +148,4 @@ createToolCTable()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -280,3 +280,4 @@ export function getBatchItems<T>(
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -314,5 +314,6 @@ runTests().catch((error) => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -255,5 +255,6 @@ runTest()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -293,5 +293,6 @@ Content-Type: application/json
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -372,5 +372,6 @@ export class ExcelExporter {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -230,4 +230,5 @@ export const conflictDetectionService = new ConflictDetectionService();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -258,4 +258,5 @@ export const templateService = new TemplateService();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -389,3 +389,4 @@ async function countCompletedBatches(taskId: string): Promise<number> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -181,3 +181,4 @@ curl -X POST http://localhost:3000/api/v1/dc/tool-c/test/execute \
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -235,3 +235,4 @@ export const streamAIController = new StreamAIController();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -381,3 +381,4 @@ SET session_replication_role = 'origin';
|
||||
**版本:** V1.0
|
||||
**作者:** AI Clinical Research Team
|
||||
|
||||
|
||||
|
||||
@@ -83,3 +83,4 @@ WHERE key = 'verify_test';
|
||||
\echo '✅ 数据库验证完成!'
|
||||
\echo '=========================================='
|
||||
|
||||
|
||||
|
||||
@@ -226,3 +226,4 @@ verifyDatabase()
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
||||
|
||||
1
backend/src/types/global.d.ts
vendored
1
backend/src/types/global.d.ts
vendored
@@ -16,3 +16,4 @@ declare global {
|
||||
export {}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -38,4 +38,5 @@ Write-Host "✅ 完成!" -ForegroundColor Green
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -326,3 +326,4 @@ runAdvancedTests().catch(error => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -392,3 +392,4 @@ runAllTests()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -350,3 +350,4 @@ runAllTests()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user