Wait 60 seconds before scaling down a worker

This commit is contained in:
Alan Rominger
2022-07-27 16:54:03 -04:00
parent 85a5b58d18
commit a9170236e1
2 changed files with 20 additions and 3 deletions

View File

@@ -438,6 +438,10 @@ EXECUTION_NODE_REMEDIATION_CHECKS = 60 * 30 # once every 30 minutes check if an
# Amount of time dispatcher will try to reconnect to database for jobs and consuming new work
DISPATCHER_DB_DOWNTOWN_TOLLERANCE = 40
# Minimum time to wait after last job finished before scaling down a worker
# A higher value will free up memory more agressively, but a lower value will require less forking
DISPATCHER_SCALE_DOWN_WAIT_TIME = 60
BROKER_URL = 'unix:///var/run/redis/redis.sock'
CELERYBEAT_SCHEDULE = {
'tower_scheduler': {'task': 'awx.main.tasks.system.awx_periodic_scheduler', 'schedule': timedelta(seconds=30), 'options': {'expires': 20}},