public List<Integer> readProvisionIndices(int count) {
        if (count < 1)
            throw new IllegalArgumentException("count must be a positive integer, was " + count);

        int firstIndex = (int) provisionIndexCounter.add(count) - count;
        return IntStream.range(0, count)
                        .mapToObj(i -> firstIndex + i)
                        .toList();
    }
Returns a given number of unique provision indices
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDb.java