Skip to content
Snippets Groups Projects
Commit d3ccb4d4 authored by Clement Ho's avatar Clement Ho
Browse files

Merge branch 'tc-geo-replication-time-24-7' into 'master'

Handle Geo DB replication lag as 24h/day & 7d/week

Closes #3298

See merge request !2833
parents 192ae505 5ee0039e
No related branches found
No related tags found
1 merge request!2833Handle Geo DB replication lag as 24h/day & 7d/week
Pipeline #
Loading
Loading
@@ -40,7 +40,10 @@ class GeoNodeStatus {
 
// Replication lag can be nil if the secondary isn't actually streaming
if (status.db_replication_lag) {
const parsedTime = gl.utils.prettyTime.parseSeconds(status.db_replication_lag);
const parsedTime = gl.utils.prettyTime.parseSeconds(status.db_replication_lag, {
hoursPerDay: 24,
daysPerWeek: 7,
});
this.$dbReplicationLag.text(gl.utils.prettyTime.stringifyTime(parsedTime));
} else {
this.$dbReplicationLag.text('UNKNOWN');
Loading
Loading
---
title: Handle Geo DB replication lag as 24h/day & 7d/week
merge_request: 2833
author:
type: fixed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment