aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorstlpmo <hq-STLPMO@chinaunicom.cn>2019-11-11 09:15:17 +0800
committerstlpmo <hq-STLPMO@chinaunicom.cn>2019-11-11 09:15:17 +0800
commit802a0eb3fe115cd213d1238912fe431601e8f102 (patch)
tree168428721bbbdbee95900ff117e7d86f5c060807 /weed/command/master.go
parent1c8bed381068f3a3bd6858c774c39744f760db73 (diff)
downloadseaweedfs-802a0eb3fe115cd213d1238912fe431601e8f102.tar.xz
seaweedfs-802a0eb3fe115cd213d1238912fe431601e8f102.zip
move from cmd-line to scaffold
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 55e3409ed..d4c2b9b16 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -37,9 +37,6 @@ type MasterOptions struct {
disableHttp *bool
metricsAddress *string
metricsIntervalSec *int
-
- sequencerType *string
- etcdUrls *string
}
func init() {
@@ -58,9 +55,6 @@ func init() {
m.disableHttp = cmdMaster.Flag.Bool("disableHttp", false, "disable http requests, only gRPC operations are allowed.")
m.metricsAddress = cmdMaster.Flag.String("metrics.address", "", "Prometheus gateway address")
m.metricsIntervalSec = cmdMaster.Flag.Int("metrics.intervalSeconds", 15, "Prometheus push interval in seconds")
- m.sequencerType = cmdMaster.Flag.String("sequencerType", "memory", "Choose [memory|etcd] type for store the file sequence")
- m.etcdUrls = cmdMaster.Flag.String("etcdUrls", "",
- "when sequencerType=etcd, set etcdUrls for etcd cluster that store file sequence, example : http://127.0.0.1:2379,http://127.0.0.1:2389")
}
var cmdMaster = &Command{
@@ -84,6 +78,7 @@ func runMaster(cmd *Command, args []string) bool {
util.LoadConfiguration("security", false)
util.LoadConfiguration("master", false)
+ glog.V(0).Infof("%v", viper.GetViper().GetString("master.maintenance.scripts"))
runtime.GOMAXPROCS(runtime.NumCPU())
util.SetupProfiling(*masterCpuProfile, *masterMemProfile)