add max_rpm_per_host

Maybe it's better to move this function to `utils` module?