robusta-chaos icon indicating copy to clipboard operation
robusta-chaos copied to clipboard

[Feature Request:] Pod Kill Experiment

Open 26tanishabanik opened this issue 2 years ago • 6 comments

What: Write a pod kill experiment for some deployment Why: It tests deployment replica availability and recovery

26tanishabanik avatar Dec 21 '22 17:12 26tanishabanik

Hey, if you want to take a shot at this, we have a tutorial on writing actions at https://docs.robusta.dev/master/tutorials/my-first-custom-action.html

aantn avatar Dec 21 '22 19:12 aantn

Hey, if you want to take a shot at this, we have a tutorial on writing actions at https://docs.robusta.dev/master/tutorials/my-first-custom-action.html

Won't the pod kill experiment be similar to the node kill experiment?

26tanishabanik avatar Dec 21 '22 19:12 26tanishabanik

Yes, although that depends on what you're trying to simulate. If you just want to kill the pod gracefully you can do something like pod.delete() and that's it.

On Wed, Dec 21, 2022 at 9:19 PM Tanisha Banik @.***> wrote:

Hey, if you want to take a shot at this, we have a tutorial on writing actions at https://docs.robusta.dev/master/tutorials/my-first-custom-action.html

Won't the pod kill experiment be similar to the node kill experiment https://github.com/robusta-dev/robusta-chaos/blob/master/robusta_chaos/node_killer.py ?

— Reply to this email directly, view it on GitHub https://github.com/robusta-dev/robusta-chaos/issues/1#issuecomment-1361975241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYUB5EZYRF3ARDMRJLXFDWONJ2TANCNFSM6AAAAAATF3R2NI . You are receiving this because you commented.Message ID: @.***>

aantn avatar Dec 21 '22 19:12 aantn

Yes, although that depends on what you're trying to simulate. If you just want to kill the pod gracefully you can do something like pod.delete() and that's it. On Wed, Dec 21, 2022 at 9:19 PM Tanisha Banik @.> wrote: Hey, if you want to take a shot at this, we have a tutorial on writing actions at https://docs.robusta.dev/master/tutorials/my-first-custom-action.html Won't the pod kill experiment be similar to the node kill experiment https://github.com/robusta-dev/robusta-chaos/blob/master/robusta_chaos/node_killer.py ? — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYUB5EZYRF3ARDMRJLXFDWONJ2TANCNFSM6AAAAAATF3R2NI . You are receiving this because you commented.Message ID: @.>

Yah, I just want to delete some pod and the hypothesis is the deployment will scale up another pod to maintain the replica count, that's the experiment

26tanishabanik avatar Dec 21 '22 19:12 26tanishabanik

What will be the trigger for deleting the pod?

arikalon1 avatar Dec 21 '22 19:12 arikalon1

What will be the trigger for deleting the pod?

Just random delete. I haven't thought of any trigger yet, you may suggest, if you have any ideas @arikalon1

26tanishabanik avatar Dec 21 '22 19:12 26tanishabanik