Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Config to Use Filesystem #669

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading