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:
2025-12-14 13:25:28 +08:00
parent fa72beea6c
commit 19f9c5ea93
114 changed files with 12994 additions and 33 deletions

View File

@@ -31,3 +31,4 @@ WHERE table_schema = 'dc_schema'

View File

@@ -69,3 +69,4 @@ ORDER BY ordinal_position;
-- ✅ 断点续传字段已添加

View File

@@ -82,3 +82,4 @@ runMigration()
process.exit(1);
});

View File

@@ -16,3 +16,4 @@ COMMENT ON COLUMN "dc_schema"."dc_tool_c_sessions"."column_mapping" IS '列名

View File

@@ -43,3 +43,4 @@ COMMENT ON COLUMN dc_schema.dc_tool_c_sessions.expires_at IS '过期时间(创

View File

@@ -193,3 +193,4 @@ function extractCodeBlocks(obj, blocks = []) {

View File

@@ -212,3 +212,4 @@ checkDCTables();

View File

@@ -164,3 +164,4 @@ createAiHistoryTable()

View File

@@ -151,3 +151,4 @@ createToolCTable()

View File

@@ -148,3 +148,4 @@ createToolCTable()

View File

@@ -280,3 +280,4 @@ export function getBatchItems<T>(
}

View File

@@ -314,5 +314,6 @@ runTests().catch((error) => {

View File

@@ -293,5 +293,6 @@ Content-Type: application/json

View File

@@ -372,5 +372,6 @@ export class ExcelExporter {

View File

@@ -230,4 +230,5 @@ export const conflictDetectionService = new ConflictDetectionService();

View File

@@ -258,4 +258,5 @@ export const templateService = new TemplateService();

View File

@@ -389,3 +389,4 @@ async function countCompletedBatches(taskId: string): Promise<number> {
}
}

View File

@@ -181,3 +181,4 @@ curl -X POST http://localhost:3000/api/v1/dc/tool-c/test/execute \

View File

@@ -235,3 +235,4 @@ export const streamAIController = new StreamAIController();

View File

@@ -381,3 +381,4 @@ SET session_replication_role = 'origin';
**版本:** V1.0
**作者:** AI Clinical Research Team

View File

@@ -83,3 +83,4 @@ WHERE key = 'verify_test';
\echo '✅ 数据库验证完成!'
\echo '=========================================='

View File

@@ -226,3 +226,4 @@ verifyDatabase()
process.exit(1);
});

View File

@@ -16,3 +16,4 @@ declare global {
export {}

View File

@@ -38,4 +38,5 @@ Write-Host "✅ 完成!" -ForegroundColor Green

View File

@@ -326,3 +326,4 @@ runAdvancedTests().catch(error => {

View File

@@ -392,3 +392,4 @@ runAllTests()

View File

@@ -350,3 +350,4 @@ runAllTests()