Objective
Determine from a diag whether Leader Replication is enabled for a failover (HA) leader pair.
Environment
- Cribl Stream 4.17 or later, on-premises
- Distributed deployment with a failover (HA) leader pair that uses a shared failover volume
- A diag from each leader in the pair
Procedure
-
Open local/_system/instance.yml in the diag.
-
Verify that distributed.master.resiliency is set to failover.
-
Note the failover.volume path.
-
-
Open system.json in the diag.
-
Compare env.CRIBL_HOME with CRIBL_INSTANCE_HOME and the install path.
-
Replication is ON if CRIBL_HOME equals the local install directory, and configPath is the local install directory.
-
Replication is OFF if CRIBL_HOME and configPath point at the failover volume.
-
Check the messages for ids starting with leader_replication_, such as leader_replication_unmet_system_requirements or leader_replication_unverified.
-
-
Search the leader log for replication messages.
-
Replication ON shows Configured for failover/replication once per boot.
-
Replication ON also shows Setting up replicator on each lease acquisition.
-
Replication ON also shows Pulling known paths from replica excluding the git repo and Creating FSReplicatorGit client.
-
A standby leader with replication ON shows Scheduling replica sync.
-
Replication OFF shows Warming Git cache and Git cache warming completed successfully, with no replicator lines.
-
-
Open the state/leaders/*.json files in the diag.
-
Verify whether each leader startTime and version changed after the upgrade.
-
Repeat steps 1 through 5 with a diag from the other leader.
Additional Information
- No REST API field or UI setting shows the effective replication mode. system.json describes only the leader that produced the diag, so you need a diag from each leader.
- env.CRIBL_STATE_DIR points to the volume state directory in both modes, so it does not help.
- With resiliency set to none, configPath is also the install directory, so confirm failover in instance.yml first.
- Log rotation can remove boot-time lines if the lease was not re-acquired.
- The marker file $CRIBL_HOME/state/replication-enabled is local to each node. The diag does not include it, although it does include state/leaders and state/lease.json.
- A standby that has not restarted since the upgrade may not have the marker file yet.
- Replication is on by default for on-premises deployments since 4.17. It can be silently off if the pre-enablement checks fail. The checks require NFS support for mtime updates, enough free local disk space to hold the replicated directories (everything on the failover volume except state) plus a 10 GB buffer, and a git.timeout of at least 10 minutes (600000 ms). Failures log at boot and raise a red system banner. See High Availability Requirements and Leader High Availability/Failover.
- Replication changes where leaders read default/, local/, groups/, and data/. With replication OFF they read from the shared volume. With it ON they read from the local $CRIBL_HOME.
