-
I want to make a simulation in which there will be multiple pods and jobs with different behavior for different timestamps, and then mesure the resource allocation of the nodes at multiple timestamps. For the pod and job lifecycle I've tried to experiment using the stage CR, however after some days trying I still can't figure it out how to make the pods change state in the simulator. Is it possible to change the state of pods differently for various timestamps using the simulator? And if so, how can I do it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can refer to this docs, that is pod-create.yaml -> pod-init-container-running.yaml -> pod-init-container-completed.yaml -> pod-ready.yaml, I think it may be the effect you want if I understand correctly So basically, the |
Beta Was this translation helpful? Give feedback.
-
@wzshiming Thanks for explaining the stage configuration, following what you've shown, I think I can simulate the desired behavior using this stage template and specifying the delay of each pod for each stage using a annotation such as '.metadata.annotations["pod-create.stage.kwok.x-k8s.io/delay"]' However, trying to replicate the stage demo, the stage configuration seem to not be altering the behavior of pods like the demo shows Is there anything I am doing wrong? |
Beta Was this translation helpful? Give feedback.
You can refer to this docs, that is pod-create.yaml -> pod-init-container-running.yaml -> pod-init-container-completed.yaml -> pod-ready.yaml, I think it may be the effect you want if I understand correctly
So basically, the
selector
matches the state, and then how long does itdelay
, and then applies thenext
action, that's astage
, and then you need to connect eachstage
step by step. theselector
matches thenext
of the laststage
action as connect.