diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-13 00:03:47 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-13 00:03:47 -0700 |
| commit | b771fefa374fe237ff1317bbd03a9297a52191e3 (patch) | |
| tree | 9856be72db18e6ae32523640cd3a9e3ca61fbeeb /weed/command/filer.go | |
| parent | 0a851ec00b455c72b405503f6f1f41728b15962e (diff) | |
| parent | 8908810376e671b34262295f1ad558ca43db58c2 (diff) | |
| download | seaweedfs-b771fefa374fe237ff1317bbd03a9297a52191e3.tar.xz seaweedfs-b771fefa374fe237ff1317bbd03a9297a52191e3.zip | |
Merge branch 'master' into sub
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index 83e2abdac..7e636974f 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -33,7 +33,7 @@ var ( ) type FilerOptions struct { - masters map[string]pb.ServerAddress + masters *pb.ServerDiscovery mastersString *string ip *string bindIp *string @@ -65,7 +65,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.mastersString = cmdFiler.Flag.String("master", "localhost:9333", "comma-separated master servers or a single DNS SRV record of at least 1 master server, prepended with dnssrv+") 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") @@ -208,7 +208,7 @@ func runFiler(cmd *Command, args []string) bool { }(startDelay) } - f.masters = pb.ServerAddresses(*f.mastersString).ToAddressMap() + f.masters = pb.ServerAddresses(*f.mastersString).ToServiceDiscovery() f.startFiler() |
