async def _check_pod_quotas(self):
        """Compare number of active pods to available quota"""
        user_pods, build_pods = await self._get_pods()

        n_user_pods = len(user_pods)
        n_build_pods = len(build_pods)

        quota = self.settings["launch_quota"].total_quota
        total_pods = n_user_pods + n_build_pods
        usage = {
            "total_pods": total_pods,
            "build_pods": n_build_pods,
            "user_pods": n_user_pods,
            "quota": quota,
            "ok": total_pods <= quota if quota is not None else True,
            # The pod quota is treated as a soft quota
            # Being above quota doesn't mean the service is unhealthy
            "_ignore_failure": True,
        }
        return usage
Compare number of active pods to available quota
binderhub/health.py