diff options
| author | Chris Lu <chris.lu@uber.com> | 2019-03-21 16:00:46 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@uber.com> | 2019-03-21 16:00:46 -0700 |
| commit | a3490b600cad88ced4ea9bf3672b8566f207f57f (patch) | |
| tree | 158a0fa50350132687ae842e2ba10cd4e9b72397 /weed/command/master.go | |
| parent | 531add52c27f2754c36626f1efeab15029a47e29 (diff) | |
| download | seaweedfs-a3490b600cad88ced4ea9bf3672b8566f207f57f.tar.xz seaweedfs-a3490b600cad88ced4ea9bf3672b8566f207f57f.zip | |
weed filer, weed master: add option to disable http
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index 4207a331c..15d1171e0 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -47,7 +47,7 @@ var ( mMaxCpu = cmdMaster.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs") garbageThreshold = cmdMaster.Flag.Float64("garbageThreshold", 0.3, "threshold to vacuum and reclaim spaces") masterWhiteListOption = cmdMaster.Flag.String("whiteList", "", "comma separated Ip addresses having write permission. No limit if empty.") - httpReadOnly = cmdMaster.Flag.Bool("httpReadOnly", false, "disable http operations, only gRPC operations are allowed.") + disableHttp = cmdMaster.Flag.Bool("disableHttp", false, "disable http requests, only gRPC operations are allowed.") masterCpuProfile = cmdMaster.Flag.String("cpuprofile", "", "cpu profile output file") masterMemProfile = cmdMaster.Flag.String("memprofile", "", "memory profile output file") @@ -79,7 +79,7 @@ func runMaster(cmd *Command, args []string) bool { *volumeSizeLimitMB, *volumePreallocate, *mpulse, *defaultReplicaPlacement, *garbageThreshold, masterWhiteList, - *httpReadOnly, + *disableHttp, ) listeningAddress := *masterBindIp + ":" + strconv.Itoa(*mport) |
