diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-07-28 03:58:13 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-07-28 03:58:13 -0700 |
| commit | 8afd8d35b3230f6fc286967e8aa9641bd8c1460c (patch) | |
| tree | 8c134e958969a7aec6337c8c7bab120009006941 /weed/command/server.go | |
| parent | 2c6cf72e73861f3bdefaba28189fa2b15fa26d9e (diff) | |
| download | seaweedfs-8afd8d35b3230f6fc286967e8aa9641bd8c1460c.tar.xz seaweedfs-8afd8d35b3230f6fc286967e8aa9641bd8c1460c.zip | |
master: followers can also lookup and redirect
improve scalability
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index d39abd9ae..1c6439edc 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -5,7 +5,6 @@ import ( "os" "runtime" "runtime/pprof" - "strconv" "strings" "time" @@ -122,14 +121,13 @@ func runServer(cmd *Command, args []string) bool { *isStartingFiler = true } - master := *serverIp + ":" + strconv.Itoa(*masterOptions.port) masterOptions.ip = serverIp masterOptions.ipBind = serverBindIp - filerOptions.masters = &master + filerOptions.masters = masterOptions.peers filerOptions.ip = serverBindIp serverOptions.v.ip = serverIp serverOptions.v.bindIp = serverBindIp - serverOptions.v.masters = &master + serverOptions.v.masters = masterOptions.peers serverOptions.v.idleConnectionTimeout = serverTimeout serverOptions.v.dataCenter = serverDataCenter serverOptions.v.rack = serverRack |
