Monitoring your Pocket Infrastructure using PANIC

Francesco Cremona
Aug 20 · 2 min read

Monitoring is a crucial part of any blockchain infrastructure operation, due to their critical uptime requirement. This is especially the case for nodes operating on the Pocket network, where consumers require the on-demand use of the decentralised nodes’ API services.

Image for post
Image for post

Follow this guide to install PANIC for Cosmos on a VM separate to your Pocket nodes: PANIC — Installing an Emergency Notification System for your Cosmos Validator

Changing configuration

To properly monitor Pocket nodes, due to the network’s relatively high block times (15 minutes), compared to other Tendermint based chains (on average around 6–7s block time), we must change PANIC’s internal config. This is found within the config folder of panic_cosmos.

Open the config/internal_config.ini file and replace the following parameters:

max_missed_blocks_interval_seconds defines the window within which the missed blocks calculation is calculted. By default, PANIC alerts if your validator misses 10 blocks within 120 seconds, or 2 minutes. We shall change this to 9100 seconds, which is around 2.5 hours.

[ORIGINAL]  max_missed_blocks_interval_seconds = 120
[NEW] max_missed_blocks_interval_seconds = 9100

max_missed_blocks_in_time_interval defines the amount of missed blocks the validator should miss before PANIC alerts. In this case, we will lower the number from 10 to 2 blocks.

[ORIGINAL]  max_missed_blocks_in_time_interval = 10
[NEW] max_missed_blocks_in_time_interval = 2

Stay tuned to Simply VC for more Pocket and PANIC related guides:

Feel free to contact me with any questions or feedback here:

Simply VC

A team of security, cryptocurrency & business experts…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store