ecosystem fixes

This commit is contained in:
Dave Horton
2021-12-04 14:32:08 -05:00
parent 6404891b25
commit 5e394b7f38
4 changed files with 5 additions and 58 deletions
+2
View File
@@ -137,6 +137,8 @@ Resources:
sleep 5
- >
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u admin --hp /home/admin
- >
sudo -u admin bash -c "pm2 save"
- >
sudo systemctl restart heplify-server
- |+
@@ -11,7 +11,6 @@ module.exports = {
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
GOOGLE_APPLICATION_CREDENTIALS: '/home/admin/credentials/$${GOOGLE_APPLICATION_CREDENTIALS}',
+2 -56
View File
@@ -8,7 +8,7 @@ module.exports = {
},
{
name: 'jambonz-smpp-esme',
cwd: '/home/admin/apps/jambonz-webapp',
cwd: '/home/admin/apps/jambonz-smpp-esme',
script: 'app.js',
out_file: '/home/admin/.pm2/logs/jambonz-smpp-esme.log',
err_file: '/home/admin/.pm2/logs/jambonz-smpp-esme.log',
@@ -18,7 +18,7 @@ module.exports = {
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
max_memory_restart: '2G',
env: {
NODE_ENV: 'production',
HTTP_PORT: 3020,
@@ -168,7 +168,6 @@ module.exports = {
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
JAMBONES_LOGLEVEL: 'info',
@@ -206,7 +205,6 @@ module.exports = {
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
JAMBONES_NETWORK_CIDR: 'PRIVATE_IP/32',
@@ -266,7 +264,6 @@ module.exports = {
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
ENABLE_METRICS: 1,
@@ -292,57 +289,6 @@ module.exports = {
JAMBONES_FREESWITCH: '127.0.0.1:8021:JambonzR0ck$',
SMPP_URL: 'http://PRIVATE_IP:3020'
}
},
{
name: 'jambonz-smpp-esme',
cwd: '/home/admin/apps/jambonz-smpp-esme',
script: 'app.js',
out_file: '/home/admin/.pm2/logs/jambonz-smpp-esme.log',
err_file: '/home/admin/.pm2/logs/jambonz-smpp-esme.log',
combine_logs: true,
instance_var: 'INSTANCE_ID',
exec_mode: 'fork',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
JAMBONES_LOGLEVEL: 'info',
HTTP_PORT: 3020,
AVOID_UDH: true,
JAMBONES_MYSQL_HOST: '127.0.0.1',
JAMBONES_MYSQL_USER: 'admin',
JAMBONES_MYSQL_PASSWORD: 'JambonzR0ck$',
JAMBONES_MYSQL_DATABASE: 'jambones',
JAMBONES_MYSQL_CONNECTION_LIMIT: 10,
JAMBONES_REDIS_HOST: '127.0.0.1',
JAMBONES_REDIS_PORT: 6379
}
},
{
name: 'sbc-rtpengine-sidecar',
cwd: '/home/admin/apps/sbc-rtpengine-sidecar',
script: 'app.js',
instance_var: 'INSTANCE_ID',
out_file: '/home/admin/.pm2/logs/jambonz-sbc-rtpengine-sidecar.log',
err_file: '/home/admin/.pm2/logs/jambonz-sbc-rtpengine-sidecar.log',
exec_mode: 'fork',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
LOGLEVEL: 'info',
DTMF_ONLY: true,
RTPENGINE_DTMF_LOG_PORT: 22223,
ENABLE_METRICS: 1,
STATS_HOST: '127.0.0.1',
STATS_PORT: 8125,
STATS_PROTOCOL: 'tcp',
STATS_TELEGRAF: 1
}
}
]
};
+1 -1
View File
@@ -4,7 +4,7 @@
"ssh_username": "admin",
"ami_description": "jambonz monitoring server",
"instance_type": "t2.medium",
"jambonz_version": "v0.6.7-rc7",
"jambonz_version": "v0.6.7-rc8",
"homer_user": "homer_user",
"homer_password": "XcapJTqy11LnsYRtxXGPTYQkAnI",
"install_influxdb": "yes",