aboutsummaryrefslogtreecommitdiffstats
path: root/servicegateway/deployment/src/main/release/pub/app_define.json
blob: 83f9f9d2756436f6b25716c02727623794496ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
    "fileVersion": "1",
    "name": "ServiceGateway",
    "description": "ServiceGateway",
    "requireDiskSize": 50,
    "rtspSoftLink": true,
    "upgrade": {
        "use": {
            "jre": "~1.3"
        },
        "postInstall": {
            "command": [
                "${APP_ROOT}/init/post_install.sh"
            ],
            "timeout": 300
        },
        "check": {
            "command": [
                "${APP_ROOT}/upgrade/check.sh"
            ],
            "timeout": 30
        },
        "upgrade": {
            "command": [
                "${APP_ROOT}/upgrade/init.sh"
            ],
            "timeout": 300
        }
    },
    "processes": {
        "ServiceGateway": {
            "use": {
                "jre": "~1.3",
                "tomcat": "~9.0"
            },
            "subscribes": [
                {
                    "name": "iamcacheproxy",
                    "srv_ctx": {},
                    "ins_ctx": {}
                },
                {
                    "name": "iamcore",
                    "srv_ctx": {},
                    "ins_ctx": {}
                }
            ],
            "mode": "cluster",
            "cpu": 0.5,
            "memory": 1024,
            "memoryLimit": 4096,
            "patterns": [
               	"!/rest/ServiceGateway/v1",
			"/rest/ServiceGateway_portal/v1"
            ],
            "useAdditionalEnv": [
                "_APP_LOG_DIR",
                "_APP_TMP_DIR",
                "_APP_SHARE_DIR"
            ],
            "protocols": {
                "IR": "http"
            },
            "commands": {
                "start": [
                    "${APP_ROOT}/bin/start.sh"
                ],
                "stop": [
                    "${APP_ROOT}/bin/stop.sh"
                ]
            }
        }
    },
    "databases": {
        "ServiceGatewaydb": {
            "type": [
                "mysql"
            ],
            "serviceName": "ServiceGatewaydb",
            "dataSize": 4096,
            "logSize": 128,
            "sharding": false,
            "defaultShardingNumber": 1
        }
    },
    "redis": {
        "ServiceGatewayrdb": {
            "serviceName": "ServiceGatewayrdb",
            "type": "cache",
            "memory": 1024,
            "dataSize": 1024,
            "sharding": false,
            "defaultShardingNumber": 1,
            "protected": true
        }
    }
}