How can I ensure that all pods in an EKS cluster are stressed during an AWS FIS EKS CPU Stress experiment?

0

We’re operating a microservice on an EKS cluster with a pod range of 2 to 10. We’ve been conducting an AWS FIS EKS CPU Stress experiment using the aws:eks:pod-cpu-stress action.

However, we’ve noticed that only the initial 2 pods are being stressed by the CPU. When the pod count scales up to 10, the newly created pods are not stressed because the target resolution completes before the CPU stress starts. How can we ensure that all 10 pods undergo CPU stress during the experiment?

已提問 5 個月前檢視次數 376 次
1 個回答
0

As FIS resolves the targets before starting the task (as you correctly mention) And the targets for this specific action are individual pods, I don't think FIS can currently support stress testing including autoscaled containers.

AWS FIS identifies all targets at the start of the experiment, before starting any of the actions in the actions set. AWS FIS uses the target resources that it selects for the entire experiment.

My workaround for running a load test on the max number of pods would be to fix the replicas to 10 before starting the test, or run a first short test to "warm up" the deployment before launching your full test.

AWS
已回答 5 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南