private static void persistWarnMsg(Boolean persist, Activity activity, String msg) {
        if (persist != null && persist) {
            WorkflowLogger.persist(activity, msg);
        }
    }
Auto scaling is enabled when
Min, max and cpuThreshold are provided,
Min is less than max and
CPU threshold matches the {@value #CPU_THRESHOLD_REGEX}
@param replicas
@param persistMsg whether to persist warn messages
@return whether auto scaling is enabled
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/utils/ReplicasUtil.java