kube-monkey icon indicating copy to clipboard operation
kube-monkey copied to clipboard

Extend mtbf time range

Open misgod-yy opened this issue 5 years ago • 2 comments

This PR change the defination of "kube-monkey/mtbf". When we use kube-monkey to kill pod in k8s cluster, we find it too slow to generate a failure, because the label 'kube-monkey/mtbf' only support to generate one failure in days. So I extend the time range of this label, to support failure in minutes, hours, and calculate mean time of the specified hour/minute.

available usage as follows: kube-monkey/mtbf: "4h" kube-monkey/mtbf: "30m"

misgod-yy avatar Jan 02 '20 12:01 misgod-yy

Look good

minhnguyenvan95 avatar Oct 29 '20 04:10 minhnguyenvan95

Hello, im experiencing the same issue/limitation. Is there a solution to Extend mtbf time range? configuring time frame as "minutes" will display the following in the kube-monkey pod log 0126 15:46:47.423502 1 eligible_deployments.go:29] Skipping eligible v1.Deployment rec-services-rigger because of error: strconv.Atoi: parsing "5m": invalid syntax W0126 15:46:47.427740 1 eligible_statefulsets.go:29] Skipping eligible v1.StatefulSet rec because of error: strconv.Atoi: parsing "5m": invalid syntax

yakovyohaev avatar Jan 26 '22 15:01 yakovyohaev