Commit f891c0fa by Fred Smith

reduce celery heartbeat frequency

parent d342a562
...@@ -62,7 +62,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' ...@@ -62,7 +62,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
# When the broker is behind an ELB, use a heartbeat to refresh the # When the broker is behind an ELB, use a heartbeat to refresh the
# connection and to detect if it has been dropped. # connection and to detect if it has been dropped.
BROKER_HEARTBEAT = 10.0 BROKER_HEARTBEAT = 60.0
BROKER_HEARTBEAT_CHECKRATE = 2 BROKER_HEARTBEAT_CHECKRATE = 2
# Each worker should only fetch one message at a time # Each worker should only fetch one message at a time
......
...@@ -107,7 +107,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' ...@@ -107,7 +107,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
# When the broker is behind an ELB, use a heartbeat to refresh the # When the broker is behind an ELB, use a heartbeat to refresh the
# connection and to detect if it has been dropped. # connection and to detect if it has been dropped.
BROKER_HEARTBEAT = 10.0 BROKER_HEARTBEAT = 60.0
BROKER_HEARTBEAT_CHECKRATE = 2 BROKER_HEARTBEAT_CHECKRATE = 2
# Each worker should only fetch one message at a time # Each worker should only fetch one message at a time
......
...@@ -73,7 +73,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' ...@@ -73,7 +73,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
# When the broker is behind an ELB, use a heartbeat to refresh the # When the broker is behind an ELB, use a heartbeat to refresh the
# connection and to detect if it has been dropped. # connection and to detect if it has been dropped.
BROKER_HEARTBEAT = 10.0 BROKER_HEARTBEAT = 60.0
BROKER_HEARTBEAT_CHECKRATE = 2 BROKER_HEARTBEAT_CHECKRATE = 2
# Each worker should only fetch one message at a time # Each worker should only fetch one message at a time
......
...@@ -130,7 +130,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend' ...@@ -130,7 +130,7 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
# When the broker is behind an ELB, use a heartbeat to refresh the # When the broker is behind an ELB, use a heartbeat to refresh the
# connection and to detect if it has been dropped. # connection and to detect if it has been dropped.
BROKER_HEARTBEAT = 10.0 BROKER_HEARTBEAT = 60.0
BROKER_HEARTBEAT_CHECKRATE = 2 BROKER_HEARTBEAT_CHECKRATE = 2
# Each worker should only fetch one message at a time # Each worker should only fetch one message at a time
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment