feat: add node SSR dual-slot deployment config

This commit is contained in:
2026-08-22 15:41:41 +08:00
parent 1abe8df6ee
commit 83a1f05f1a
3 changed files with 132 additions and 1 deletions
+22
View File
@@ -26,6 +26,17 @@ health_endpoint = "http://127.0.0.1:8080/yms/actuator/health"
unit = "yms-backend@8081.service"
jar = "/home/yms/lib/glory-soft-yms-8081.jar"
health_endpoint = "http://127.0.0.1:8081/yms/actuator/health"
[nodeSsr]
type = "container"
[nodeSsr.slot.18910]
container_name = "node-ssr-18910"
health_endpoint = "http://127.0.0.1:18910/health"
[nodeSsr.slot.28910]
container_name = "node-ssr-28910"
health_endpoint = "http://127.0.0.1:28910/health"
`
// validContainerConfig 一份满足容器后端部署契约的示例 TOML 配置,供各测试用例共享。
@@ -43,6 +54,17 @@ health_endpoint = "http://127.0.0.1:8080/yms/actuator/health"
[backend.slot.8081]
container_name = "backend-8081"
health_endpoint = "http://127.0.0.1:8081/yms/actuator/health"
[nodeSsr]
type = "container"
[nodeSsr.slot.18910]
container_name = "node-ssr-18910"
health_endpoint = "http://127.0.0.1:18910/health"
[nodeSsr.slot.28910]
container_name = "node-ssr-28910"
health_endpoint = "http://127.0.0.1:28910/health"
`
// TestLoadValidNativeConfiguration 验证合法原生配置能被完整加载,