diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-06-05 09:56:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 09:56:46 -0700 |
| commit | 03c2f0350904bc2e69faf5f9a552092826df9ae3 (patch) | |
| tree | 81e34d79471de665ee4b0afcba907b8fa7ebcfc9 /weed/server | |
| parent | ebd17597416eab819f78685b25ebb5ced56c6adc (diff) | |
| parent | 2410ffbd79c36d35846e65d7502ca95fcf370d84 (diff) | |
| download | seaweedfs-03c2f0350904bc2e69faf5f9a552092826df9ae3.tar.xz seaweedfs-03c2f0350904bc2e69faf5f9a552092826df9ae3.zip | |
Merge pull request #1351 from ekozlov-search/master
Set volumes ReadOnly if low free disk space
Diffstat (limited to 'weed/server')
| -rw-r--r-- | weed/server/volume_server.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 2d716edc1..62fbc19a7 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -35,7 +35,7 @@ type VolumeServer struct { func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, port int, publicUrl string, - folders []string, maxCounts []int, + folders []string, maxCounts []int, minFreeSpacePercent []float32, needleMapKind storage.NeedleMapType, masterNodes []string, pulseSeconds int, dataCenter string, rack string, @@ -68,8 +68,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024, } vs.SeedMasterNodes = masterNodes - vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, vs.needleMapKind) - + vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercent, vs.needleMapKind) vs.guard = security.NewGuard(whiteList, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec) handleStaticResources(adminMux) |
