config

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagEnableDynamic = "config.enable-dynamic"

	FlagMempoolRecheck         = "mempool.recheck"
	FlagMempoolForceRecheckGap = "mempool.force_recheck_gap"
	FlagMempoolSize            = "mempool.size"
	FlagMempoolFlush           = "mempool.flush"
	FlagMaxTxNumPerBlock       = "mempool.max_tx_num_per_block"
	FlagMaxGasUsedPerBlock     = "mempool.max_gas_used_per_block"
	FlagGasLimitBuffer         = "gas-limit-buffer"
	FlagEnableDynamicGp        = "enable-dynamic-gp"
	FlagDynamicGpWeight        = "dynamic-gp-weight"

	FlagCsTimeoutPropose        = "consensus.timeout_propose"
	FlagCsTimeoutProposeDelta   = "consensus.timeout_propose_delta"
	FlagCsTimeoutPrevote        = "consensus.timeout_prevote"
	FlagCsTimeoutPrevoteDelta   = "consensus.timeout_prevote_delta"
	FlagCsTimeoutPrecommit      = "consensus.timeout_precommit"
	FlagCsTimeoutPrecommitDelta = "consensus.timeout_precommit_delta"
)
View Source
const (
	FlagPprofAutoDump              = "pprof-auto-dump"
	FlagPprofCollectInterval       = "pprof-collect-interval"
	FlagPprofCpuTriggerPercentMin  = "pprof-cpu-trigger-percent-min"
	FlagPprofCpuTriggerPercentDiff = "pprof-cpu-trigger-percent-diff"
	FlagPprofCpuTriggerPercentAbs  = "pprof-cpu-trigger-percent-abs"
	FlagPprofMemTriggerPercentMin  = "pprof-mem-trigger-percent-min"
	FlagPprofMemTriggerPercentDiff = "pprof-mem-trigger-percent-diff"
	FlagPprofMemTriggerPercentAbs  = "pprof-mem-trigger-percent-abs"
	FlagPprofCoolDown              = "pprof-cool-down"
	FlagPprofAbciElapsed           = "pprof-trigger-abci-elapsed"
	FlagPprofUseCGroup             = "pprof-use-cgroup"
)
View Source
const FlagApollo = "config.apollo"

Variables

This section is empty.

Functions

func PprofDownload added in v0.19.6

func PprofDownload(context *server.Context)

PprofDownload auto dump pprof

func RegisterDynamicConfig

func RegisterDynamicConfig(logger log.Logger)

Types

type ApolloClient

type ApolloClient struct {
	Namespace string
	*agollo.Client
	// contains filtered or unexported fields
}

func NewApolloClient

func NewApolloClient(oecConf *OecConfig) *ApolloClient

func (*ApolloClient) LoadConfig

func (a *ApolloClient) LoadConfig() (loaded bool)

type CustomChangeListener

type CustomChangeListener struct {
	// contains filtered or unexported fields
}

func (*CustomChangeListener) OnChange

func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent)

func (*CustomChangeListener) OnNewestChange

func (c *CustomChangeListener) OnNewestChange(event *storage.FullChangeEvent)

type OecConfig

type OecConfig struct {
	// contains filtered or unexported fields
}

func GetOecConfig

func GetOecConfig() *OecConfig

func NewOecConfig

func NewOecConfig() *OecConfig

func (*OecConfig) GetCsTimeoutPrecommit added in v0.19.17

func (c *OecConfig) GetCsTimeoutPrecommit() time.Duration

func (*OecConfig) GetCsTimeoutPrecommitDelta added in v0.19.17

func (c *OecConfig) GetCsTimeoutPrecommitDelta() time.Duration

func (*OecConfig) GetCsTimeoutPrevote added in v0.19.17

func (c *OecConfig) GetCsTimeoutPrevote() time.Duration

func (*OecConfig) GetCsTimeoutPrevoteDelta added in v0.19.17

func (c *OecConfig) GetCsTimeoutPrevoteDelta() time.Duration

func (*OecConfig) GetCsTimeoutPropose added in v0.19.17

