private static String formatRate(double bytesPerSecond) {
        String[] units = {" B/s", "KB/s", "MB/s", "GB/s", "TB/s"};
        int unitIndex = 0;

        while (bytesPerSecond >= 1024 && unitIndex < units.length - 1) {
            bytesPerSecond /= 1024;
            unitIndex++;
        }

        return String.format("%6.2f %s", bytesPerSecond, units[unitIndex]);
    }
The maximum request size allowed by the regulator.
Any request larger than this size should be downscaled to this size.
s3stream/src/main/java/com/automq/stream/s3/operator/TrafficRegulator.java