kube-monkey
kube-monkey copied to clipboard
Extend mtbf time range
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"
Look good
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