forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fast start for chains configured with an allow list (informalsystems#…
…1705) - Split the worker spawning code into two parts: - a) scan the chains for the clients, connections and channels - b) spawn the appropriate workers based on the resulting scan - When scanning a chain with filtering enabled and an allow list, skip scanning all the clients and query the allowed channels directly, resulting in much fewer queries and a faster start. - Add a `--full-scan` option to `hermes start` to opt out of the fast start mechanism and do a full scan. --- * Introduce a `ChainScanner` to scan the chains for clients, connections and channels * Use `ChainScanner` for spawning workers * Formatting * Add `--full-scan` option to `start` command to force a full scan even when some chains are using allow lists * Remove debug statements and print scanned chains on startup * Changelog entry * Fix duplicate info message * Quote identifiers in log messages * Better error when port/channel does not exists * Add metrics for queries * Small log improvements * Rename queries metric * Use `chain` key for recording chain identifier in tracing logs * Use more structured logging in chain scanner * Fix changelog entry * Improve logs when no workers were spawned * Improve logs when spawning connection and channel workers * Remove spaces in objects names * Add changelog entry * Revert part of logs changes * Use INFO level for spawning logs * Remove redundant changelog entry
- Loading branch information
1 parent
d5a3e19
commit a9ae161
Showing
17 changed files
with
1,119 additions
and
438 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Improve startup time of the relayer | ||
- When scanning a chain with filtering enabled and an allow list, skip scanning all the clients and query the allowed channels directly. This results in much fewer queries and a faster start. | ||
- Add a `--full-scan` option to `hermes start` to opt out of the fast start mechanism and do a full scan. |
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
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
Oops, something went wrong.