-
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
26dc66b
commit 8e4aad6
Showing
30 changed files
with
700 additions
and
114 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
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,131 @@ | ||
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版本 | ||
- key: STORAGE_TYPE | ||
value: "BLUEKING_ARTIFACTORY" | ||
description: 存储类型 | ||
- key: BKAPP_RUN_ENV | ||
value: "ce" | ||
description: 运行环境,app_desc 暂时只在社区版使用,为了简化部署在此声明配置 | ||
- key: GSE_ENABLE_SVR_DISCOVERY | ||
value: "True" | ||
description: 是否启用 gse svr 服务发现,启用后,默认接入点会通过zk的方式,自动更新gse svr信息 | ||
|
||
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 :$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 | ||
|
||
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部署 | ||
- key: STORAGE_TYPE | ||
value: "BLUEKING_ARTIFACTORY" | ||
description: 存储类型 | ||
- key: BKAPP_RUN_ENV | ||
value: "ce" | ||
description: 运行环境,app_desc 暂时只在社区版使用,为了简化部署在此声明配置 | ||
- key: GSE_ENABLE_SVR_DISCOVERY | ||
value: "True" | ||
description: 是否启用 gse svr 服务发现,启用后,默认接入点会通过zk的方式,自动更新gse svr信息 | ||
|
||
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 8 -b :$PORT -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 | ||
dworker: | ||
command: celery -A apps.backend worker -Q default --autoscale=8,2 --maxtasksperchild=50 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
bworker: | ||
command: celery -A apps.backend worker -Q backend --autoscale=16,2 --maxtasksperchild=50 -O fair --time-limit=1800 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
baworker: | ||
command: celery -A apps.backend worker -Q backend_additional_task -c 10 -O fair --time-limit=1800 --maxtasksperchild=50 | ||
plan: 4C2G5R | ||
replicas: 5 | ||
pworker: | ||
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 | ||
psworker: | ||
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 | ||
paworker: | ||
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
Oops, something went wrong.