forked from buildfarm/buildfarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.config.example
131 lines (108 loc) · 3.22 KB
/
server.config.example
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# an instance specification
instances {
name: "default_memory_instance"
# the digest function for this instance, required
# to match out of band between the client and server
# since resource names must be determined on the client
# for a valid upload
digest_function: SHA256
# the implicit type specifier for this instance
# a memory instance is volatile and has no persistent
# footprint. all bulk storage is in terms of the CAS
# with proxy maps for action cache/operations
memory_instance_config: {
# Operations#listOperations request limits
list_operations_default_page_size: 1024
list_operations_max_page_size: 16384
# ContentAddressableStorage#getTree request limits
tree_default_page_size: 1024
tree_max_page_size: 16384
# the maximum time after dispatch of an operation until
# the worker must poll to indicate continued work, after
# which the operation will be requeued
operation_poll_timeout: {
seconds: 30
nanos: 0
}
# the delay after an action timeout before an action is
# automatically considered to have failed with no results
# and a timeout exceeded failure condition
operation_completed_delay: {
seconds: 10
nanos: 0
}
cas_config: {
memory: {
# limit for CAS total content size in bytes
max_size_bytes: 1073741824 # 1024 * 1024 * 1024
}
}
action_cache_config: {
# retain a local map of actionKeys and retain actions in CAS
delegate_cas: {}
}
# an imposed action-key-invariant timeout used in the unspecified timeout case
default_action_timeout: {
seconds: 600
nanos: 0
}
# a limit on the action timeout specified in the action, above which
# the operation will report a failed result immediately
maximum_action_timeout: {
seconds: 3600
nanos: 0
}
}
}
# another instance, provided to indicate multiplexing configs
instances {
name: "another_memory_instance"
# digest functions may be different between instances
digest_function: SHA1
memory_instance_config: {
list_operations_default_page_size: 1024
list_operations_max_page_size: 16384
tree_default_page_size: 1024
tree_max_page_size: 16384
operation_poll_timeout: {
seconds: 30
nanos: 0
}
operation_completed_delay: {
seconds: 10
nanos: 0
}
cas_config: {
grpc: {
# instance name for CAS resources, default is empty
instance_name: "internal"
# target suitable for netty channel
target: "cas-host.cloud.org:5000"
}
}
action_cache_config: {
grpc: {
# instance name for AC requests, default is empty
instance_name: "lru-ac"
# target suitable for netty channel
target: "ac-host.cloud.org:5001"
}
}
default_action_timeout: {
seconds: 600
nanos: 0
}
maximum_action_timeout: {
seconds: 3600
nanos: 0
}
}
}
# the listening port of the buildfarm grpc server
port: 8980
# the instance to which all requests with an empty/missing
# instance name are routed
#
# this can be empty as well, to indicate that there is no
# default instance
default_instance_name: "default_memory_instance"