func (c *OecConfig) GetCsTimeoutPropose() time.Duration

func (*OecConfig) GetCsTimeoutProposeDelta added in v0.19.17

func (c *OecConfig) GetCsTimeoutProposeDelta() time.Duration

func (*OecConfig) GetDynamicGpWeight

func (c *OecConfig) GetDynamicGpWeight() int

func (*OecConfig) GetEnableDynamicGp

func (c *OecConfig) GetEnableDynamicGp() bool

func (*OecConfig) GetGasLimitBuffer

func (c *OecConfig) GetGasLimitBuffer() uint64

func (*OecConfig) GetIavlCacheSize added in v0.19.17

func (c *OecConfig) GetIavlCacheSize() int

func (*OecConfig) GetMaxGasUsedPerBlock added in v0.19.16

func (c *OecConfig) GetMaxGasUsedPerBlock() int64

func (*OecConfig) GetMaxTxNumPerBlock added in v0.19.16

func (c *OecConfig) GetMaxTxNumPerBlock() int64

func (*OecConfig) GetMempoolFlush added in v0.19.16

func (c *OecConfig) GetMempoolFlush() bool

func (*OecConfig) GetMempoolForceRecheckGap

func (c *OecConfig) GetMempoolForceRecheckGap() int64

func (*OecConfig) GetMempoolRecheck

func (c *OecConfig) GetMempoolRecheck() bool

func (*OecConfig) GetMempoolSize

func (c *OecConfig) GetMempoolSize() int

func (*OecConfig) SetCsTimeoutPrecommit added in v0.19.17

func (c *OecConfig) SetCsTimeoutPrecommit(value time.Duration)

func (*OecConfig) SetCsTimeoutPrecommitDelta added in v0.19.17

func (c *OecConfig) SetCsTimeoutPrecommitDelta(value time.Duration)

func (*OecConfig) SetCsTimeoutPrevote added in v0.19.17

func (c *OecConfig) SetCsTimeoutPrevote(value time.Duration)

func (*OecConfig) SetCsTimeoutPrevoteDelta added in v0.19.17

func (c *OecConfig) SetCsTimeoutPrevoteDelta(value time.Duration)

func (*OecConfig) SetCsTimeoutPropose added in v0.19.17

func (c *OecConfig) SetCsTimeoutPropose(value time.Duration)

func (*OecConfig) SetCsTimeoutProposeDelta added in v0.19.17

func (c *OecConfig) SetCsTimeoutProposeDelta(value time.Duration)

func (*OecConfig) SetDynamicGpWeight

func (c *OecConfig) SetDynamicGpWeight(value int)

func (*OecConfig) SetEnableDynamicGp

func (c *OecConfig) SetEnableDynamicGp(value bool)

func (*OecConfig) SetGasLimitBuffer

func (c *OecConfig) SetGasLimitBuffer(value uint64)

func (*OecConfig) SetIavlCacheSize added in v0.19.17

func (c *OecConfig) SetIavlCacheSize(value int)

func (*OecConfig) SetMaxGasUsedPerBlock added in v0.19.16

func (c *OecConfig) SetMaxGasUsedPerBlock(value int64)

func (*OecConfig) SetMaxTxNumPerBlock added in v0.19.16

func (c *OecConfig) SetMaxTxNumPerBlock(value int64)

func (*OecConfig) SetMempoolFlush added in v0.19.16

func (c *OecConfig) SetMempoolFlush(value bool)

func (*OecConfig) SetMempoolForceRecheckGap

func (c *OecConfig) SetMempoolForceRecheckGap(value int64)

func (*OecConfig) SetMempoolRecheck

func (c *OecConfig) SetMempoolRecheck(value bool)

func (*OecConfig) SetMempoolSize

func (c *OecConfig) SetMempoolSize(value int)

type PporfConfig added in v0.19.6

type PporfConfig struct {
	// contains filtered or unexported fields
}

func LoadPprofFromConfig added in v0.19.6

func LoadPprofFromConfig() *PporfConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL