Skip to content

Commit

Permalink
Add JSON config examples to store.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
blakehatch committed Jun 5, 2024
1 parent e524bbc commit a9f04ca
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 0 deletions.
123 changes: 123 additions & 0 deletions nativelink-config/examples/redis.json
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"
}
}
}
]
}
Loading

0 comments on commit a9f04ca

Please sign in to comment.