Merge pull request #849 from colegleason/max-cluster-size
docs(cluster-size): remove outdated references to flag max-cluster-sizerelease-0.4
commit
ce1e19ae2f
|
@ -43,7 +43,6 @@ The full documentation is contained in the [API docs](https://github.com/coreos/
|
||||||
* `-cpuprofile` - The path to a file to output CPU profile data. Enables CPU profiling when present.
|
* `-cpuprofile` - The path to a file to output CPU profile data. Enables CPU profiling when present.
|
||||||
* `-data-dir` - The directory to store log and snapshot. Defaults to the current working directory.
|
* `-data-dir` - The directory to store log and snapshot. Defaults to the current working directory.
|
||||||
* `-max-result-buffer` - The max size of result buffer. Defaults to `1024`.
|
* `-max-result-buffer` - The max size of result buffer. Defaults to `1024`.
|
||||||
* `-max-cluster-size` - The max size of the cluster. Defaults to `9`.
|
|
||||||
* `-max-retry-attempts` - The max retry attempts when trying to join a cluster. Defaults to `3`.
|
* `-max-retry-attempts` - The max retry attempts when trying to join a cluster. Defaults to `3`.
|
||||||
* `-peer-addr` - The advertised public hostname:port for server communication. Defaults to `127.0.0.1:7001`.
|
* `-peer-addr` - The advertised public hostname:port for server communication. Defaults to `127.0.0.1:7001`.
|
||||||
* `-peer-bind-addr` - The listening hostname for server communication. Defaults to advertised IP.
|
* `-peer-bind-addr` - The listening hostname for server communication. Defaults to advertised IP.
|
||||||
|
|
|
@ -36,7 +36,7 @@ var newFlagNameLookup = map[string]string{
|
||||||
"d": "data-dir",
|
"d": "data-dir",
|
||||||
"m": "max-result-buffer",
|
"m": "max-result-buffer",
|
||||||
"r": "max-retry-attempts",
|
"r": "max-retry-attempts",
|
||||||
"maxsize": "max-cluster-size",
|
"maxsize": "cluster-active-size",
|
||||||
"clientCAFile": "ca-file",
|
"clientCAFile": "ca-file",
|
||||||
"clientCert": "cert-file",
|
"clientCert": "cert-file",
|
||||||
"clientKey": "key-file",
|
"clientKey": "key-file",
|
||||||
|
@ -45,6 +45,7 @@ var newFlagNameLookup = map[string]string{
|
||||||
"serverKey": "peer-key-file",
|
"serverKey": "peer-key-file",
|
||||||
"snapshotCount": "snapshot-count",
|
"snapshotCount": "snapshot-count",
|
||||||
"peer-heartbeat-timeout": "peer-heartbeat-interval",
|
"peer-heartbeat-timeout": "peer-heartbeat-interval",
|
||||||
|
"max-cluster-size": "cluster-active-size",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config represents the server configuration.
|
// Config represents the server configuration.
|
||||||
|
@ -297,6 +298,8 @@ func (c *Config) LoadFlags(arguments []string) error {
|
||||||
f.IntVar(&c.MaxRetryAttempts, "r", c.MaxRetryAttempts, "(deprecated)")
|
f.IntVar(&c.MaxRetryAttempts, "r", c.MaxRetryAttempts, "(deprecated)")
|
||||||
f.IntVar(&c.SnapshotCount, "snapshotCount", c.SnapshotCount, "(deprecated)")
|
f.IntVar(&c.SnapshotCount, "snapshotCount", c.SnapshotCount, "(deprecated)")
|
||||||
f.IntVar(&c.Peer.HeartbeatInterval, "peer-heartbeat-timeout", c.Peer.HeartbeatInterval, "(deprecated)")
|
f.IntVar(&c.Peer.HeartbeatInterval, "peer-heartbeat-timeout", c.Peer.HeartbeatInterval, "(deprecated)")
|
||||||
|
f.IntVar(&c.Cluster.ActiveSize, "max-cluster-size", c.Cluster.ActiveSize, "(deprecated)")
|
||||||
|
f.IntVar(&c.Cluster.ActiveSize, "maxsize", c.Cluster.ActiveSize, "(deprecated)")
|
||||||
// END DEPRECATED FLAGS
|
// END DEPRECATED FLAGS
|
||||||
|
|
||||||
if err := f.Parse(arguments); err != nil {
|
if err := f.Parse(arguments); err != nil {
|
||||||
|
|
|
@ -53,7 +53,6 @@ Other Options:
|
||||||
-max-result-buffer Max size of the result buffer.
|
-max-result-buffer Max size of the result buffer.
|
||||||
-max-retry-attempts Number of times a node will try to join a cluster.
|
-max-retry-attempts Number of times a node will try to join a cluster.
|
||||||
-retry-interval Seconds to wait between cluster join retry attempts.
|
-retry-interval Seconds to wait between cluster join retry attempts.
|
||||||
-max-cluster-size Maximum number of nodes in the cluster.
|
|
||||||
-snapshot=false Disable log snapshots
|
-snapshot=false Disable log snapshots
|
||||||
-snapshot-count Number of transactions before issuing a snapshot.
|
-snapshot-count Number of transactions before issuing a snapshot.
|
||||||
-cluster-active-size Number of active nodes in the cluster.
|
-cluster-active-size Number of active nodes in the cluster.
|
||||||
|
|
Loading…
Reference in New Issue