lndmon icon indicating copy to clipboard operation
lndmon copied to clipboard

Add streaming API to GraphCollector to reduce memory usage

Open valentinewallace opened this issue 6 years ago • 0 comments

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.

valentinewallace avatar Jul 22 '19 04:07 valentinewallace