What is the function of the 'ghe-repl-status' command in GitHub Enterprise Server?
Select an answer to reveal the explanation.
Short Explanation and Infographic
ghe-repl-status is your HA health check. Run it on the replica and it shows you whether replication is keeping up with the primary — lag times for each service, and whether anything has fallen behind. Essential for HA monitoring.
Full explanation below image
Full Explanation
The 'ghe-repl-status' command is run on the replica appliance in a GitHub Enterprise Server High Availability configuration. It reports the current replication status for all GHES services including: Git repository replication (via rsync), MySQL database replication, Redis replication, Elasticsearch replication, and Pages replication. It shows the replication lag for each service, indicating how far behind the replica is from the primary. Administrators should monitor this regularly to ensure the replica stays current. In a cluster configuration, ghe-cluster-repl-status provides cluster-wide replication monitoring. This command has no relation to GitHub Actions jobs, GitHub Connect, or webhooks.