Open moul opened 9 months ago
Could be a nice one to test the new gnoclient, once merged (https://github.com/gnolang/gno/pull/1047#issuecomment-1898059756).
Reopening this issue with new context.
The PR #2329 provides a better counter and watchdog system, introducing the gno.land/r/gnoland/monit
realm.
We now need to rewrite the agent part that will replace misc/autocounterd
. This agent should not only verify that a transaction can be made, but also check if the counter was incremented by keeping a local counter for comparison.
Ideally, this agent should check that the realm (and chain) is operational and that the repository is still compatible. To achieve this, I suggest a small change: instead of running the misc/monit-agent
binary, I propose a misc/monit-agent/run.sh
script that will git pull
the master branch, then go run . --remote={gno.land,test4,...}
. This will verify that the production is up and running and that the master branch is still compatible with the production deployment (transaction format, encoding, etc.).
cc @gnolang/devops
Hi 👋🏼 Are there any people working on this project ?
cc @moul @zivkovicmilos
@sw360cab, have you already started working on it? If not, could @DIGIX666 try to assist?
@aeddi, can you check with @sw360cab and @DIGIX666 if you can maybe help them; i think it's a good onboarding challenge for you
With the testing of the new portal loop (#1108), it would be beneficial to develop an automated system for interacting with our chain. This system would serve two purposes: 1. to observe regular changes and 2. to provide advanced monitoring. One approach is to create a simple agent that conducts a transaction every few minutes, such as updating a counter. If the transaction fails or if the counter becomes outdated or reset, this agent can trigger a monitoring alert.
cc @gnolang/devrels @gnolang/devops
Suggested approach:
--every 60s
and--remote rpc.test3.gno.land
. This client will regularly perform checks and call a hook/script when a failure occurs.Alternative approach: