Revert "config: document config options"

This reverts commit a38c69d7844a4e4a9d54051470977c7446fc8e57.
This commit is contained in:
Frank Schroeder 2017-10-23 10:08:31 +02:00
parent ff42a00ef1
commit 83bfe0d223
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 39 additions and 70 deletions

View File

@ -453,40 +453,21 @@ type RuntimeConfig struct {
Datacenter string Datacenter string
NodeName string NodeName string
AdvertiseAddrLAN *net.IPAddr AdvertiseAddrLAN *net.IPAddr
AdvertiseAddrWAN *net.IPAddr AdvertiseAddrWAN *net.IPAddr
BindAddr *net.IPAddr BindAddr *net.IPAddr
Bootstrap bool
// Bootstrap is used to bring up the first Consul server, and BootstrapExpect int
// permits that node to elect itself leader CAFile string
// CAPath string
// hcl: bootstrap = (true|false) CertFile string
// flag: -bootstrap CheckUpdateInterval time.Duration
Bootstrap bool Checks []*structs.CheckDefinition
ClientAddrs []*net.IPAddr
// BootstrapExpect tries to automatically bootstrap the Consul cluster, DNSAddrs []net.Addr
// by withholding peers until enough servers join. DNSPort int
// DataDir string
// hcl: bootstrap_expect = int DevMode bool
// flag: -bootstrap-expect=int
BootstrapExpect int
CAFile string
CAPath string
CertFile string
CheckUpdateInterval time.Duration
Checks []*structs.CheckDefinition
ClientAddrs []*net.IPAddr
DNSAddrs []net.Addr
DNSPort int
DataDir string
// DevMode enables a fast-path mode of operation to bring up an in-memory
// server with minimal configuration. Useful for developing Consul.
//
// flag: -dev
DevMode bool
DisableAnonymousSignature bool DisableAnonymousSignature bool
DisableCoordinates bool DisableCoordinates bool
DisableHostNodeID bool DisableHostNodeID bool
@ -504,43 +485,31 @@ type RuntimeConfig struct {
// todo(fs): rename to ACLEnableReplication // todo(fs): rename to ACLEnableReplication
EnableACLReplication bool EnableACLReplication bool
EnableDebug bool EnableDebug bool
EnableScriptChecks bool EnableScriptChecks bool
EnableSyslog bool EnableSyslog bool
EnableUI bool EnableUI bool
EncryptKey string EncryptKey string
EncryptVerifyIncoming bool EncryptVerifyIncoming bool
EncryptVerifyOutgoing bool EncryptVerifyOutgoing bool
HTTPAddrs []net.Addr HTTPAddrs []net.Addr
HTTPPort int HTTPPort int
HTTPSAddrs []net.Addr HTTPSAddrs []net.Addr
HTTPSPort int HTTPSPort int
KeyFile string KeyFile string
LeaveDrainTime time.Duration LeaveDrainTime time.Duration
LeaveOnTerm bool LeaveOnTerm bool
LogLevel string LogLevel string
NodeID types.NodeID NodeID types.NodeID
NodeMeta map[string]string NodeMeta map[string]string
NonVotingServer bool NonVotingServer bool
PidFile string PidFile string
RPCAdvertiseAddr *net.TCPAddr RPCAdvertiseAddr *net.TCPAddr
RPCBindAddr *net.TCPAddr RPCBindAddr *net.TCPAddr
RPCHoldTimeout time.Duration RPCHoldTimeout time.Duration
RPCMaxBurst int
// RPCRateLimit and RPCMaxBurst control how frequently RPC calls are allowed
// to happen. In any large enough time interval, rate limiter limits the
// rate to RPCRate tokens per second, with a maximum burst size of
// RPCMaxBurst events. As a special case, if RPCRate == Inf (the infinite
// rate), RPCMaxBurst is ignored.
//
// See https://en.wikipedia.org/wiki/Token_bucket for more about token
// buckets.
//
// hcl: limit { rpc_rate = (float64|MaxFloat64) rpc_max_burst = int }
RPCRateLimit rate.Limit
RPCMaxBurst int
RPCProtocol int RPCProtocol int
RPCRateLimit rate.Limit
RaftProtocol int RaftProtocol int
ReconnectTimeoutLAN time.Duration ReconnectTimeoutLAN time.Duration
ReconnectTimeoutWAN time.Duration ReconnectTimeoutWAN time.Duration