Add metrics for tracking stale secondaries for merge requests
To fix the merge requests failing to match due to replication lag (https://gitlab.com/gitlab-org/gitlab/-/issues/247857) we added a mechanism to track the WAL pointer of the merge request to decide whether to use the secondary or fall back to the primary. This commit adds metrics to better understand how often this fallback is occurring.
Showing
Please register or sign in to comment