Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd-ctl, config: adjust the output of pd config #8695

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ type Config struct {
AutoCompactionRetention string `toml:"auto-compaction-retention" json:"auto-compaction-retention-v2"`

// TickInterval is the interval for etcd Raft tick.
TickInterval typeutil.Duration `toml:"tick-interval"`
TickInterval typeutil.Duration `toml:"tick-interval" json:"tick-interval"`
// ElectionInterval is the interval for etcd Raft election.
ElectionInterval typeutil.Duration `toml:"election-interval"`
ElectionInterval typeutil.Duration `toml:"election-interval" json:"election-interval"`
// Prevote is true to enable Raft Pre-Vote.
// If enabled, Raft runs an additional election phase
// to check whether it would get enough votes to win
// an election, thus minimizing disruptions.
PreVote bool `toml:"enable-prevote"`
PreVote bool `toml:"enable-prevote" json:"enable-prevote"`

MaxRequestBytes uint `toml:"max-request-bytes" json:"max-request-bytes"`

Expand All @@ -149,12 +149,12 @@ type Config struct {
LabelProperty LabelPropertyConfig `toml:"label-property" json:"label-property"`

// For all warnings during parsing.
WarningMsgs []string
WarningMsgs []string `json:"-"`

DisableStrictReconfigCheck bool
DisableStrictReconfigCheck bool `json:"-"`

HeartbeatStreamBindInterval typeutil.Duration
LeaderPriorityCheckInterval typeutil.Duration
HeartbeatStreamBindInterval typeutil.Duration `json:"-"`
LeaderPriorityCheckInterval typeutil.Duration `json:"-"`

Logger *zap.Logger `json:"-"`
LogProps *log.ZapProperties `json:"-"`
Expand Down
Loading