{ "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 } } }