diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-20 17:41:39 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-20 17:41:39 -0700 |
| commit | 6c92fa349d0050111e51ac1ec093458f8f5d4d9f (patch) | |
| tree | 5e28a243e7777c7809838cd7c2a1ec71b03bb229 /weed/command/filer.go | |
| parent | 86528bf97340447692c2c1eba3d2d7f1f9551e42 (diff) | |
| download | seaweedfs-6c92fa349d0050111e51ac1ec093458f8f5d4d9f.tar.xz seaweedfs-6c92fa349d0050111e51ac1ec093458f8f5d4d9f.zip | |
filer: support default rack
fix https://github.com/chrislusf/seaweedfs/issues/1546
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index e885eafc4..793401fe3 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -36,6 +36,7 @@ type FilerOptions struct { maxMB *int dirListingLimit *int dataCenter *string + rack *string enableNotification *bool disableHttp *bool cipher *bool @@ -59,6 +60,7 @@ func init() { f.maxMB = cmdFiler.Flag.Int("maxMB", 32, "split files larger than the limit") f.dirListingLimit = cmdFiler.Flag.Int("dirListLimit", 100000, "limit sub dir listing size") f.dataCenter = cmdFiler.Flag.String("dataCenter", "", "prefer to write to volumes in this data center") + f.rack = cmdFiler.Flag.String("rack", "", "prefer to write to volumes in this rack") f.disableHttp = cmdFiler.Flag.Bool("disableHttp", false, "disable http request, only gRpc operations are allowed") f.cipher = cmdFiler.Flag.Bool("encryptVolumeData", false, "encrypt data on volume servers") f.peers = cmdFiler.Flag.String("peers", "", "all filers sharing the same filer store in comma separated ip:port list") @@ -141,6 +143,7 @@ func (fo *FilerOptions) startFiler() { MaxMB: *fo.maxMB, DirListingLimit: *fo.dirListingLimit, DataCenter: *fo.dataCenter, + Rack: *fo.rack, DefaultLevelDbDir: defaultLevelDbDirectory, DisableHttp: *fo.disableHttp, Host: *fo.ip, |
