public void resume(int percentage) {
        int size = groups.size();
        int consumersToResume = (int) Math.ceil(size * (percentage / 100.0));
        consumersToResume = Math.max(1, Math.min(size, consumersToResume)); // Ensure at least 1 and at most size
        
        LOGGER.info("Resuming {}% of consumers ({} out of {})", percentage, consumersToResume, size);
        
        for (int i = 0; i < consumersToResume; i++) {
            groups.get(i).resume();
        }
    }
Resume only a percentage of consumer groups

@param percentage The percentage of consumers to resume (0-100)
tools/src/main/java/org/apache/kafka/tools/automq/perf/ConsumerService.java