Skip to content

Commit

Permalink
feature: PaaS 部署适配(#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Sep 30, 2021
1 parent 80160c4 commit a106148
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions app_desc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,23 @@ modules:

processes:
web:
command: gunicorn --timeout 600 --max-requests 100 --max-requests-jitter 10 wsgi -w 8 -b :5000 --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s "%(r)s" %(s)s %(D)s %(b)s "%(f)s" "%(a)s"'
command: gunicorn --timeout 600 --max-requests 200 --max-requests-jitter 20 wsgi -w 8 -b :$PORT --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s "%(r)s" %(s)s %(D)s %(b)s "%(f)s" "%(a)s"'
plan: 4C2G5R
replicas: 5
dworker:
command: celery -A blueapps.core.celery worker -Q default -n default@%h -c 5 -l info --maxtasksperchild=50
plan: 4C2G5R
replicas: 5
pworker:
command: celery -A blueapps.core.celery worker -Q pipeline,pipeline_priority -n pipeline_worker@%h -c 5 -l info --maxtasksperchild=50
plan: 4C2G5R
replicas: 5
sworker:
command: celery -A blueapps.core.celery worker -A blueapps.core.celery -Q service_schedule,service_schedule_priority -c 5 -l info -n schedule_worker@%h --maxtasksperchild=50
plan: 4C2G5R
replicas: 5
cworker:
command: celery -A blueapps.core.celery worker -Q pipeline_additional_task,pipeline_additional_task_priority -n common_worker@%h -c 5 -l info --maxtasksperchild=50
plan: 4C2G5R
replicas: 5
erworker:
command: celery -A blueapps.core.celery worker -Q er_execute,er_schedule -n ri_worker@%h -l info -c 10 -l info --maxtasksperchild=50
ereworker:
command: celery -A blueapps.core.celery worker -Q er_execute -n ri_worker@%h -l info -c 10 -l info --maxtasksperchild=100
plan: 4C2G5R
replicas: 5
ersworker:
command: celery -A blueapps.core.celery worker -Q er_schedule -n ri_worker@%h -l info -c 10 -l info --maxtasksperchild=200
plan: 4C2G5R
replicas: 5
beat:
Expand Down

0 comments on commit a106148

Please sign in to comment.