mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
use "cluster.raft.{ps,add,remove}"
This commit is contained in:
parent
d2fe0fae33
commit
931cb9e581
|
@ -16,14 +16,14 @@ type commandRaftServerAdd struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandRaftServerAdd) Name() string {
|
func (c *commandRaftServerAdd) Name() string {
|
||||||
return "raft.server.add"
|
return "cluster.raft.add"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandRaftServerAdd) Help() string {
|
func (c *commandRaftServerAdd) Help() string {
|
||||||
return `add a server to the raft cluster
|
return `add a server to the raft cluster
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
raft.server.add -id <server_name> -address <server_host:port> -voter
|
cluster.raft.add -id <server_name> -address <server_host:port> -voter
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,13 +16,13 @@ type commandRaftClusterPs struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandRaftClusterPs) Name() string {
|
func (c *commandRaftClusterPs) Name() string {
|
||||||
return "raft.cluster.ps"
|
return "cluster.raft.ps"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandRaftClusterPs) Help() string {
|
func (c *commandRaftClusterPs) Help() string {
|
||||||
return `check current raft cluster status
|
return `check current raft cluster status
|
||||||
|
|
||||||
raft.cluster.ps
|
cluster.raft.ps
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,14 +16,14 @@ type commandRaftServerRemove struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandRaftServerRemove) Name() string {
|
func (c *commandRaftServerRemove) Name() string {
|
||||||
return "raft.server.remove"
|
return "cluster.raft.remove"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandRaftServerRemove) Help() string {
|
func (c *commandRaftServerRemove) Help() string {
|
||||||
return `remove a server from the raft cluster
|
return `remove a server from the raft cluster
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
raft.server.remove -id <server_name>
|
cluster.raft.remove -id <server_name>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue