refine failure rotation setting and define default value of 1k
add failures_max_count info to readme