Refining some stuff.

This commit is contained in:
smruthi2187
2018-02-08 13:58:44 -08:00
parent 818876dd08
commit 7752abaf05
9 changed files with 31 additions and 18 deletions
+1
View File
@@ -197,6 +197,7 @@ func StartExecutor(fissionNamespace string, functionNamespace string, port int)
signal.Notify(c, syscall.SIGTERM)
go func() {
<-c
log.Println("Recived SIGTERM : Dumping stack trace")
dumpStackTrace()
os.Exit(1)
}()
+7 -5
View File
@@ -520,27 +520,28 @@ func (gp *GenericPool) createPool() error {
"-cfgmap-dir", gp.sharedCfgMapPath,
gp.sharedMountPath},
ReadinessProbe: &apiv1.Probe{
InitialDelaySeconds: 5,
PeriodSeconds: 2,
InitialDelaySeconds: 1,
PeriodSeconds: 1,
FailureThreshold: 30,
Handler: apiv1.Handler{
HTTPGet: &apiv1.HTTPGetAction{
Path: "/healthz",
Port: intstr.IntOrString{
Type: intstr.Int,
IntVal: 8000, // TODO : Find out the correct port.
IntVal: 8000,
},
},
},
},
LivenessProbe: &apiv1.Probe{
InitialDelaySeconds: 5,
InitialDelaySeconds: 35,
PeriodSeconds: 5,
Handler: apiv1.Handler{
HTTPGet: &apiv1.HTTPGetAction{
Path: "/healthz",
Port: intstr.IntOrString{
Type: intstr.Int,
IntVal: 8000, // TODO : Find out the correct port.
IntVal: 8000,
},
},
},
@@ -554,6 +555,7 @@ func (gp *GenericPool) createPool() error {
}
depl, err := gp.kubernetesClient.ExtensionsV1beta1().Deployments(gp.namespace).Create(deployment)
if err != nil {
log.Printf("Error creating deployment for %s in kubernetes, err: %v", deployment.Name, err)
return err
}
gp.deployment = depl