ibp-network / ibp-monitor

16 stars 10 forks source link

SLA monitoring of nodes #2

Open dcolley opened 1 year ago

dcolley commented 1 year ago

Please add additional tests for each node:

availability

performance

reliability

member rank

security

other

dcolley commented 1 year ago

Tom | Stake.Plus Basically, we need to connect to an ip address of a member, talk in websockets and have that connection think it's communicating with rpc.dotters.network or rpc.ibp.network, etc. Just like a host files rewrite or using the resolve function on the curl command. Then instead of monitoring rpc.stake.plus it would monitor rpc.dotters.network at 192.96.202.175 or rpc.dotters.network at 195.144.22.136. We need to track not only the websockets functionality of the node but also that it's responsive on the urls it's supposed to be responsive on (still processing SSL validation).

derek // metaspan there are 2 methods for doing this: either

write to /etc/hosts and then make the http request, or inject a custom dnsResolver into the request. here is an example:

https://github.com/axios/axios/issues/94 that way you can connect to rpc.stake.plus and have control over the underlying ip address