raspibolt / raspibolt-pulse

A script to monitor a RaspiBolt node health and activity at a glance.
MIT License
11 stars 12 forks source link

Improve performance by reduced calls and timeouts #8

Closed vicariousdrama closed 2 years ago

vicariousdrama commented 2 years ago
vicariousdrama commented 2 years ago

tACK, and the Lightning latest version issue seems to be resolved. However, on my testing with the time function I get runtime of 7.5-8.2 seconds vs 5.8-6.5 seconds with the original version. Not knowledgeable enough to comment on why that might be though.

How are you timing?

Here's an example result after allowing the calls to github and re-running Using time ./raspibolt-pulse-switch.sh

real    0m2.319s
user    0m1.820s
sys     0m0.700s

This is on a pi4, 8GB, ethernet, but only Bitcoin, LND, and RTL being active as I split my installation into multiple raspberry pis last year. There will also be some minor variance in time to run based on number of channels open, and pending channels

zynos commented 2 years ago

On CLN I get this error:

/usr/local/bin/get_CLN_data.sh: line 40: unexpected EOF while looking for matching `)'
/usr/local/bin/get_CLN_data.sh: line 124: syntax error: unexpected end of file
vicariousdrama commented 2 years ago

Thanks - great catch.

zynos commented 2 years ago

Working great now, no errors :)

zynos commented 2 years ago

@VajraOfIndra ready for merge?