From 376d75bba12d1c07b4b7b2eba89e03c662b1966e Mon Sep 17 00:00:00 2001 From: topahadzi Date: Fri, 1 Dec 2023 17:53:02 +0700 Subject: [PATCH] fix parallel node target --- chaoslib/litmus/vira/node-restart/lib/node-restart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaoslib/litmus/vira/node-restart/lib/node-restart.go b/chaoslib/litmus/vira/node-restart/lib/node-restart.go index 6d1cd8a..fc53a6a 100644 --- a/chaoslib/litmus/vira/node-restart/lib/node-restart.go +++ b/chaoslib/litmus/vira/node-restart/lib/node-restart.go @@ -147,7 +147,7 @@ func restartNode(targetNodeList []string, experimentsDetails *experimentTypes.Ex } for _, appNode := range targetNodeList { log.Infof("[Inject]: Restarting the %v node", appNode) - command := exec.Command("kubectl", "node_shell", appNode, "--", "shutdown", "-r", "+1") + command := exec.Command("kubectl", "node_shell", appNode, "--", "shutdown", "-r", "+3") if err := common.RunCLICommands(command, "", fmt.Sprintf("{node: %s}", appNode), "failed to restart the target node", cerrors.ErrorTypeChaosInject); err != nil { return err }