diff options
| author | chrislu <chris.lu@gmail.com> | 2022-05-01 21:59:16 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-05-01 21:59:16 -0700 |
| commit | 94635e9b5c81d6afa1b54f20f5d2d2595bba2322 (patch) | |
| tree | 9e6eb799c480603598b020e4f6cdddaa21f555af /weed/command/filer.go | |
| parent | 4bd6bea4295cd238278b20f18a15664fa3465008 (diff) | |
| download | seaweedfs-94635e9b5c81d6afa1b54f20f5d2d2595bba2322.tar.xz seaweedfs-94635e9b5c81d6afa1b54f20f5d2d2595bba2322.zip | |
filer: add filer group
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 4dbc04a0c..0935feb76 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -37,6 +37,7 @@ type FilerOptions struct { port *int portGrpc *int publicPort *int + filerGroup *string collection *string defaultReplicaPlacement *string disableDirListing *bool @@ -59,6 +60,7 @@ type FilerOptions struct { func init() { cmdFiler.Run = runFiler // break init cycle f.mastersString = cmdFiler.Flag.String("master", "localhost:9333", "comma-separated master servers") + f.filerGroup = cmdFiler.Flag.String("filerGroup", "", "share metadata with other filers in the same filerGroup") f.collection = cmdFiler.Flag.String("collection", "", "all data will be stored in this default collection") f.ip = cmdFiler.Flag.String("ip", util.DetectedHostAddress(), "filer server http listen ip address") f.bindIp = cmdFiler.Flag.String("ip.bind", "", "ip address to bind to. If empty, default to same as -ip option.") @@ -201,6 +203,7 @@ func (fo *FilerOptions) startFiler() { fs, nfs_err := weed_server.NewFilerServer(defaultMux, publicVolumeMux, &weed_server.FilerOption{ Masters: fo.masters, + FilerGroup: *fo.filerGroup, Collection: *fo.collection, DefaultReplication: *fo.defaultReplicaPlacement, DisableDirListing: *fo.disableDirListing, |
