• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7    http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16syntax = "proto3";
17
18import "tensorflow/core/protobuf/config.proto";
19import "tensorflow/core/protobuf/cluster.proto";
20
21package tensorflow;
22option cc_enable_arenas = true;
23option java_outer_classname = "ServerProtos";
24option java_multiple_files = true;
25option java_package = "org.tensorflow.distruntime";
26option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf";
27// Defines the configuration of a single TensorFlow server.
28message ServerDef {
29  // The cluster of which this server is a member.
30  ClusterDef cluster = 1;
31
32  // The name of the job of which this server is a member.
33  //
34  // NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
35  // that matches this name.
36  string job_name = 2;
37
38  // The task index of this server in its job.
39  //
40  // NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
41  // and a mapping in its `tasks` field for this index.
42  int32 task_index = 3;
43
44  // The default configuration for sessions that run on this server.
45  ConfigProto default_session_config = 4;
46
47  // The protocol to be used by this server.
48  //
49  // Acceptable values include: "grpc", "grpc+verbs".
50  string protocol = 5;
51}
52