Browse Source

set start retries in supervisord to unlimited to avoid broken backend if app-service instance containing the database is later running than the API, in rare cases this can happen though the service instance is started before the API instances

master
Sebastian Rieger 3 years ago
parent
commit
d845403a4c
  1. 6
      faafo/contrib/install-aws.sh
  2. 6
      faafo/contrib/install.sh

6
faafo/contrib/install-aws.sh

@ -165,7 +165,8 @@ if [[ -e /etc/os-release ]]; then
faafo_api=" faafo_api="
[program:faafo_api] [program:faafo_api]
command=$(which faafo-api) command=$(which faafo-api)
priority=10"
priority=10
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
@ -181,7 +182,8 @@ priority=10"
faafo_worker=" faafo_worker="
[program:faafo_worker] [program:faafo_worker]
command=$(which faafo-worker) command=$(which faafo-worker)
priority=20"
priority=20
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf

6
faafo/contrib/install.sh

@ -159,7 +159,8 @@ if [[ -e /etc/os-release ]]; then
faafo_api=" faafo_api="
[program:faafo_api] [program:faafo_api]
command=$(which faafo-api) command=$(which faafo-api)
priority=10"
priority=10
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
@ -175,7 +176,8 @@ priority=10"
faafo_worker=" faafo_worker="
[program:faafo_worker] [program:faafo_worker]
command=$(which faafo-worker) command=$(which faafo-worker)
priority=20"
priority=20
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf

Loading…
Cancel
Save