• 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
18package tensorflow;
19
20import "tensorflow/core/protobuf/cluster.proto";
21import "tensorflow/core/protobuf/config.proto";
22import "tensorflow/core/protobuf/device_filters.proto";
23
24option cc_enable_arenas = true;
25option java_outer_classname = "ServerProtos";
26option java_multiple_files = true;
27option java_package = "org.tensorflow.distruntime";
28option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto";
29
30// Defines the configuration of a single TensorFlow server.
31message ServerDef {
32  // The cluster of which this server is a member.
33  ClusterDef cluster = 1;
34
35  // The name of the job of which this server is a member.
36  //
37  // NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
38  // that matches this name.
39  string job_name = 2;
40
41  // The task index of this server in its job.
42  //
43  // NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
44  // and a mapping in its `tasks` field for this index.
45  int32 task_index = 3;
46
47  // The default configuration for sessions that run on this server.
48  ConfigProto default_session_config = 4;
49
50  // The protocol to be used by this server.
51  //
52  // Acceptable values include: "grpc", "grpc+verbs".
53  string protocol = 5;
54
55  // The server port. If not set, then we identify the port from the job_name.
56  int32 port = 6;
57
58  // Device filters for remote tasks in the cluster.
59  // NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
60  ClusterDeviceFilters cluster_device_filters = 7;
61}
62