From f891c0fae83568b698ba14a515319905b1cb7b89 Mon Sep 17 00:00:00 2001 From: Fred Smith Date: Wed, 6 Sep 2017 14:58:34 -0400 Subject: [PATCH] reduce celery heartbeat frequency --- cms/envs/aws.py | 2 +- cms/envs/yaml_config.py | 2 +- lms/envs/aws.py | 2 +- lms/envs/yaml_config.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 6c9e2fd881..83df7db0ad 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -62,7 +62,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' # When the broker is behind an ELB, use a heartbeat to refresh the # connection and to detect if it has been dropped. -BROKER_HEARTBEAT = 10.0 +BROKER_HEARTBEAT = 60.0 BROKER_HEARTBEAT_CHECKRATE = 2 # Each worker should only fetch one message at a time diff --git a/cms/envs/yaml_config.py b/cms/envs/yaml_config.py index e6968d3cbd..f6762689ec 100644 --- a/cms/envs/yaml_config.py +++ b/cms/envs/yaml_config.py @@ -107,7 +107,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' # When the broker is behind an ELB, use a heartbeat to refresh the # connection and to detect if it has been dropped. -BROKER_HEARTBEAT = 10.0 +BROKER_HEARTBEAT = 60.0 BROKER_HEARTBEAT_CHECKRATE = 2 # Each worker should only fetch one message at a time diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 7df6aa07d6..7f2d6e8f79 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -73,7 +73,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' # When the broker is behind an ELB, use a heartbeat to refresh the # connection and to detect if it has been dropped. -BROKER_HEARTBEAT = 10.0 +BROKER_HEARTBEAT = 60.0 BROKER_HEARTBEAT_CHECKRATE = 2 # Each worker should only fetch one message at a time diff --git a/lms/envs/yaml_config.py b/lms/envs/yaml_config.py index 2d816c2f24..f15e43a37c 100644 --- a/lms/envs/yaml_config.py +++ b/lms/envs/yaml_config.py @@ -130,7 +130,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' # When the broker is behind an ELB, use a heartbeat to refresh the # connection and to detect if it has been dropped. -BROKER_HEARTBEAT = 10.0 +BROKER_HEARTBEAT = 60.0 BROKER_HEARTBEAT_CHECKRATE = 2 # Each worker should only fetch one message at a time