Skip to content

Commit

Permalink
Merge branch '400-update-health-check' into 'dev'
Browse files Browse the repository at this point in the history
Resolve "update health-check"

Closes #400

See merge request ergo/rosen-bridge/guard-service!388
  • Loading branch information
zargarzadehm committed Sep 16, 2024
2 parents 7d148d3 + 6e05b48 commit 31d30b1
Show file tree
Hide file tree
Showing 19 changed files with 749 additions and 216 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-hornets-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': patch
---

change ergo scanner sync health-check thresholds
5 changes: 5 additions & 0 deletions .changeset/dull-numbers-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': minor
---

update health-check APIs regarding to latest changes
5 changes: 5 additions & 0 deletions .changeset/four-mirrors-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': minor
---

add notification to health-check
5 changes: 5 additions & 0 deletions .changeset/healthy-flies-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': minor
---

add ethereum scanner sync and asset health-check parameters
5 changes: 5 additions & 0 deletions .changeset/neat-rings-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': patch
---

change default requeue waiting events interval to 6 hours
5 changes: 5 additions & 0 deletions .changeset/polite-masks-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': minor
---

add tx progress health-check parameter
5 changes: 5 additions & 0 deletions .changeset/two-foxes-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': patch
---

change default tx processor interval to 1 minute
25 changes: 20 additions & 5 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,12 @@ coldStorage:
startHour: 17 # start of cold storage transaction generation period
endHour: 19 # end of cold storage transaction generation period
intervals:
txProcessorInterval: 180
txProcessorInterval: 60
timeoutProcessorInterval: 3600 # interval to check if events got timeout
requeueWaitingEventsInterval: 43200 # interval for requeue events which are timeout
requeueWaitingEventsInterval: 21600 # interval for requeue events which are timeout
minimumFeeUpdateInterval: 300
tokensPath: './config/rosen/tokens.json' # path to supported tokens of bridge
thresholdsPath: './config/thresholds.json' # path to thresholds of lock address tokens
discordWebHookUrl: '' # Discord webhook url for sending notifications
database:
type: 'sqlite' # options: postgres, sqlite
path: './sqlite/guard.sqlite' # database path (for sqlite)
Expand All @@ -169,9 +168,15 @@ healthCheck:
btc:
warnThreshold: 5000000 # minimum recommended btc balance
criticalThreshold: 1000000 # minimum required btc balance
eth:
warnThreshold: '20000000000000000' # minimum recommended eth balance
criticalThreshold: '4000000000000000' # minimum required eth balance
ergoScanner:
warnDifference: 2 # warning difference between existing and scanned blocks height
criticalDifference: 100 # critical difference between existing and scanned blocks height
warnDifference: 5 # warning difference between existing and scanned blocks height
criticalDifference: 20 # critical difference between existing and scanned blocks height
ethereumScanner:
warnDifference: 50 # warning difference between existing and scanned blocks height
criticalDifference: 200 # critical difference between existing and scanned blocks height
ergoNode:
maxHeightDifference: 2 # maximum difference between header height and full height
maxBlockTime: 1800 # maximum time to see a new block
Expand All @@ -182,5 +187,15 @@ healthCheck:
duration: 100 # error log duration time check
p2p:
defectConfirmationTimeWindow: 120 # Time to wait after any peer disconnection
txSignFailed:
warnThreshold: 3
criticalThreshold: 7
revenue:
interval: 120 # revenue update interval
discordWebHookUrl: '' # Discord webhook url for sending notifications
notification:
historyCleanupThreshold: 90000 # 1 day and 1 hour
windowDurations:
hasBeenUnstableForAWhile: 900
hasBeenUnknownForAWhile: 900
isStillUnhealthy: 900
Loading

0 comments on commit 31d30b1

Please sign in to comment.