diff --git a/changelog.d/20241204_152125_edunext_better_celery.md b/changelog.d/20241204_152125_edunext_better_celery.md new file mode 100644 index 0000000000..985b5477cd --- /dev/null +++ b/changelog.d/20241204_152125_edunext_better_celery.md @@ -0,0 +1 @@ +[Improvement] Disable celery gossip and mingle to improve celery performance. (by @Ian2012) diff --git a/tutor/plugins/openedx.py b/tutor/plugins/openedx.py index f01288173e..d15d8a10e8 100644 --- a/tutor/plugins/openedx.py +++ b/tutor/plugins/openedx.py @@ -153,6 +153,9 @@ def is_directory_mounted(image_name: str, dirname: str) -> bool: "--hostname=edx.lms.core.default.%h", "--queues=edx.lms.core.default,edx.lms.core.high,edx.lms.core.high_mem", "--max-tasks-per-child=100", + "--prefetch-multiplier=1", + "--without-gossip", + "--without-mingle", ] ) @@ -166,6 +169,9 @@ def is_directory_mounted(image_name: str, dirname: str) -> bool: "--hostname=edx.cms.core.default.%h", "--queues=edx.cms.core.default,edx.cms.core.high,edx.cms.core.low", "--max-tasks-per-child=100", + "--prefetch-multiplier=1", + "--without-gossip", + "--without-mingle", ] )