Resolve the bottleneck created by the chain runtime in hermes #1489
Labels
A: low-priority
Admin: low priority / non urgent issue, expect longer wait time for PR reviews
O: new-feature
Objective: cause to add a new feature or support
O: performance
Objective: cause to improve performance
Milestone
Crate
relayer
Summary
I was debugging hermes recently on a testnet on a channel where lots of packets have been relayed. I noticed:
Problem Definition
Proposal
In the long run we should allow queries to be done directly from the worker. There is no need to use the chain runtime for this. It should be only required for Tx.
In the short term segregate the client worker from the others, via configuration. This will allow a hermes instance to run in the background just to monitor for misbehaviour and keep clients fresh. Another instance could run for packet relaying and the slowdown caused by the client workers should be significantly less.
Fixing #1417 would also help.
Acceptance Criteria
For Admin Use
The text was updated successfully, but these errors were encountered: