Repository navigation
Closed
Labels
area: configConfiguration management and validationeffort: mediumMedium effort - 1-2 dayspriority: mediumImportant but not urgenttype: documentationDocumentation improvements or additions
Description
Summary
Create two admin guide documents covering ongoing operations: rolling upgrades and cluster topology changes (operations.md) and a troubleshooting decision tree (troubleshooting.md). Both linked from README and included in mkdocs navigation.
Files to Create
docs/admin-guide/operations.md
Topics:
- Rolling upgrade procedure — upgrade nodes one at a time; leader last; verify
objectfs cluster statusshows all alive at each step - Growing cluster: 1→3 — add two nodes with
OBJECTFS_CLUSTER_SEEDSpointing at existing node; verify quorum - Shrinking cluster: 3→1 — drain nodes gracefully; verify remaining node degrades to
ConsistencyEventualmode - Leader failure recovery — what happens automatically (Raft election); when to intervene (split-brain)
- Cache sizing formula:
cache_size ≥ hot_dataset_size × replication_factor; worked example with genomics dataset - Log rotation and data dir management (when persistent log enabled in v0.13.0)
docs/admin-guide/troubleshooting.md
Decision tree format:
Mount fails?
└─ Check FUSE: modprobe fuse; ls /dev/fuse
└─ Check credentials: aws sts get-caller-identity
└─ Check config: objectfs mount --dry-run
Cache hit rate < 20%?
└─ Single node: increase cache_size_gb
└─ Multi-node: check gossip port 7946 is open between nodes
└─ Check: objectfs cluster status --json | jq .cache
Gossip not forming?
└─ Verify all nodes share same cluster_secret
└─ Check firewall: UDP 7946 between nodes
└─ Check advertise_addr matches reachable IP
High S3 costs?
└─ Check cache hit rate (above)
└─ Enable cache warming (A2-5)
└─ Consider storage tier optimization
README Changes
Add "Administration" section linking to both documents:
## Administration
- [Operations guide](docs/admin-guide/operations.md)
- [Troubleshooting](docs/admin-guide/troubleshooting.md)
- [Distributed mode](docs/admin-guide/distributed.md) (A3-3)Acceptance Criteria
- Both documents exist at paths above
- Both linked from README under "Administration"
- Both included in
mkdocs.ymlnav - Cache sizing formula includes worked example
- Troubleshooting tree covers mount failure, low cache hit rate, gossip failure, high S3 costs
Metadata
Metadata
Assignees
Labels
area: configConfiguration management and validationeffort: mediumMedium effort - 1-2 dayspriority: mediumImportant but not urgenttype: documentationDocumentation improvements or additions
Activity
scttfrdmn commentedon Jul 30, 2026
Correction: most of the specified content documents behavior that does not exist
Filing note from the v0.10.0 review.
Roughly 60% of the outlined content describes distributed behavior the code does not implement. Writing it now would produce documentation that is wrong on day one — the worst possible outcome for a day-two operations guide, because operators will act on it during incidents.
Specifically, the following outlined topics have no implementation to document:
Coordinator.executeLocally(internal/distributed/coordinator.go:550-602) calls the S3 backend directly and never consults leadership, term, orcommitIndex. There is no failover behavior to describe.ConsistencyEventual. No code path downgrades the consistency level in response to node loss.executeStrongConsistency(coordinator.go:356) fans the same operation to N nodes and succeeds onsuccessCount >= len(targetNodes)/2+1(line 399). Since all nodes write the identical S3 key, these are N redundant identical PUTs — majority success is a reachability signal, not a linearizability guarantee.internal/distributed/doc.go:47-84already claims linearizability; that claim is itself incorrect and should be corrected rather than propagated into operator docs.There is also no
ClusterManagerin a running process at all (#139), so none of this is observable even in principle today.Suggested adjustment
internal/distributed/doc.go. Notedoc.go:89anddoc.go:326also contain example code setting aClusterConfig.Enabledfield that does not exist on the struct (cluster.go:35-65), so those examples do not compile.See also #169 (evaluating S3 conditional writes as a Raft substitute) — if that changes the consistency model, the distributed half of this guide should be written against the new design, not the current one.
scttfrdmn commentedon Aug 2, 2026
Correction: roughly 60% of this documents behavior that does not exist
Re-verified against
main. Operations documentation that describes unbuilt features is worse than none — it is the mechanism by which v0.10.0 accumulated ~190 documentation overclaims, and an admin guide is exactly the document an operator trusts under pressure.Going through
operations.mdtopic by topic:objectfs cluster statusOBJECTFS_CLUSTER_SEEDSinternal/config/config.go:720-850maps 24 env vars, none cluster-related. "Verify quorum" is #132ConsistencyEventual"ConsistencyEventual(coordinator.go:75) is a per-operation level the caller passes in; nothing anywhere lowers the level in response to lost quorumbroadcastProposal(consensus.go:754-759) logs and then self-accepts its own proposals on a timer — #133. Documenting automatic recovery would tell an operator not to intervene in a situation where intervention is the only thing that worksAnd
troubleshooting.md:modprobe fuse; ls /dev/fuseaws sts get-caller-identityobjectfs mount --dry-runcmd/objectfs/main.go:45, used at:108) but there is nomountsubcommand — it isobjectfs --dry-run --config c.yaml s3://bucket /mnt, percmd/objectfs/doc.go:33. Depends on #134 to become true as writtencache_size_gbconfigs/example.yamldocumentingenable/zstd_level/min_file_sizeagainst the realenabled/level/min_size, undetected because the whole block was inert under non-strict decoding. Decoding is strict now, so a wrong key in the admin guide is an immediate hard failure for whoever copies itListenAddrhas no cluster default. Either set one or document the field, not a numberobjectfs cluster status --json | jq .cachecluster_secret"cluster_secret. Zero hits in Go or YAML. Gossip is unauthenticated. Telling an operator to check a nonexistent shared secret sends them looking for a config key that cannot be set — and quietly implies gossip is authenticated when it is notadvertise_addrreachabilityWarmupcurrently issues one full-object S3 GET per key, so as a cost-reduction step this is backwardsRecommendation: split, and land the true half now.
--dry-runwith the real invocation, cache sizing with the worked genomics example, reading the metrics endpoint, whatsyncguarantees, the storage-tier and compression cost levers. This is the document most users need and none of it is blocked.objectfs cluster statussubcommand #147.One structural request. Whatever lands, gate it: a test that extracts config keys, env var names, and CLI invocations from the admin guide and asserts each one exists — the same shape as the config-docs admission gate and version-claim test added in v0.10.1. Every wrong item above would have been caught by it at authoring time, and an admin guide that drifts is the one document where drift costs the most.
Also worth noting: unauthenticated gossip is not a documentation problem, but this issue is where it surfaced. Filing it separately.
scttfrdmn commentedon Aug 9, 2026
Moved to v0.14.0. This documents day-two operations for distributed mode, and two of the things it would describe do not exist yet:
objectfs cluster statusis #147, filed against v0.14.0, and the Raft leader-election recovery this would walk an operator through is not on the mount path — v0.13.0 wires the cluster manager for gossip and cache coordination only, and consensus is deliberately not started (#139). The recorded direction is CAS viainternal/coordrather than Raft.Written now, this page describes a specification. Written in v0.14.0, alongside the CLI that inspects the thing, it describes behavior — and can state verification steps a reader can actually run.
scttfrdmn commentedon Aug 9, 2026
Unblocked as of #147 (merged in #414):
objectfs cluster statusand--jsonnow exist, so the verification steps in the rolling-upgrade section and theobjectfs cluster status --json | jq .cacheleaf of the troubleshooting tree can be written against a real command rather than a spec. That was the reason this was deferred out of v0.13.0.Before anyone writes it, though — most of the identifiers in the body above do not exist, and the docs tests will catch it.
TestDocumentedCLIInvocationsAreRunnable,TestDocumentedGoSymbolsExistandTestDocumentedConfigYAMLMatchesTheSchemaininternal/configparse committed markdown and fail on names the code does not have. Grepped just now againstc47be1b:OBJECTFS_CLUSTER_SEEDScluster.seed_nodesin YAML (ClusterConfig.SeedNodes); there is no environment variable for them.ConsistencyEventualinternal/distributed/doc.go:99. A node cannot "degrade toConsistencyEventualmode" because the type is gone.cache_size_gbcache.cache_size, a string (e.g."10GB"), not a number of gigabytes.data_dirClusterConfig.ListenAddrdefaults to0.0.0.0:8080(cluster.go:246). 7946 appears only as a literal in test fixtures, presumably from memberlist's convention. A firewall instruction naming the wrong port is worse than none.Two sections need rescoping rather than fact-checking, both for the reason recorded in #147 and in the CAS-not-Raft decision:
enable_consensusis off by default andobjectfs cluster statusprintsRole: n/a — leader election is not running; coordination is compare-and-swap against S3. There is no election to recover from and no split-brain to intervene in on the path an operator actually runs. What belongs here instead is what a CAS conflict looks like and what happens when a node holding a claim dies.The cache sizing formula needs a second look too:
cache_size ≥ hot_dataset_size × replication_factormultiplies by a factor that does not do what its name suggests here —ReplicationFactoris a selection width and only the first node is used, since S3 holds the single copy (see the field comment incluster.go). Each node caches what it reads, so the per-node figure has no replication term in it at all.test: stop the CLI gate at a pipe, and read every file that declares …
docs: day-two operations and troubleshooting, and a gate for them (#148…