Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.14][PLAT-13249] Change clock skew alert threshold to 250
Summary: To detect clock skew issues before TServer starts crashing we're changing threshold to 250ms. Original diff: https://phorge.dev.yugabyte.com/D33582 Test Plan: Testead manually. Reviewers: vbansal Reviewed By: vbansal Subscribers: yugaware, sanketh Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D33588
- Loading branch information
1 parent
a3ae4e5
commit 2102766
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
managed/src/main/resources/db/migration/default/postgres/V336__Clock_Skew_Alert_Update.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Copyright (c) YugaByte, Inc. | ||
|
||
--- Update default threshold | ||
update alert_configuration | ||
set thresholds = replace(thresholds, | ||
'"SEVERE":{"condition":"GREATER_THAN","threshold":500.0}', | ||
'"SEVERE":{"condition":"GREATER_THAN","threshold":250.0}') | ||
where template = 'CLOCK_SKEW'; | ||
|
||
-- Recreate alert definition with new threshold | ||
update alert_definition set config_written = false where configuration_uuid IN | ||
(select uuid from alert_configuration where template = 'CLOCK_SKEW'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters