Adds cpu affinity for the workers. Courtesy of the optional psutil module.

This commit is contained in:
Ilan
2015-07-15 19:53:13 +02:00
parent 507ccf7e11
commit 2d0820e80b
6 changed files with 92 additions and 3 deletions
+2 -1
View File
@@ -102,4 +102,5 @@ LOGGING = {
STATIC_URL = '/static/'
# Django Q specific
Q_CLUSTER = {'name': 'django_q_test'}
Q_CLUSTER = {'name': 'django_q_test',
'cpu_affinity': 1}