"SC.count": "500000",
"SC.max": "250000",
"SC.threadcount": "3",
"SC.host": 'tst-shdu-a03:39201',
"SC.log": 'trace',
"SC.index": 'dcdata',
"SC.type": 'contract',
"CSO.count": "500000",
"CSO.max": "250000",
"CSO.threadcount": "3",
"CSO.host": 'tst-shdu-a03:39201',
"CSO.log": 'trace',
"CSO.index": 'sdmdata',
"CSO.type": 'cso',
"dcconnect": {
"server": "123.127.153.137",
"localAddress": "123.127.153.137",
"port": "1433",
"user": "Dev_Env_DBUser",
"password": "qwert12345",
"database": "Datacenter-Dev",
"pool": { "min": 0, "max": 10, "idleTimeoutMillis": 3000 },
"timeout": 60000
},
"sdmconnect": {
"server": "123.127.153.137",
"localAddress": "123.127.153.137",
"port": "1433",
"user": "Dev_Env_DBUser",
"password": "qwert12345",
"database": "SDM_DEV",
"pool": { "min": 0, "max": 10, "idleTimeoutMillis": 3000 },
"timeout": 60000
}
"apps": [{
"name": "UPT.Server-SCimporter",
"script": "./scimport.js",
"instances": "1",
"exec_mode": "cluster",
"args": ["env.npcf"],
"node_args": "--harmony",
"merge_logs": true,
"cwd": "./",
"max_memory_restart": "2048M",
"log_date_format": "YYYYMMDDHH",
"error_file": "./log/UPT_Server_SC_pm2_err.log",
"env": {
"NODE_ENV": "development",
"AWESOME_SERVICE_API_TOKEN": "xxx"
},
"watch": ["./**/*.js"],
"ignore_watch": [],
"watch_options": { "followSymlinks": false }
}, {
"name": "UPT.Server-CSOimporter",
"script": "./csoimport.js",
"instances": "1",
"exec_mode": "cluster",
"args": ["env.npcf"],
"node_args": "--harmony",
"merge_logs": true,
"cwd": "./",
"max_memory_restart": "2048M",
"log_date_format": "YYYYMMDDHH",
"error_file": "./log/UPT_Server_CSO_pm2_err.log",
"env": {
"NODE_ENV": "development",
"AWESOME_SERVICE_API_TOKEN": "xxx"
},
"watch": ["./**/*.js"],
"ignore_watch": [],
"watch_options": { "followSymlinks": false }
}]
env.npcf 新增
"USC":{"count":100000,"max":5000,"threadcount":30,"host":"ES地址","log":"error","index":"dcdata","type":"contract"},
"UCSO":{"count":100000,"max":5000,"threadcount":30,"host":"ES地址","log":"error","index":"sdmdata","type":"cso"},
"UCSOB":{"count":100000,"max":5000,"threadcount":30,"host":"ES地址","log":"error","index":"sdmbdata","type":"csob"},
processes.json 新增
{
"name": "UPT.Server-SCupdater",
"script": "./scupdate_single.js",
"instances": "1",
"exec_mode": "cluster",
"args": ["env.npcf"],
"node_args": "--harmony",
"merge_logs": true,
"cwd": "./",
"max_memory_restart": "2048M",
"log_date_format": "YYYYMMDDHH",
"error_file": "./log/UPT_update_SC_pm2_err.log",
"out_file": "./log/UPT_update_SC_pm2_out.log",
"env": {
"NODE_ENV": "development",
"AWESOME_SERVICE_API_TOKEN": "xxx"
},
"watch": ["./**/*.js"],
"ignore_watch": [],
"watch_options": { "followSymlinks": false }
}, {
"name": "UPT.Server-CSOupdater",
"script": "./csoupdate_single.js",
"instances": "1",
"exec_mode": "cluster",
"args": ["env.npcf"],
"node_args": "--harmony",
"merge_logs": true,
"cwd": "./",
"max_memory_restart": "2048M",
"log_date_format": "YYYYMMDDHH",
"error_file": "./log/UPT_Update_CSO_pm2_err.log",
"out_file": "./log/UPT_Update_CSO_pm2_out.log",
"env": {
"NODE_ENV": "development",
"AWESOME_SERVICE_API_TOKEN": "xxx"
},
"watch": ["./**/*.js"],
"ignore_watch": [],
"watch_options": { "followSymlinks": false }
}, {
"name": "UPT.Server-CSOBupdater",
"script": "./csobupdate_single.js",
"instances": "1",
"exec_mode": "cluster",
"args": ["env.npcf"],
"node_args": "--harmony",
"merge_logs": true,
"cwd": "./",
"max_memory_restart": "2048M",
"log_date_format": "YYYYMMDDHH",
"error_file": "./log/UPT_Update_CSOB_pm2_err.log",
"out_file": "./log/UPT_Update_CSOB_pm2_out.log",
"env": {
"NODE_ENV": "development",
"AWESOME_SERVICE_API_TOKEN": "xxx"
},
"watch": ["./**/*.js"],
"ignore_watch": [],
"watch_options": { "followSymlinks": false }
}