-
Notifications
You must be signed in to change notification settings - Fork 124
/
worker.json
73 lines (73 loc) · 1.99 KB
/
worker.json
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
{
"stores": {
"GRPC_LOCAL_STORE": {
// Note: This file is used to test GRPC store.
"grpc": {
"instance_name": "main",
"endpoints": [
{"address": "grpc://${CAS_ENDPOINT:-127.0.0.1}:50051"}
],
"store_type": "cas"
}
},
"GRPC_LOCAL_AC_STORE": {
// Note: This file is used to test GRPC store.
"grpc": {
"instance_name": "main",
"endpoints": [
{"address": "grpc://${CAS_ENDPOINT:-127.0.0.1}:50051"}
],
"store_type": "ac"
}
},
"WORKER_FAST_SLOW_STORE": {
"fast_slow": {
"fast": {
"filesystem": {
"content_path": "~/.cache/nativelink/data-worker-test/content_path-cas",
"temp_path": "~/.cache/nativelink/data-worker-test/tmp_path-cas",
"eviction_policy": {
// 10gb.
"max_bytes": 10000000000,
}
}
},
"slow": {
"ref_store": {
"name": "GRPC_LOCAL_STORE",
}
}
}
}
},
"workers": [{
"local": {
"worker_api_endpoint": {
"uri": "grpc://${SCHEDULER_ENDPOINT:-127.0.0.1}:50061",
},
"cas_fast_slow_store": "WORKER_FAST_SLOW_STORE",
"upload_action_result": {
"ac_store": "GRPC_LOCAL_AC_STORE",
},
"work_directory": "~/.cache/nativelink/work",
"platform_properties": {
"cpu_count": {
"query_cmd": "nproc"
},
"OSFamily": {
"values": ["Linux"]
},
"container-image": {
"values": [
// WARNING: Treat the string below as nothing more than a raw string
// that is matched by the scheduler against the value specified in
// the `exec_properties` of the corresponding platform at
// `local-remote-execution/generated-cc/config/BUILD`.
"${NATIVELINK_WORKER_PLATFORM:-error_undefined_platform}"
]
}
}
}
}],
"servers": []
}