hyapp-deploly/deploy/tencent_tat/hyapp-services.inventory.prod.example.json
2026-07-08 22:33:12 +08:00

315 lines
8.4 KiB
JSON

{
"region": "me-saudi-arabia",
"registry": "10.2.1.3:18082/hyapp",
"tat_timeout_seconds": 900,
"tat_poll_seconds": 2,
"clb_task_timeout_seconds": 180,
"clb_poll_seconds": 2,
"service_health_timeout_seconds": 150,
"stabilize_seconds": 5,
"managed_dependencies": {
"mysql": "TencentDB for MySQL private endpoint; this deployment never starts local MySQL.",
"redis": "TencentDB for Redis private endpoint; room owner route and login/risk cache use this managed Redis.",
"mq": "Tencent Cloud managed MQ; consumers only receive connection/topic config and are not deployed as local infra."
},
"data_resources": {
"mysql": {
"name": "TencentDB MySQL",
"type": "mysql",
"topology": "托管主从 MySQL",
"backup_status": "云产品自动备份,平台不执行恢复动作",
"owner": "后端平台",
"related_services": [
"room-service",
"wallet-service",
"user-service",
"activity-service",
"lucky-gift-service",
"cron-service",
"game-service",
"notice-service",
"admin-server"
]
},
"redis": {
"name": "TencentDB Redis",
"type": "redis",
"topology": "托管 Redis",
"backup_status": "缓存资源不作为恢复事实源",
"owner": "后端平台",
"related_services": [
"gateway-service",
"luck-gateway",
"room-service",
"user-service"
]
},
"mq": {
"name": "Tencent Cloud MQ",
"type": "mq",
"topology": "托管消息队列",
"backup_status": "云产品托管,平台不执行恢复动作",
"owner": "后端平台",
"related_services": [
"room-service",
"activity-service",
"notice-service"
]
}
},
"deploy_server": {
"name": "deploy",
"instance_id": "ins-ntmpcd3a",
"public_ip": "43.164.75.199",
"private_ip": "10.2.1.3",
"role": "control plane only: build/push images and call Tencent TAT/CLB APIs; do not attach to business CLB."
},
"hosts": {
"gateway-1": {
"instance_id": "ins-aeyaoj40",
"private_ip": "10.2.1.8"
},
"gateway-2": {
"instance_id": "ins-irvi5b7u",
"private_ip": "10.2.2.17"
},
"new-app-1": {
"instance_id": "ins-fi5zufpk",
"private_ip": "10.2.1.4"
},
"new-app-2": {
"instance_id": "ins-hwhaoe8c",
"private_ip": "10.2.1.13"
},
"new-game-1": {
"instance_id": "ins-ir229jtw",
"private_ip": "10.2.1.10"
},
"new-game-2": {
"instance_id": "ins-460rw7gu",
"private_ip": "10.2.1.6"
},
"new-app-activity-1": {
"instance_id": "ins-n8wut6n8",
"private_ip": "10.2.1.11"
},
"new-app-activity-2": {
"instance_id": "ins-d1n303sa",
"private_ip": "10.2.1.7"
},
"pay-1": {
"instance_id": "ins-ceqfcxd2",
"private_ip": "10.2.11.14"
},
"pay-2": {
"instance_id": "ins-awhb74q6",
"private_ip": "10.2.12.5"
}
},
"services": {
"gateway-service": {
"unit": "hyapp-gateway-service",
"container": "hyapp-gateway-service",
"env_file": "/etc/hyapp/gateway-service/docker.env",
"image_template": "${REGISTRY}/gateway-service:${TAG}",
"target_port": 13000,
"hosts": [
"gateway-1",
"gateway-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-cbiabr1q",
"listener_ids": [
"lbl-ktvz8m6k"
],
"drain_seconds": 10
}
},
"room-service": {
"unit": "hyapp-room-service",
"container": "hyapp-room-service",
"env_file": "/etc/hyapp/room-service/docker.env",
"image_template": "${REGISTRY}/room-service:${TAG}",
"target_port": 13001,
"hosts": [
"new-app-1",
"new-app-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-d2urlzba"
],
"drain_seconds": 5
}
},
"user-service": {
"unit": "hyapp-user-service",
"container": "hyapp-user-service",
"env_file": "/etc/hyapp/user-service/docker.env",
"image_template": "${REGISTRY}/user-service:${TAG}",
"target_port": 13005,
"hosts": [
"new-app-1",
"new-app-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-honi8z3a"
],
"drain_seconds": 5
}
},
"wallet-service": {
"unit": "hyapp-wallet-service",
"container": "hyapp-wallet-service",
"env_file": "/etc/hyapp/wallet-service/docker.env",
"image_template": "${REGISTRY}/wallet-service:${TAG}",
"target_port": 13004,
"hosts": [
"pay-1",
"pay-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-4f5xi6p0",
"listener_ids": [
"lbl-9wi5mvu4"
],
"drain_seconds": 5
}
},
"activity-service": {
"unit": "hyapp-activity-service",
"container": "hyapp-activity-service",
"env_file": "/etc/hyapp/activity-service/docker.env",
"image_template": "${REGISTRY}/activity-service:${TAG}",
"target_port": 13006,
"hosts": [
"new-app-activity-1",
"new-app-activity-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-j7oqtfhq"
],
"drain_seconds": 5
}
},
"lucky-gift-service": {
"unit": "hyapp-lucky-gift-service",
"container": "hyapp-lucky-gift-service",
"env_file": "/etc/hyapp/lucky-gift-service/docker.env",
"image_template": "${REGISTRY}/lucky-gift-service:${TAG}",
"target_port": 13013,
"hosts": [
"new-app-activity-1",
"new-app-activity-2"
],
"clb": {
"enabled": false,
"drain_seconds": 0
}
},
"luck-gateway": {
"unit": "hyapp-luck-gateway",
"container": "hyapp-luck-gateway",
"env_file": "/etc/hyapp/luck-gateway/docker.env",
"config_required": false,
"image_template": "${REGISTRY}/luck-gateway:${TAG}",
"target_port": 13014,
"hosts": [
"gateway-1",
"gateway-2"
],
"clb": {
"enabled": false,
"drain_seconds": 0
}
},
"notice-service": {
"unit": "hyapp-notice-service",
"container": "hyapp-notice-service",
"env_file": "/etc/hyapp/notice-service/docker.env",
"image_template": "${REGISTRY}/notice-service:${TAG}",
"target_port": 13009,
"hosts": [
"new-app-activity-1",
"new-app-activity-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-aux9xsjq"
],
"drain_seconds": 5
}
},
"game-service": {
"unit": "hyapp-game-service",
"container": "hyapp-game-service",
"env_file": "/etc/hyapp/game-service/docker.env",
"image_template": "${REGISTRY}/game-service:${TAG}",
"target_port": 13008,
"hosts": [
"new-game-1",
"new-game-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-ku138b4y"
],
"drain_seconds": 5
}
},
"robot-service": {
"unit": "hyapp-robot-service",
"container": "hyapp-robot-service",
"env_file": "/etc/hyapp/robot-service/docker.env",
"config_path": "/etc/hyapp/robot-service/config.yaml",
"image_template": "${REGISTRY}/robot-service:${TAG}",
"target_port": 13011,
"hosts": [
"new-app-1",
"new-app-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-pd35q9go"
],
"drain_seconds": 5
}
},
"statistics-service": {
"unit": "hyapp-statistics-service",
"container": "hyapp-statistics-service",
"env_file": "/etc/hyapp/statistics-service/docker.env",
"image_template": "${REGISTRY}/statistics-service:${TAG}",
"target_port": 13010,
"hosts": [
"new-app-1",
"new-app-2"
],
"clb": {
"enabled": true,
"load_balancer_id": "lb-epvnr4o0",
"listener_ids": [
"lbl-a0myhr6q"
],
"drain_seconds": 5
}
}
}
}