class UnhealthyTasksLimitTracker implements QuotaTracker {

    @VisibleForTesting
    static int computeHealthyPoolSizeFromPercentage(Job<?> job, AvailabilityPercentageLimitDisruptionBudgetPolicy policy) {
        int jobDesiredSize = JobFunctions.getJobDesiredSize(job);
        if (jobDesiredSize == 0) {
            return 0;
        }

        double percentageOfHealthy = policy.getPercentageOfHealthyContainers();

        int minimumHealthyCount = (int) Math.ceil((percentageOfHealthy * jobDesiredSize) / 100);
        return Math.min(minimumHealthyCount, jobDesiredSize - 1);
    }

    private  UnhealthyTasksLimitTracker(Job<?> job,
                                       int minimumHealthyCount,
                                       V3JobOperations jobOperations,
                                       ContainerHealthService containerHealthService);

}