Client Uptime Check
Last updated
Last updated
Sometimes, simply monitoring on-chain performance of your validators may not be sufficient.
However, this method no longer works well for solo stakers running DVTs because your nodes could be offline without causing missed attestations - Recall that a cluster of X nodes is responsible for hosting Y validator keys.
This means that we either need to manually check on our nodes periodically (tedious) or act when the cluster fails to achieve consensus, leading to missed attestations, which can lead to free-rider problems.
This is a simple and lightweight uptime checker chatbot for Solo DVT operators to monitor as many nodes as you want (Like Google Uptime Check but free).
You must configure port forwarding to ports 30303 and 9000 of your validator node in order for Google Uptime Check to work.
Refer to the Preparing your virtual machine sub-section of this guide to understand how to.
Log in to your google cloud console and type "monitoring" into the search bar. Then select the "Monitoring - Infrastructure and application quality checks" result.
Select "Uptime checks" on the left hand panel.
Click on +CREATE UPTIME CHECK located at the top panel.
You will be prompted to enter the following:
Protocol: TCP
Resource type: URL
Hostname: <the external IP address of your beacon node>
Port: 30303
*Port 30303 checks for the uptime of the execution layer client. Repeat this step for Port 9000 as well to check for the uptime of the consensus layer client.
Click through the default settings until Step 3 - Alert & Notification. Then click on the "Notification channels" drop down and then "MANAGE NOTIFICATION CHANNELS"
Set up your favourite notification channels. I like to keep it simple by using email as my alerts channel.
Next, key in the name of the alert you created and test the service. If the connection is successful, you will see a "success" message.
Go ahead and click "CREATE" to complete the setup.
*Repeat the same steps for ports 9000 and 3000.
Congrats! You have set up an alerts tool to check if each of your clients are running. This is useful to identify out-of-memory, database corruption, power/internet, or hardware issues.
This is not a free tool so monitor your usage after a month and adjust your uptime check duration accordingly.