-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
343e87f
commit 6fea2c7
Showing
2 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
spec_version: 2 | ||
app_version: "{{APP_VERSION}}" | ||
app: | ||
region: default | ||
bk_app_code: "bk_gsekit" | ||
bk_app_name: 进程配置管理 | ||
market: | ||
category: 运维工具 | ||
introduction: 进程配置管理 | ||
display_options: | ||
width: 1300 | ||
height: 720 | ||
is_win_maximize: True | ||
open_mode: "new_tab" | ||
modules: | ||
default: | ||
is_default: True | ||
source_dir: src | ||
language: Python | ||
services: | ||
- name: mysql | ||
- name: redis | ||
- name: rabbitmq | ||
env_variables: | ||
- key: ENGINE_REGION | ||
value: "open" | ||
description: 暂时避开开发框架的问题,新版PaaS该值设置为default | ||
- key: PIP_VERSION | ||
value: "20.2.3" | ||
description: 固化pip版本 | ||
|
||
svc_discovery: | ||
bk_saas: | ||
- bk_app_code: "bk_iam" | ||
- bk_app_code: "bk_gsekit" | ||
|
||
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"' | ||
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 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
beat: | ||
command: celery -A blueapps.core.celery beat -l info | ||
plan: 4C2G5R | ||
replicas: 1 | ||
pwatch: | ||
command: python manage.py watch_process | ||
plan: 4C2G5R | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters