-
Notifications
You must be signed in to change notification settings - Fork 42
Probe scripts #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Probe scripts #260
Conversation
|
|
||
| ```bash | ||
| $ builder-playground inspect <service> <port> | ||
| $ builder-playground debug inspect <service> <port> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put all the commands that look like debugging utilities under the debug subcommand.
| Use: "debug", | ||
| } | ||
|
|
||
| var probeCmd = &cobra.Command{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new command is useful to check the result of a healthcheck probe
| } | ||
|
|
||
| fmt.Printf("\nWaiting for network to be ready for transactions...\n") | ||
| networkReadyStart := time.Now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This alongside watchdog.go and watchers.go has been removed since now we rely on Docker healthchecks directly. Up to this point this was being used to test only whether a chain was producing blocks, now that function is a healthcheck with healthmon.
Playground had two systems to validate the health of a service.
Both systems evolved independently from each other, first it was 1, and 2 came about when some services had hard dependencies and would not start without the others running. But, in insight they implement the same functions, i.e. to check whether an EL node is generating blocks in sequence and at correct block time intervals.
This PR eliminates 1 and integrates it inside 2.