Commit 5ee0039e authored by Toon Claes's avatar Toon Claes

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

Geo DB replication lag should be handled as 24h/day & 7d/week, instead
of the default 8h/day & 5d/week.

Closes #3298
parent 61e33265
...@@ -40,7 +40,10 @@ class GeoNodeStatus { ...@@ -40,7 +40,10 @@ class GeoNodeStatus {
// Replication lag can be nil if the secondary isn't actually streaming // Replication lag can be nil if the secondary isn't actually streaming
if (status.db_replication_lag) { 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)); this.$dbReplicationLag.text(gl.utils.prettyTime.stringifyTime(parsedTime));
} else { } else {
this.$dbReplicationLag.text('UNKNOWN'); this.$dbReplicationLag.text('UNKNOWN');
......
---
title: Handle Geo DB replication lag as 24h/day & 7d/week
merge_request: 2833
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment