aboutsummaryrefslogtreecommitdiffstats
path: root/servicegateway/deployment/src/main/release/pub/app_define.json
diff options
context:
space:
mode:
Diffstat (limited to 'servicegateway/deployment/src/main/release/pub/app_define.json')
-rw-r--r--servicegateway/deployment/src/main/release/pub/app_define.json97
1 files changed, 97 insertions, 0 deletions
diff --git a/servicegateway/deployment/src/main/release/pub/app_define.json b/servicegateway/deployment/src/main/release/pub/app_define.json
new file mode 100644
index 00000000..83f9f9d2
--- /dev/null
+++ b/servicegateway/deployment/src/main/release/pub/app_define.json
@@ -0,0 +1,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
+ }
+ }
+}