Open rgaiacs opened 1 year ago
This might be a little tricky to implement. But I suppose the builder class cloud have a "builders available" method? The abstractions make it quite tricky, because how to check if it's true will depend on how it's deployed (i.e. in the helm config, outside the BinderHub config). You'll need to know which nodes to check for their scheduling status, if any.
Consider the scenario of a small Kubernetes cluster (2 nodes). Node 1 runs
binderhub
API and Node 2 runsrepo2docker
and JupyterHub. When container image cleaning starts in Node 2, the is marked asSchedulingDisabled
. Without any other node able to runrepo2docker
and JupyterHub, the health API should return unhealth.cc @arnim
Steps to reproduce
Observed Output
Expected Output