-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSON config examples to store.rs
- Loading branch information
1 parent
e524bbc
commit a9f04ca
Showing
2 changed files
with
377 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"stores": { | ||
"CAS_FAST_SLOW_STORE": { | ||
"fast_slow": { | ||
"fast": { | ||
"redis_store": { | ||
"addresses": [ | ||
"redis://127.0.0.1:6379/", // Master node 1 | ||
"redis://127.0.0.1:6380/", // Master node 2 | ||
"redis://127.0.0.1:6381/", // Master node 3 | ||
"redis://127.0.0.1:6382/", // Master node 3 | ||
"redis://127.0.0.1:6383/", // Master node 3 | ||
"redis://127.0.0.1:6384/" // Master node 3 | ||
//"redis://172.18.0.2:6379/" // Master node 3 | ||
// "redis://172.18.0.3:6379/", // Master node 3 | ||
// "redis://172.18.0.4:6379/" // Master node 3 | ||
] | ||
} | ||
}, | ||
"slow": { | ||
"filesystem": { | ||
"content_path": "/tmp/nativelink/data/content_path-index", | ||
"temp_path": "/tmp/nativelink/data/tmp_path-index", | ||
"eviction_policy": { | ||
"max_bytes": 120000000000 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"AC_FAST_SLOW_STORE": { | ||
"fast_slow": { | ||
"fast": { | ||
"filesystem": { | ||
"content_path": "/tmp/nativelink/data/content_path-index", | ||
"temp_path": "/tmp/nativelink/data/tmp_path-index", | ||
"eviction_policy": { | ||
"max_bytes": 120000000000 | ||
} | ||
} | ||
}, | ||
"slow": { | ||
"filesystem": { | ||
"content_path": "/tmp/nativelink/data/content_path-ac", | ||
"temp_path": "/tmp/nativelink/data/tmp_path-ac", | ||
"eviction_policy": { | ||
"max_bytes": 5000000000 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"AC_MAIN_STORE": { | ||
"completeness_checking": { | ||
"backend": { | ||
"ref_store": { | ||
"name": "AC_FAST_SLOW_STORE" | ||
} | ||
}, | ||
"cas_store": { | ||
"ref_store": { | ||
"name": "CAS_MAIN_STORE" | ||
} | ||
} | ||
} | ||
}, | ||
"CAS_MAIN_STORE": { | ||
"existence_cache": { | ||
"backend": { | ||
"compression": { | ||
"compression_algorithm": { | ||
"lz4": {} | ||
}, | ||
"backend": { | ||
"ref_store": { | ||
"name": "CAS_FAST_SLOW_STORE" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"listener": { | ||
"http": { | ||
"socket_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" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"listener": { | ||
"http": { | ||
"socket_address": "0.0.0.0:50061" | ||
} | ||
}, | ||
"services": { | ||
"experimental_prometheus": { | ||
"path": "/metrics" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.