lightninglabs / lightninglabs/lndmon
Add streaming API to GraphCollector to reduce memory usage
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 160
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
Rather than polling DescribeGraph every scrape_interval seconds, just call it once at startup, cache the state, then subscribe to graph notifications and update the cached state.
Rationale: DescribeGraph is an expensive call, so this optimization should reduce memory usage.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating GraphCollector and its DescribeGraph polling path, then trace how graph notifications can be subscribed to. Done means the graph is described once at startup, the cached state is updated from notifications, and repeated scrape-interval polling is removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100