-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add health check command #46
Conversation
Can we have ae health cidr <cidr range>
ae health cidr 10.0.0.1/24
ae health <host>
ae health nivenly.biz
ae health 10.0.0.17 The reason I say this is because I believe we are going to need to start moving our clustering/networking paradigms into common libraries. If it is a 3rd subcommand this allows us to add others in the future such as ae health cluster <primary-node>
ae health hostpattern <DNS regular expression>
ae health arp // everyone in the arp tables
ae health route // everyone in the route tables I believe that the scheduler core libraries will likely end up starting/living here in the worker := func() error { return nil } // TODO add work here
sched := scheduler.CIDRIterator()
sched.Work(worker)
err := sched.Run() such that we can easily perform tasks at scale. I suspect we will have many scheduler/iterators/walkers as we grow. For example I could also see something like worker := func() error { return nil } // TODO add work here
sched := scheduler.ClusterWalker("hachyderm.io")
sched.Work(worker)
err := sched.Run() Then we can just have an interface for all of our valid worker commands, and |
i'm iterating on this. |
|
|
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.
Great job pulling things out into /health
Part of #42
This also introduces a gRPC client with an implementation for the Discovery service that can be copied for Runtime services later.
NOTE: this assumes all instances of auraed are listening on the same port, which is not guaranteed.. more flexibility can be added.
to test
sudo -E auraed --socket "0.0.0.0:8080"
ae health --cidr <local network cidr: 192.168.0.0/24> --port 8080
experience output :)