From 88652a4bb40519383bb6abe911472a546c3d9dc9 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Thu, 5 Dec 2024 04:49:46 -0500 Subject: [PATCH] fix: improve celery performance --- changelog.d/20241204_152125_edunext_better_celery.md | 1 + tutor/plugins/openedx.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 changelog.d/20241204_152125_edunext_better_celery.md 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 ba49834bdb..5ed9e0b6df 100644 --- a/tutor/plugins/openedx.py +++ b/tutor/plugins/openedx.py @@ -186,6 +186,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", ] ) @@ -199,6 +202,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", ] )