diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-13 22:19:27 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-13 22:19:27 -0700 |
| commit | 2b5c4fbbf37e25adfa19b081c4adf5458b05b66c (patch) | |
| tree | 6175ca938f6430ca78d04b0b12ce58b8a20f5886 /weed/filesys/wfs.go | |
| parent | f282ed444baf6676c22df1b7c35964dd73d2c04a (diff) | |
| download | seaweedfs-2b5c4fbbf37e25adfa19b081c4adf5458b05b66c.tar.xz seaweedfs-2b5c4fbbf37e25adfa19b081c4adf5458b05b66c.zip | |
tiered caching
1/4 for small less than 1MB files. 1/4 for 1~4MB files, 1/2 for bigger than 4MB files
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 64c5d5aa6..b3772d683 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -84,7 +84,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { }, } if option.CacheSizeMB > 0 { - wfs.chunkCache = chunk_cache.NewChunkCache(256, option.CacheDir, option.CacheSizeMB, 4) + wfs.chunkCache = chunk_cache.NewChunkCache(256, option.CacheDir, option.CacheSizeMB) util.OnInterrupt(func() { wfs.chunkCache.Shutdown() }) |
