bitflicker64 commented on code in PR #575:
URL: https://github.com/apache/hugegraph-doc/pull/575#discussion_r4604202491
##########
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: this branch has `79e8821f` from #574 but not `675b4708`, which fixes
this line (RF follows `bootstrap.storeReplicas`, not the initial Store count),
the CN `测试已保存连接` label and the machine-local `/var/tmp` evidence paths. Rebase
onto the head of #574.
--
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]