From 56c584431ddedd2cb4f2c4df5b0f025e9ac4db93 Mon Sep 17 00:00:00 2001 From: Rafal Skolasinski Date: Tue, 30 Jun 2020 12:29:29 +0100 Subject: [PATCH] fix notebook server_examples to not fail on MLFlow server --- notebooks/server_examples.ipynb | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/notebooks/server_examples.ipynb b/notebooks/server_examples.ipynb index b68d34f9a0..a1aca63d07 100644 --- a/notebooks/server_examples.ipynb +++ b/notebooks/server_examples.ipynb @@ -509,7 +509,31 @@ "spec:\n", " name: wines\n", " predictors:\n", - " - graph:\n", + " - componentSpecs:\n", + " - spec:\n", + " # We are setting high failureThreshold as installing conda dependencies\n", + " # can take long time and we want to avoid k8s killing the container prematurely\n", + " containers:\n", + " - name: classifier\n", + " livenessProbe:\n", + " initialDelaySeconds: 80\n", + " failureThreshold: 200\n", + " periodSeconds: 5\n", + " successThreshold: 1\n", + " httpGet:\n", + " path: /health/ping\n", + " port: http\n", + " scheme: HTTP\n", + " readinessProbe:\n", + " initialDelaySeconds: 80\n", + " failureThreshold: 200\n", + " periodSeconds: 5\n", + " successThreshold: 1\n", + " httpGet:\n", + " path: /health/ping\n", + " port: http\n", + " scheme: HTTP\n", + " graph:\n", " children: []\n", " implementation: MLFLOW_SERVER\n", " modelUri: gs://seldon-models/mlflow/elasticnet_wine\n",