-
Notifications
You must be signed in to change notification settings - Fork 57
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
8fa56f5
commit 90b6736
Showing
18 changed files
with
447 additions
and
97 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,113 @@ | ||
spec_version: 2 | ||
app_version: "{{APP_VERSION}}" | ||
app: | ||
region: default | ||
bk_app_code: "bk_nodeman" | ||
bk_app_name: "节点管理" | ||
market: | ||
category: 运维工具 | ||
introduction: 通过节点管理,可以对蓝鲸体系中的gse agent进行管理,包括状态查询、版本更新、配置管理、健康检查、进程管理等。 | ||
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: bkrepo | ||
env_variables: | ||
- key: BKAPP_IS_V3_CONTAINER | ||
value: "True" | ||
description: 是否运行在V3容器版本 | ||
- key: PIP_VERSION | ||
value: "20.2.3" | ||
description: 固化pip版本 | ||
|
||
svc_discovery: | ||
bk_saas: | ||
- bk_app_code: "bk_iam" | ||
- bk_app_code: "bk_nodeman" | ||
module_name: "backend" | ||
- bk_app_code: "bk_nodeman" | ||
module_name: "default" | ||
processes: | ||
web: | ||
command: gunicorn wsgi -w 4 -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 | ||
|
||
backend: | ||
is_default: False | ||
source_dir: src | ||
language: Python | ||
services: | ||
- name: rabbitmq | ||
- name: redis | ||
- name: bkrepo | ||
shared_from: default | ||
- name: mysql | ||
shared_from: default | ||
env_variables: | ||
- key: BKAPP_IS_V3_CONTAINER | ||
value: "True" | ||
description: 是否运行在V3容器版本 | ||
- key: REDIS_MODE | ||
value: "standalone" | ||
description: 后台配置的Redis模式 | ||
- key: BACKEND_CONFIG | ||
value: "True" | ||
description: 是否启用后台配置,用于同一份代码区分SaaS和后台的差异化配置 | ||
- key: PIP_VERSION | ||
value: "20.2.3" | ||
description: 固化pip版本 | ||
- key: BKAPP_IS_PAAS_DEPLOY | ||
value: "True" | ||
description: 是否基于PaaS部署 | ||
|
||
svc_discovery: | ||
bk_saas: | ||
- bk_app_code: "bk_iam" | ||
- bk_app_code: "bk_nodeman" | ||
module_name: "backend" | ||
- bk_app_code: "bk_nodeman" | ||
module_name: "default" | ||
|
||
|
||
processes: | ||
backend-web: | ||
command: gunicorn --timeout 300 -w 4 -b :5000 -k gevent wsgi:application --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 | ||
celery-beat: | ||
command: celery -A apps.backend beat -l info | ||
plan: 4C2G5R | ||
replicas: 1 | ||
worker-d: | ||
command: celery -A apps.backend worker -Q default --autoscale=8,2 --maxtasksperchild=50 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
worker-b: | ||
command: celery -A apps.backend worker -Q backend --autoscale=16,2 --maxtasksperchild=50 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
worker-b-a: | ||
command: celery -A apps.backend worker -Q backend_additional_task --autoscale=16,2 --maxtasksperchild=50 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
worker-p: | ||
command: celery -A apps.backend worker -Q pipeline,pipeline_priority -n pipeline_worker@%h --maxtasksperchild=50 --autoscale=16,2 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
worker-p-s: | ||
command: celery -A apps.backend worker -Q service_schedule,service_schedule_priority -n schedule_worker@%h --maxtasksperchild=50 -c 50 -P eventlet -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
worker-p-a: | ||
command: celery -A apps.backend worker -Q pipeline_additional_task,pipeline_additional_task_priority -n common_worker@%h -l info --autoscale=16,2 --maxtasksperchild=50 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.