-
Notifications
You must be signed in to change notification settings - Fork 20
feat: health check #278
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
feat: health check #278
Conversation
mrekucci
left a comment
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.
The health check should also be used across infra Nomad scripts.
infrastructure/nomad/playbooks/templates/jobs/mev-commit-oracle.nomad.j2
Outdated
Show resolved
Hide resolved
|
|
||
| srv := apiserver.New(opts.Version, opts.Logger.With("component", "apiserver")) | ||
| peerType := p2p.FromString(opts.PeerType) | ||
| healthChecker := health.New() |
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.
nit: this can be defined closer to it's first usage on the line 547.
| "google.golang.org/grpc/connectivity" | ||
| ) | ||
|
|
||
| type HealthCheck interface { |
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.
HealthCheck -> HealthChecker
| }) | ||
| } | ||
|
|
||
| func New() Health { |
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 constructor is not necessary, I'd suggest to export the health struct below and use new(Health) instead.
Describe your changes
Add proper health check for mev-commit and oracle.
Issue ticket number and link
#277
Checklist before requesting a review