Commit f896c0a1 authored by 黎博's avatar 黎博

修改健康检查时间

parent 84d7fc69
...@@ -904,7 +904,7 @@ public class K8sService { ...@@ -904,7 +904,7 @@ public class K8sService {
commandList.add("/home/quant_group/readyCheck.sh"); commandList.add("/home/quant_group/readyCheck.sh");
execAction.setCommand(commandList); execAction.setCommand(commandList);
livenessProbe.setExec(execAction); livenessProbe.setExec(execAction);
livenessProbe.setInitialDelaySeconds(300); livenessProbe.setInitialDelaySeconds(600);
livenessProbe.setSuccessThreshold(1); livenessProbe.setSuccessThreshold(1);
livenessProbe.setFailureThreshold(5); livenessProbe.setFailureThreshold(5);
livenessProbe.setPeriodSeconds(60); livenessProbe.setPeriodSeconds(60);
...@@ -913,10 +913,10 @@ public class K8sService { ...@@ -913,10 +913,10 @@ public class K8sService {
//readinessProbe //readinessProbe
Probe readinessProbe = new Probe(); Probe readinessProbe = new Probe();
readinessProbe.setExec(execAction); readinessProbe.setExec(execAction);
readinessProbe.setInitialDelaySeconds(60); readinessProbe.setInitialDelaySeconds(30);
readinessProbe.setTimeoutSeconds(5); readinessProbe.setTimeoutSeconds(5);
readinessProbe.setPeriodSeconds(10); readinessProbe.setPeriodSeconds(5);
readinessProbe.setFailureThreshold(30); readinessProbe.setFailureThreshold(3);
container.setReadinessProbe(readinessProbe); container.setReadinessProbe(readinessProbe);
containerList.add(container); containerList.add(container);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment