diff options
| author | stlpmo <hq-STLPMO@chinaunicom.cn> | 2019-11-04 16:45:38 +0800 |
|---|---|---|
| committer | stlpmo <hq-STLPMO@chinaunicom.cn> | 2019-11-05 15:45:25 +0800 |
| commit | 1c8bed381068f3a3bd6858c774c39744f760db73 (patch) | |
| tree | d88db0a9105d0dc506c92c88954e9ef04b686bcd /weed/command/master.go | |
| parent | 364f7200ad78d83cff5f213965546548227d5da2 (diff) | |
| download | seaweedfs-1c8bed381068f3a3bd6858c774c39744f760db73.tar.xz seaweedfs-1c8bed381068f3a3bd6858c774c39744f760db73.zip | |
delete the var etcdClient and comments
refactor the code
add sequencer cmd-line
delete nerver used codes
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index 3d33f4f7a..55e3409ed 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -37,6 +37,9 @@ type MasterOptions struct { disableHttp *bool metricsAddress *string metricsIntervalSec *int + + sequencerType *string + etcdUrls *string } func init() { @@ -55,6 +58,9 @@ 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{ |
