Skip to content

Commit

Permalink
fix: improve celery performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 22, 2024
1 parent e6bbd25 commit 8db81fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tutor/plugins/openedx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"--without-gossip", # Disable worker communication. All messages should be captured from the broker.
"--without-mingle", # Disable worker synchronization.
"--heartbeat-interval=60", # Reduce the heartbeat interval to 1 min.
]
)

Expand All @@ -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",
"--without-gossip", # Disable worker communication. All messages should be captured from the broker.
"--without-mingle", # Disable worker synchronization.
"--heartbeat-interval=60", # Reduce the heartbeat interval to 1 min.
]
)

Expand Down

0 comments on commit 8db81fa

Please sign in to comment.