-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-14867] Make sure restart alerts don't trigger for small time up…
…dates during NTP sync Summary: Currently some customers are seeing bogus DB node restart alerts. The reason is that node boot time (and process start time) metrics experience 1 second changes during NTP time syncs. This diff makes sure we only trigger node/process restart alerts in case node/process boot time increased significantly (> 10 seconds). Test Plan: Restart DB node via cloud console. Make sure both DB node and DB instance restart alerts are triggered with WARNING severity. Restart DB node via cloud console 2 more times with 1 minute delay between restarts. Make sure both DB node and DB instance restart alerts are triggered with SEVERE severity. Wait for 30 minutes for alerts to clean. Reviewers: vbansal, #yba-api-review! Reviewed By: vbansal Subscribers: sanketh, yugaware Differential Revision: https://phorge.dev.yugabyte.com/D37773
- Loading branch information
1 parent
6614afb
commit 1153b56
Showing
4 changed files
with
19 additions
and
7 deletions.
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
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
5 changes: 5 additions & 0 deletions
5
managed/src/main/resources/db/migration/default_/postgres/V373__Restart_Alerts_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,5 @@ | ||
-- Copyright (c) YugaByte, Inc. | ||
|
||
-- Recreate alert definition to count by | ||
update alert_definition set config_written = false where configuration_uuid IN | ||
(select uuid from alert_configuration where template in ('DB_INSTANCE_RESTART','NODE_RESTART')); |
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