feat: split workbench runtime read service

This commit is contained in:
lyon
2026-06-21 19:42:26 +08:00
parent e23e9522d1
commit cf9ac0b08e
10 changed files with 966 additions and 6 deletions
+28
View File
@@ -308,6 +308,7 @@ lanes:
queryRetryMaxDelayMs: 5000
envReuseServices:
- hwlab-cloud-api
- hwlab-workbench-runtime
- hwlab-user-billing
- hwlab-cloud-web
- hwlab-gateway
@@ -315,6 +316,7 @@ lanes:
- hwlab-agent-skills
bootScripts:
hwlab-cloud-api: deploy/runtime/boot/hwlab-cloud-api.sh
hwlab-workbench-runtime: deploy/runtime/boot/hwlab-workbench-runtime.sh
hwlab-user-billing: deploy/runtime/boot/hwlab-user-billing.sh
hwlab-cloud-web: deploy/runtime/boot/hwlab-cloud-web.sh
hwlab-gateway: deploy/runtime/boot/hwlab-gateway.sh
@@ -367,6 +369,21 @@ lanes:
HWLAB_CODE_AGENT_AGENTRUN_PROJECTION_RESUME_JITTER_MS: "15000"
HWLAB_CODE_AGENT_AGENTRUN_PROJECTION_RESUME_FAILURE_BACKOFF_MS: "120000"
observable: true
hwlab-workbench-runtime:
runtimeKind: go-service
entrypoint: cmd/hwlab-workbench-runtime/main.go
artifactKind: go-service
healthPath: /health/ready
healthPort: 6671
componentPaths:
- go.mod
- go.sum
- cmd/hwlab-workbench-runtime/
- internal/workbenchruntime/
- deploy/runtime/boot/hwlab-workbench-runtime.sh
env:
TZ: Asia/Shanghai
observable: true
hwlab-user-billing:
runtimeKind: go-service
entrypoint: cmd/hwlab-user-billing/main.go
@@ -499,6 +516,8 @@ lanes:
HWLAB_BOOTSTRAP_ADMIN_API_KEY_ID: key_master_server_admin
HWLAB_BOOTSTRAP_ADMIN_API_KEY: secretRef:hwlab-v03-master-server-admin-api-key/api-key
HWLAB_USER_BILLING_URL: http://hwlab-user-billing.hwlab-v03.svc.cluster.local:6670
HWLAB_WORKBENCH_RUNTIME_URL: http://hwlab-workbench-runtime.hwlab-v03.svc.cluster.local:6671
HWLAB_WORKBENCH_RUNTIME_TIMEOUT_MS: "10000"
HWLAB_USER_BILLING_LOGIN_RETRY_ATTEMPTS: "2"
HWLAB_USER_BILLING_LOGIN_RETRY_DELAY_MS: "250"
HWLAB_USER_BILLING_CODE_AGENT_ENABLED: "1"
@@ -522,6 +541,15 @@ lanes:
HWLAB_WORKBENCH_EMPTY_SESSION_GC_BATCH_SIZE: "100"
HWLAB_WORKBENCH_EMPTY_SESSION_GC_JITTER_MS: "15000"
HWLAB_WORKBENCH_EMPTY_SESSION_GC_FAILURE_BACKOFF_MS: "120000"
- serviceId: hwlab-workbench-runtime
env:
HWLAB_WORKBENCH_RUNTIME_DB_URL: secretRef:hwlab-cloud-api-v03-db/database-url
HWLAB_WORKBENCH_RUNTIME_PORT: "6671"
HWLAB_WORKBENCH_RUNTIME_DB_POOL_MAX: "8"
HWLAB_WORKBENCH_RUNTIME_QUERY_TIMEOUT_MS: "10000"
HWLAB_WORKBENCH_RUNTIME_READY_TIMEOUT_MS: "2000"
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector.platform-infra.svc.cluster.local:4318/v1/traces
OTEL_SERVICE_NAME: hwlab-workbench-runtime
- serviceId: hwlab-user-billing
env:
HWLAB_USER_BILLING_DB_URL: secretRef:hwlab-cloud-api-v03-db/database-url