From c883eab4d7a3c4efc490b757d4d13ee43f100744 Mon Sep 17 00:00:00 2001 From: TommyLike Date: Thu, 9 May 2019 19:46:23 +0800 Subject: [PATCH] Updat tf related resource files --- example/integrations/tensorflow/Dockerfile | 5 +++-- example/integrations/tensorflow/tf-example.yaml | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/example/integrations/tensorflow/Dockerfile b/example/integrations/tensorflow/Dockerfile index 5821747c08f..53f91625fcb 100644 --- a/example/integrations/tensorflow/Dockerfile +++ b/example/integrations/tensorflow/Dockerfile @@ -1,6 +1,7 @@ -#NOTE: the build process would change during developing. +# NOTE: the build process would change during developing, +# the commit ID when first creating the image: 62c833f806db621943a6cf8195657b9d0fa67d93 (master) FROM python:2.7 -MAINTAINER volcano +MAINTAINER volcano RUN apt-get update --fix-missing \ && apt-get install -y git \ && apt-get clean \ diff --git a/example/integrations/tensorflow/tf-example.yaml b/example/integrations/tensorflow/tf-example.yaml index 05bc67d781c..92d004e45bf 100644 --- a/example/integrations/tensorflow/tf-example.yaml +++ b/example/integrations/tensorflow/tf-example.yaml @@ -27,14 +27,15 @@ # 2019-04-23 11:10:25.552861: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:215] # Initialize GrpcChannelCache for job worker -> {0 -> tensorflow-benchmark-worker-0.tensorflow-benchmark:2222} # -# **NOTES**: This example may take about an hour to finish. +# **NOTES**: This example may take about an hour to finish. When running multiple jobs, please ensure enough resource +# is guaranteed for each of the worker pods. apiVersion: batch.volcano.sh/v1alpha1 kind: Job metadata: name: tensorflow-benchmark spec: - minAvailable: 2 + minAvailable: 3 schedulerName: kube-batch plugins: env: [] @@ -65,7 +66,7 @@ spec: resources: {} workingDir: /opt/tf-benchmarks/scripts/tf_cnn_benchmarks restartPolicy: OnFailure - - replicas: 1 + - replicas: 2 name: worker policies: - event: TaskCompleted