Skip to content

Commit

Permalink
Merge pull request containerd#549 from hangvane/amplify_io_snap
Browse files Browse the repository at this point in the history
daemon: add `amplify_io` support in nydusd configuration file
  • Loading branch information
imeoer authored Nov 3, 2023
2 parents 985c185 + 7cd7f0b commit bd47e03
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/daemonconfig/daemonconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func TestLoadConfig(t *testing.T) {
"digest_validate": true,
"iostats_files": true,
"enable_xattr": true,
"amplify_io": 1048576,
"fs_prefetch": {
"enable": true,
"threads_count": 10,
Expand Down
1 change: 1 addition & 0 deletions config/daemonconfig/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type FuseDaemonConfig struct {
EnableXattr bool `json:"enable_xattr,omitempty"`
AccessPattern bool `json:"access_pattern,omitempty"`
LatestReadFiles bool `json:"latest_read_files,omitempty"`
AmplifyIo int `json:"amplify_io,omitempty"`
FSPrefetch `json:"fs_prefetch,omitempty"`
// (experimental) The nydus daemon could cache more data to increase hit ratio when enabled the warmup feature.
Warmup uint64 `json:"warmup,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions misc/snapshotter/nydusd-config-localfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"digest_validate": false,
"iostats_files": false,
"enable_xattr": true,
"amplify_io": 1048576,
"fs_prefetch": {
"enable": true,
"threads_count": 2
Expand Down
1 change: 1 addition & 0 deletions misc/snapshotter/nydusd-config.fusedev.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"digest_validate": false,
"iostats_files": false,
"enable_xattr": true,
"amplify_io": 1048576,
"fs_prefetch": {
"enable": true,
"threads_count": 8,
Expand Down
1 change: 1 addition & 0 deletions pkg/stargz/testdata/config/nydus.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"digest_validate": true,
"iostats_files": true,
"enable_xattr": true,
"amplify_io": 1048576,
"fs_prefetch": {
"enable": true,
"threads_count": 10,
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/k8s/snapshotter-cri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ data:
"digest_validate": false,
"iostats_files": false,
"enable_xattr": true,
"amplify_io": 1048576,
"fs_prefetch": {
"enable": true,
"threads_count": 10,
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/k8s/snapshotter-kubeconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ data:
"digest_validate": false,
"iostats_files": false,
"enable_xattr": true,
"amplify_io": 1048576,
"fs_prefetch": {
"enable": true,
"threads_count": 10,
Expand Down
3 changes: 2 additions & 1 deletion tests/nydusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ var configTpl = `
"merging_size": 131072
},
"digest_validate": {{.DigestValidate}},
"enable_xattr": true
"enable_xattr": true,
"amplify_io": 1048576
}
`

Expand Down

0 comments on commit bd47e03

Please sign in to comment.