static boolean throttle(int recentHosts, int maxPerHour, Agent agent) {
        double rate = recentHosts / (double) WINDOW.toMillis();
        boolean throttle = (rate * Duration.ofHours(1).toMillis()) > maxPerHour;
        if (throttle) {
            LOG.warning(String.format("Throttling provisioning of new hosts by %s: %d hosts have been provisioned " +
                                      "in the past %s, which exceeds maximum rate of %d hosts/hour", agent,
                                      recentHosts, WINDOW, maxPerHour));
        }
        return throttle;
    }
Returns whether provisioning should be throttled at given instant
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningThrottler.java