bitflicker64 commented on code in PR #574:
URL: https://github.com/apache/hugegraph-doc/pull/574#discussion_r4592052855
##########
content/en/docs/quickstart/hugegraph/hugegraph-helm-operations.md:
##########
@@ -116,13 +152,49 @@ also covers password-update payloads. Keep credential
files out of logs and vers
The default `preferred` anti-affinity permits scheduling with fewer nodes than
replicas. `values-cluster.yaml` sets required PD/Store anti-affinity,
so it needs at least three schedulable nodes. Explicit affinity takes priority
over presets.
Local PV node affinity must match the workload's placement constraints; PV
capacity declarations do not enforce filesystem quotas.
+
Do not change a persisted PD/Store Raft hostname or port as an ordinary
upgrade: those addresses are recorded identities.
+### Keep initialization history separate from live membership
{#stable-bootstrap-topology}
+
+The chart records initial PD peers, Store allowlist count and startup Store
threshold in an immutable, retained
+`<fullname>-bootstrap` ConfigMap. The Helm caller needs namespace
ConfigMap-read and PVC-list permissions.
+There is no `bootstrap.enabled` switch.
+
+Keep this record through upgrades, rollbacks and manual node changes;
+it is initialization history, not the current PD voting set or the set of all
admitted Stores.
+
+| Value | Fresh installation | Initialized installation |
+|---|---|---|
+| `bootstrap.pdReplicas` | Empty uses requested PD replicas | Retain recorded
initial count |
+| `bootstrap.storeReplicas` | Empty uses requested Store replicas | Retain
recorded initial allowlist count |
+| `bootstrap.initialStoreCount` | Empty uses requested Store replicas | Retain
recorded startup threshold |
+| `pd.partition.defaultShardCount` | Explicit odd RF, or RF=1 below 3 initial
Stores / RF=3 otherwise | PD-persisted replica policy remains authoritative |
+{.wide .expand}
+
+For example, growing one Store to three does not convert persisted RF=1 to
RF=3. Five PD replicas require a PDB that preserves
+three available voters (`pd.pdb.minAvailable=3`); the default two is
insufficient. Use PD images implementing separate bootstrap admission
+and runtime voting-quorum checks, and verify the capability of the selected
image rather than inferring it from `latest`.
+
+An older test installation without a record can be adopted only with
unchanged, verified topology, RF, names, ports,
+PVC bindings and Raft identities. Run the read-only
`helm/check_bootstrap_adoption.py` from the matching Server source against PD
and every Store,
+retain its before report, then upgrade with reviewed values and compare with
`--before` afterward.
+
+Follow the
+[complete adoption
procedure](https://github.com/apache/hugegraph/blob/master/helm/hugegraph/docs/operations.md#adopting-same-topology-test-data);
+it includes graph read/write checks. Do not delete a conflicting record or
infer original membership from current replica counts.
+
+Offline upgrades cannot discover retained history: use `helm template
--is-upgrade` and explicitly pin all three recorded bootstrap counts.
+Offline rendering cannot establish that existing PVCs are safe to reuse.
Remove a legacy `bootstrap.enabled` value through reviewed
+`--reset-values -f reviewed-values.yaml`; carrying it forward with
`--reuse-values` is rejected.
+
## 4 Partition sharding
-At first bootstrap, the chart seeds three shard replicas when there are at
least three Stores, and one otherwise.
+At first bootstrap, the chart seeds three shard replicas when the recorded
initial Store count is at least three, and one otherwise.
Review Comment:
Minor: "the recorded initial Store count" reads as
`bootstrap.initialStoreCount`, but `hugegraph.pd.javaOpts` derives RF from
`bootstrap.storeReplicas`, so `store.replicas=3` with
`bootstrap.initialStoreCount=1` renders `-Dpartition.default-shard-count=3`.
Name the recorded Store allowlist count (`bootstrap.storeReplicas`) here and in
the `pd.partition.defaultShardCount` table row, and mirror both in
`content/cn/docs/quickstart/hugegraph/hugegraph-helm-operations.md`.
##########
content/cn/docs/quickstart/hugegraph/hugegraph-helm.md:
##########
@@ -483,7 +505,133 @@ Chart 在 SeaTunnel Pod 内预置了连接 HugeGraph 的示例作业,并通过
作业执行状态可进入 Web 控制台实时查看 DAG 拓扑与指标统计。如需修改目标图或连接凭据,可在 values 的 `seatunnel.env`
中覆盖环境变量,或在 `seatunnel.config` 中挂载自定义的 `.conf` 配置文件。
-### 6.4 跨图迁移与模式切换
+<span id="64-跨图迁移与模式切换"></span>
+
+### 6.4 跨图迁移与模式切换 {#64-full-migration-and-topology-switches}
- **拓扑切换**:单机与集群模式切换时直接修改 values 并执行 `helm upgrade`。切换会重置引擎进程,建议在所有批处理任务完成后再执行。
- **跨图整库迁移**:建议遵循 **Schema 元数据 → 顶点数据 → 边数据** 的标准顺序。可参考
`examples/seatunnel/clone/` 下的自动化脚本与配置模板。迁移含有 `DATE` 类型字段时,务必在 Sink 配置中显式指定与源端
Server 相同的时区(如 `timeZone = "UTC"`),避免跨时区解析偏差。详细配置可参阅 [SeaTunnel
导出与迁移文档](/cn/docs/quickstart/toolchain/export-migration/hugegraph-seatunnel-source/)。
+
+## 7 通过 Hubble 使用 Vermeer {#7-vermeer-through-hubble}
+
+Vermeer 为同一 release 增加内存图计算能力,需要 PD discovery 与 HStore;保留
`hubble.enabled=true` 和 `hubble.mode=pd`。
+HugeGraph 单节点预设使用 HStore,满足此条件;单机 RocksDB Server 不提供这条 Store 直读加载路径。
+无需 Computer Operator、CRD 或 etcd。
+
+以下为**全新安装**方案。已有 release 启用引擎时使用 `helm upgrade`,并保留完整审阅后的
values。旧配置可能缺少新增组件的默认项;先将
+`helm get values hugegraph -n hugegraph --all -o yaml` 导出到私有文件,审阅后以 `-f` 提供,不带
`--reuse-values`。
+
+保留原始 bootstrap 计数、凭据、存储和元数据命名空间。只更新可变的 `latest` 标签不会重启已有 Pod;
+应发布审阅后的新镜像标签/digest,或有计划地重启相关 StatefulSet 与 Hubble Deployment。
+
+在解压后 chart 的上一级目录执行,选择一种拓扑:
+
+```bash {tab="小规模试用"}
+helm install hugegraph ./hugegraph-helm -n hugegraph --create-namespace \
+ -f ./hugegraph-helm/values-single.yaml \
+ --set vermeer.enabled=true --set vermeer.mode=standalone \
+ --wait --timeout 20m
+```
+```bash {tab="分布式 Worker"}
+helm install hugegraph ./hugegraph-helm -n hugegraph --create-namespace \
+ -f ./hugegraph-helm/values-cluster.yaml \
+ --set vermeer.enabled=true --set vermeer.mode=cluster \
+ --set vermeer.worker.replicas=3 --wait --timeout 20m
+```
+
+Vermeer `standalone` 在同一个 Pod 中运行独立的 Master、Worker 容器;`cluster` 使用一个 Master
Pod 与独立 Worker Pods。
+两种模式都只有一个 Master,增加 Worker 不提供 Master 故障切换。图服务拓扑与计算拓扑独立,单节点 HugeGraph 也可配多个
Vermeer Worker。
+
+```mermaid
+flowchart TB
+ Browser["浏览器 · HugeGraph 管理员"] --> Hubble
+ subgraph Release["同一个 Helm release"]
+ Hubble -->|"查询 / Schema"| Server
+ Hubble -->|"加载 / 计算 / 健康"| Master["Vermeer Master"]
+ Master -->|"发现分区"| PD
+ Master <-->|"任务流"| Worker["Vermeer Workers"]
+ Worker -->|"扫描分区"| Store
+ Worker -->|"授权的 Schema 读取"| Server
+ end
+```
+
+### 加载、计算与查看结果 {#vermeer-workflow}
+
+1. **登录 Hubble**:使用同一 release 的 HugeGraph 管理员账号,选择目标图空间与图。
+ Chart 自动提供内部 Master URL 和私有服务令牌文件,无需向浏览器复制原生令牌。
+1. **打开 OLAP 图计算并加载图**:等待加载完成后再计算。
+ 加载从 PD/Store 读取数据到 Worker 内存,之后写入 HugeGraph 的数据不会持续自动同步。
+1. **选择算法并提交**:当前 Hubble 源码提供 19 种 Vermeer 算法,包括
PageRank、PPR、Louvain、SCC、Jaccard。
+ 各算法表单与限制见 [Hubble 指南](/cn/docs/quickstart/toolchain/hugegraph-hubble/)
+ 和 [Vermeer 集成参考](/cn/docs/quickstart/computing/hugegraph-vermeer/)。
+1. **打开异步任务**:确认执行完成,再读取分页结果。使用带引擎标识的任务身份;原生任务编号与 Hubble API 任务 ID 是不同表示。
+ 提交成功不代表计算已完成。
+1. **打开系统与运维 → 集群概览**:选择 Vermeer 计算摘要,检查 Master 与 Worker,再返回 Server → PD →
Store 主拓扑。
+ 就绪/已注册 Worker 与进程 CPU/RSS 是采集观测,不是 Helm 期望副本数或 Pod 利用率。
+{.steps}
+
+```gallery
+ #
选择目标图与 Vermeer 算法
+ #
确认完成状态并检查返回值
+ # 查看部署级计算就绪与遥测
+```
+
+开启 Server 认证时,Hubble 的 Store 直读加载与 Vermeer 计算要求超级管理员权限;只有图空间读取权限不够。
+Chart 的服务身份不会给当前登录用户授予此权限。该 Hubble 工作流将结果保留在计算与结果缓存中,不回写 HugeGraph 顶点属性。
+成功任务记录或保留的 PVC 不保证重启后结果缓存仍可用;应检查状态,必要时重新加载与计算。
+
+Chart 将 `vermeer.url` / `vermeer.token_file` 与 `operations.vermeer.*` 自动连接到同一
Master 和服务令牌。
+关闭 Vermeer 时会显式清空两组集成配置。指标故障与图集群健康分别报告;健康快照需要兼容的 Hubble、Vermeer 镜像,
+接口不支持或采集失败都不能证明服务已就绪。
+
+### 原生界面与生命周期检查 {#vermeer-lifecycle}
+
+原生 Vermeer 管理为可选入口,其 HTTP Service 跟随 easy/strict 模式;Master/Worker RPC 与 Worker
HTTP 保持私有。
+需要在本机访问原生界面时:
+
+```bash
+kubectl -n hugegraph port-forward svc/hugegraph-vermeer-master 6688:6688
+```
+
+打开 <http://127.0.0.1:6688/>,将 Secret `hugegraph-vermeer-admin` 的 `password` 填入
**Admin credential**(无需用户名)。
+这份人工登录密码与 Server/Hubble 登录、Hubble 服务令牌分别管理。切换拓扑前,停止提交、完成或取消运行任务,并卸载计算图。
+
+Master 与 Worker 使用独立 PVC;切换 `vermeer.mode` 不迁移文件,也不恢复运行中的任务。
+Vermeer Master 与全部 Worker 必须报告完全相同的版本,不同版本的 Worker 会在注册时被拒绝。
+安排协调升级窗口,完成后检查 Worker 可用性,重新加载计算图,再恢复任务。
+
+详见 [Vermeer
升级步骤](./hugegraph-helm-operations.md#vermeer-upgrade)与[存储和恢复](./hugegraph-helm-operations.md#vermeer-and-rag-recovery)。
+
+## 8 可选 GraphRAG {#8-graphrag}
+
+GraphRAG 与 Hubble Text2GQL、Vermeer 分析算法分别提供不同能力。将 RAG overlay 叠加在 HugeGraph
拓扑预设之后:
+已有 release 应使用 `helm upgrade` 配合完整审阅后的 values,不要再次安装同名 release。
+
+```bash
+helm install hugegraph ./hugegraph-helm -n hugegraph --create-namespace \
+ -f ./hugegraph-helm/values-single.yaml \
+ -f ./hugegraph-helm/values-rag.yaml \
+ --wait --timeout 15m
+kubectl -n hugegraph port-forward svc/hugegraph-rag 8001:8001
+```
+
+打开 <http://127.0.0.1:8001/>。Chart 自动派生同一 release 的 Server URL、图身份和管理员 Secret。
+在 RAG 界面中配置模型连接:
+
+1. 选择 Chat provider,填写可达的端点、模型名称与所需凭据。
+1. 保存配置,再使用**测试已保存连接**;仅保存成功不会测试模型服务。
Review Comment:
Minor: the RAG UI has no Chinese labels; `configs_block.py` renders the
button as `Test saved connection`, so readers look for a **测试已保存连接** button
that does not exist. Keep the English label, as the page does for **Admin
credential**, here and in section 11 of
`content/cn/docs/quickstart/hugegraph/hugegraph-helm-operations.md`.
##########
scripts/helm-refresh-evidence.md:
##########
@@ -0,0 +1,40 @@
+# Helm integration verification scope
+
+This covers the bilingual deployment and Kubernetes operations guides. Exact
source identities, runtime images and screenshot hashes live in
+[Hubble fixtures](fixtures/hubble-screenshots.json) and [Vermeer/Helm
fixtures](fixtures/vermeer-helm-screenshots.json).
+Review contracts in the
[chart](https://github.com/apache/hugegraph/tree/master/helm/hugegraph),
+[Hubble
adapter](https://github.com/apache/hugegraph-toolchain/tree/master/hugegraph-hubble)
and
+[native
engine](https://github.com/apache/hugegraph-computer/tree/master/vermeer).
+
+## Coverage
+
+- Local chart checks cover single-node/cluster Vermeer, strict access mode,
RAG configuration and offline upgrade bootstrap records.
+ Assertions inspect immutable bootstrap counts, private Services, token
files, Worker claims and Hubble's persistent H2/Text2GQL key paths.
+- The real deployment used a separate task-owned Kind cluster, the current
chart, single-node preset and standalone Vermeer with a resource overlay.
+ Authentication and persistence stayed enabled; install readiness and Helm
hooks passed, and all component claims bound.
+ Local-path claim capacities are declarations, not preallocated storage.
+- The Server hook checked graph binding and visible index states; business
assertions were skipped because `server.testGremlin` was unset.
+ The Vermeer hook checked its service token and allocated Worker availability.
+- Authenticated Hubble loaded the 8-vertex/6-edge sample into Vermeer.
PageRank, PPR, SCC, clustering coefficient and Jaccard completed,
+ with retained ID/value rows, signed task routing and final-page
`has_more:false` verified.
+ This covers those tasks, not every identifier in the adapter's 19-algorithm
catalog.
+- Hubble/Vermeer image revision labels match the fixture source identities.
PD/Store/Server labels do not establish a source revision;
+ their recorded digests identify the observed images without asserting a
missing source label.
+
+## Observed boundaries
+
+- Store was Kubernetes Ready and lifecycle STARTED while its separate
operator-controlled state remained STARTING.
+ Hubble showed NOT_READY even though sample queries and Vermeer scans
succeeded. No management flag was changed for the screenshots.
+- PD statistics were readable, but per-member metrics showed
`pd_metrics_unmapped` because the client Service origin differed from
advertised Pod FQDNs.
+ No Service metric sample was reassigned to a member.
+- The native image lacks the optional preview-edges route; retained results
stayed readable with adjacency unavailable.
+- This was a minimal single-node run, not HA, failure-recovery, replica-factor
migration or long-duration acceptance.
+ RAG was checked by rendering configuration; no live model connection or RAG
inference was exercised.
+
+## Review entry points
+
+- Lifecycle and diagnostics: [Store
deployment](https://github.com/apache/hugegraph/blob/master/hugegraph-store/docs/deployment-guide.md)
+ and [Hubble
diagnostics](https://github.com/apache/hugegraph-toolchain/blob/master/hugegraph-hubble/docs/operations-diagnostics-20261023.md).
+- Native Duo View IDs preserve old Chinese fragments; review Mermaid, Steps,
topology Tabs, technical tables and Markdown fallbacks on desktop/mobile.
+- Runtime logs and API readbacks remain in `/var/tmp/hubble-helm-live/`; local
render assertions are in `/var/tmp/helm-docs-verification.json`.
Review Comment:
Minor: `/var/tmp/hubble-helm-live/` and
`/var/tmp/helm-docs-verification.json` exist only on the machine that ran the
check, so this review entry point leads nowhere for other readers. Drop the
line or commit the referenced readbacks and assertions beside the fixture.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]