Avoid Celery/RabbitMQ "connection reset" errors [#5609].
This change starts Celery only after RabbitMQ is available. It also returns the unnecessarily low BROKER_HEARTBEAT setting to default of 120.0 to help prevent connections being reset on machines under load.
This commit is contained in:
parent
3d0c2a773b
commit
243354b65e
1
AUTHORS
1
AUTHORS
@ -45,6 +45,7 @@ Thank you!
|
|||||||
* Duncan Paterson
|
* Duncan Paterson
|
||||||
* Elrond of Samba TNG
|
* Elrond of Samba TNG
|
||||||
* Emily O'Leary
|
* Emily O'Leary
|
||||||
|
* Fernando Gutierrez
|
||||||
* Gabi Thume
|
* Gabi Thume
|
||||||
* Gabriel Saldana
|
* Gabriel Saldana
|
||||||
* Greg Grossmeier
|
* Greg Grossmeier
|
||||||
|
@ -528,6 +528,7 @@ environment's setup:
|
|||||||
# Set the WorkingDirectory and Environment values to match your environment.
|
# Set the WorkingDirectory and Environment values to match your environment.
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=MediaGoblin Celeryd
|
Description=MediaGoblin Celeryd
|
||||||
|
After=rabbitmq-server.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=mediagoblin
|
User=mediagoblin
|
||||||
|
@ -81,7 +81,6 @@ def get_celery_settings_dict(app_config, global_config,
|
|||||||
'schedule': datetime.timedelta(minutes=frequency),
|
'schedule': datetime.timedelta(minutes=frequency),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
celery_settings['BROKER_HEARTBEAT'] = 1
|
|
||||||
|
|
||||||
return celery_settings
|
return celery_settings
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user