JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(deploy): 会话管理部署接线(checkpoint/web 库 env 下发 + PVC 守卫)
jiangchenglin33b97917e4e1
diff --git a/deploy/enterprise/gateway_handler.sh b/deploy/enterprise/gateway_handler.shindex 516df6da5f..67de2344cf 100755--- a/deploy/enterprise/gateway_handler.sh+++ b/deploy/enterprise/gateway_handler.sh@@ -141,7 +141,7 @@ deploy_gateway() {exec_cmd kubectl apply -f "${env_yaml_file}"exec_cmd kubectl apply -f "${conf_yaml_file}"- if [[ "${mount_type}" == "pvc" && "${is_external_pvc}" == "false" ]]; then+ if [[ "${mount_type}" == "pvc" && "${is_external_pvc}" == "false" && -f "${pvc_file}" ]]; thenexec_cmd kubectl apply -f "${pvc_file}"fidiff --git a/deploy/enterprise/global_vars.sh b/deploy/enterprise/global_vars.shindex 993f6244cf..19bf801488 100755--- a/deploy/enterprise/global_vars.sh+++ b/deploy/enterprise/global_vars.sh@@ -240,6 +240,7 @@ declare -A DEPLOY_VARS=(["AGENT_SERVER_SERVICE_CONCURRENCY"]="10"["AGENT_SERVER_SESSION_CONCURRENCY"]="10"["AGENT_SERVER_SESSION_TTL"]="60"+ ["GATEWAY_WEB_SESSION_STORAGE"]="remote"["AGENT_SERVER_REACT_MAX_ITER"]="10"["AGENT_SERVER_ENV_CM_NAME"]="jiuwenclaw-agentserver-env"["JIUWENBOX_NAME"]="jiuwenbox"diff --git a/deploy/enterprise/templates/agentserver.template.env b/deploy/enterprise/templates/agentserver.template.envindex abdf9b45f1..1c20325e1e 100644--- a/deploy/enterprise/templates/agentserver.template.env+++ b/deploy/enterprise/templates/agentserver.template.env@@ -17,6 +17,7 @@ GATEWAY_DB_PORT=<<DB_PORT>>GATEWAY_DB_USER=<<GATEWAY_DB_USER>>GATEWAY_DB_NAME=<<GATEWAY_DB_NAME>>GATEWAY_PG_SCHEMA=<<GATEWAY_PG_SCHEMA>>+CHECKPOINT_DB_TYPE=<<DB_TYPE>># 日志diff --git a/deploy/enterprise/templates/gateway.template.env b/deploy/enterprise/templates/gateway.template.envindex 8ed4107ac9..456efbfe06 100644--- a/deploy/enterprise/templates/gateway.template.env+++ b/deploy/enterprise/templates/gateway.template.env@@ -117,6 +117,15 @@ RUNTIME_DB_POOL_SIZE=<<GATEWAY_DB_POOL_SIZE>>RUNTIME_DB_MAX_OVERFLOW=<<GATEWAY_DB_MAX_OVERFLOW>>RUNTIME_DB_POOL_TIMEOUT=<<GATEWAY_DB_POOL_TIMEOUT>>+# Web 会话历史库(企业版 ChatHistoryStore,pg;WEB_DB_PASSWORD 走 secret configmap)+WEB_DB_TYPE=<<DB_TYPE>>+WEB_DB_HOST=<<DB_HOST>>+WEB_DB_PORT=<<DB_PORT>>+WEB_DB_NAME=<<WEB_DB_NAME>>+WEB_PG_SCHEMA=<<WEB_PG_SCHEMA>>+WEB_DB_USER=<<WEB_DB_USER>>+GATEWAY_WEB_SESSION_STORAGE=<<GATEWAY_WEB_SESSION_STORAGE>>+# Manager HTTP config sync (Manager → Gateway push; Gateway → Manager register/heartbeat)GATEWAY_CONFIG_RECEIVER_ENABLED=trueGATEWAY_CONFIG_HTTP_HOST=0.0.0.0