- Lower concurrency of workers to 1

- Change process type to gevent

Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
Eric Riggs
2018-04-26 02:19:09 -04:00
parent 3145cb4231
commit f3c86ada45

View File

@@ -1,7 +1,7 @@
[program:mayan-worker-fast] [program:mayan-worker-fast]
autorestart = false autorestart = false
autostart = true autostart = true
command = python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q converter -n mayan-worker-fast.%%h command = python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q converter -n mayan-worker-fast.%%h -P gevent --concurrency=1
directory = /usr/local/lib/python2.7/dist-packages/mayan/ directory = /usr/local/lib/python2.7/dist-packages/mayan/
killasgroup = true killasgroup = true
numprocs = 1 numprocs = 1
@@ -17,7 +17,7 @@ user = mayan
[program:mayan-worker-medium] [program:mayan-worker-medium]
autorestart = false autorestart = false
autostart = true autostart = true
command = python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q checkouts_periodic,documents_periodic,indexing,metadata,sources,sources_periodic,uploads,documents -n mayan-worker-medium.%%h command = python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q checkouts_periodic,documents_periodic,indexing,metadata,sources,sources_periodic,uploads,documents -n mayan-worker-medium.%%h -P gevent --concurrency=1
directory = /usr/local/lib/python2.7/dist-packages/mayan/ directory = /usr/local/lib/python2.7/dist-packages/mayan/
killasgroup = true killasgroup = true
numprocs = 1 numprocs = 1
@@ -33,7 +33,7 @@ user = mayan
[program:mayan-worker-slow] [program:mayan-worker-slow]
autorestart = false autorestart = false
autostart = true autostart = true
command = python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q mailing,tools,statistics -n mayan-worker-slow.%%h --concurrency=1 command = python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q mailing,tools,statistics -n mayan-worker-slow.%%h -P gevent --concurrency=1
directory = /usr/local/lib/python2.7/dist-packages/mayan/ directory = /usr/local/lib/python2.7/dist-packages/mayan/
killasgroup = true killasgroup = true
numprocs = 1 numprocs = 1
@@ -49,7 +49,7 @@ user = mayan
[program:mayan-worker-ocr] [program:mayan-worker-ocr]
autorestart = false autorestart = false
autostart = true autostart = true
command = nice -n 19 python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q parsing,ocr -n mayan-worker-slow.%%h --concurrency=1 command = nice -n 19 python /usr/local/lib/python2.7/dist-packages/mayan/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR -Q parsing,ocr -n mayan-worker-slow.%%h -P gevent --concurrency=1
directory = /usr/local/lib/python2.7/dist-packages/mayan/ directory = /usr/local/lib/python2.7/dist-packages/mayan/
killasgroup = true killasgroup = true
numprocs = 1 numprocs = 1