-
Notifications
You must be signed in to change notification settings - Fork 109
/
local-storage-cas.json
100 lines (100 loc) · 2.49 KB
/
local-storage-cas.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
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
// This configuration will place objects in various folders in
// `~/.cache/turbo-cache`. It will store all data on disk and
// allows for restarts of the underlying service. It is optimized
// so objects are compressed, deduplicated and uses some in-memory
// optimizations for certain hot paths.
{
"stores": {
"CAS_MAIN_STORE": {
"verify": {
"backend": {
"compression": {
"compression_algorithm": {
"LZ4": {}
},
"backend": {
"filesystem": {
"content_path": "~/.cache/turbo-cache/content_path-cas",
"temp_path": "~/.cache/turbo-cache/tmp_path-cas",
"eviction_policy": {
// 10gb.
"max_bytes": 10000000000,
}
}
}
}
},
"verify_size": true,
"verify_hash": true
}
},
"AC_MAIN_STORE": {
"filesystem": {
"content_path": "~/.cache/turbo-cache/content_path-ac",
"temp_path": "~/.cache/turbo-cache/tmp_path-ac",
"eviction_policy": {
// 500mb.
"max_bytes": 500000000,
}
}
}
},
"servers": [{
"listen_address": "0.0.0.0:50051",
"services": {
"cas": {
"main": {
"cas_store": "CAS_MAIN_STORE"
}
},
"ac": {
"main": {
"ac_store": "AC_MAIN_STORE"
}
},
"capabilities": {},
"bytestream": {
"cas_stores": {
"main": "CAS_MAIN_STORE",
},
// According to https://github.com/grpc/grpc.github.io/issues/371 16KiB - 64KiB is optimal.
"max_bytes_per_stream": 64000, // 64kb.
}
}
}, {
// Only publish metrics on a private port.
"listen_address": "0.0.0.0:50061",
"services": {
"prometheus": {
"path": "/metrics"
}
}
},
{
"listen_address": "0.0.0.0:50071",
"tls": {
"cert_file": "/root/local_rootca.crt",
"key_file": "/root/key.pem"
},
"services": {
"cas": {
"main": {
"cas_store": "CAS_MAIN_STORE"
}
},
"ac": {
"main": {
"ac_store": "AC_MAIN_STORE"
}
},
"capabilities": {},
"bytestream": {
"cas_stores": {
"main": "CAS_MAIN_STORE",
},
// According to https://github.com/grpc/grpc.github.io/issues/371 16KiB - 64KiB is optimal.
"max_bytes_per_stream": 64000, // 64kb.
}
}
}]
}