Skip to content

Commit

Permalink
Basic config updated. (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusSorealheis committed Feb 20, 2024
1 parent 0639a59 commit f4d9db3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install --git https://github.com/TraceMachina/nativelink --tag v0.2.0
```

### 鈿欙笍 Configuration
### 鈿欙笍 Configure and 馃 Start NativeLink

The `nativelink` executable reads a JSON file as it's only parameter,
`--config`. See [`nativelink-config`](./nativelink-config/examples/basic_cas.json)
Expand All @@ -36,11 +36,8 @@ To grab the example in your current working directory, run:

```bash
curl -O https://raw.githubusercontent.com/TraceMachina/nativelink/main/nativelink-config/examples/basic_cas.json
```

### Start NativeLink

```bash
### you can modify the example above to replace the filesystem store with the memory store if you favor speed over data durability.
nativelink basic_cas.json
```

Expand Down
8 changes: 5 additions & 3 deletions nativelink-config/examples/basic_cas.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"stores": {
"AC_MAIN_STORE": {
"memory": {
"filesystem": {
"content_path": "/tmp/nativelink/data-worker-test/content_path-ac",
"temp_path": "/tmp/nativelink/data-worker-test/tmp_path-ac",
"eviction_policy": {
// 100mb.
"max_bytes": 100000000,
// 1gb.
"max_bytes": 1000000000,
}
}
},
Expand Down

0 comments on commit f4d9db3

Please sign in to comment.