forked from google/distbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
traffic_config.proto
81 lines (71 loc) · 2.41 KB
/
traffic_config.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto2";
package distbench;
// Specifies how many servers there are of each type.
// The name of an individual instance is just $name/$intance_number,
// e.g. "search_leaf/0"
message ServiceSpec {
optional string name = 1;
optional int32 count = 2;
}
// Specifies how multiple services may be co-located on the same machine.
// By default each service is allocated a separate machine, if not mentioned.
message ServiceBundle {
repeated string services = 1;
}
// Defines how to construct a pool of protobufs to be used as requests or
// responses.
message PayloadSpec {
optional string name = 1;
optional int32 size = 4;
}
message RpcSpec {
optional string name = 1;
optional string client = 2;
optional string server = 3;
optional string request_payload_name = 4;
optional string response_payload_name = 5;
optional string fanout_filter = 6 [default = "all"];
optional int32 tracing_interval = 7;
}
message Iterations {
optional int32 max_iteration_count = 1;
optional int32 max_duration_us = 2;
optional int64 max_parallel_iterations = 3 [default = 1];
optional int64 open_loop_interval_ns = 4;
optional string open_loop_interval_distribution = 5 [default = "constant"];
}
message Action {
optional string name = 1;
repeated string dependencies = 2;
optional Iterations iterations = 3;
oneof action {
string rpc_name = 4;
string action_list_name = 5;
}
}
message ActionList {
optional string name = 1;
repeated string action_names = 2;
}
message DistributedSystemDescription {
repeated ServiceSpec services = 1;
map<string, ServiceBundle> node_service_bundles = 2;
repeated PayloadSpec payload_descriptions = 3;
repeated RpcSpec rpc_descriptions = 4;
repeated Action actions = 5;
repeated ActionList action_lists = 6;
optional string default_protocol = 7 [default = "grpc_async_callback"];
}