PDConfig

(Appears on: PDSpec)

PDConfig is the configuration of pd-server

FieldDescription
force-new-cluster
bool
(Optional)
enable-grpc-gateway
bool
(Optional)

Optional: Defaults to true

lease
int64
(Optional)

LeaderLease time, if leader doesn’t update its TTL in etcd after lease time, etcd will expire the leader key and other servers can campaign the leader again. Etcd only supports seconds TTL, so here is second too. Optional: Defaults to 3

log
PDLogConfig
(Optional)

Log related config.

log-file
string
(Optional)

Backward compatibility.

log-level
string
(Optional)
tso-save-interval
string
(Optional)

TsoSaveInterval is the interval to save timestamp. Optional: Defaults to 3s

metric
PDMetricConfig
(Optional)
schedule
PDScheduleConfig
(Optional)

Immutable, change should be made through pd-ctl after cluster creation

replication
PDReplicationConfig
(Optional)

Immutable, change should be made through pd-ctl after cluster creation

namespace
map[string]github.com/pingcap/tidb-operator/pkg/apis/pingcap/v1alpha1.PDNamespaceConfig
(Optional)
pd-server
PDServerConfig
(Optional)
cluster-version
string
(Optional)
quota-backend-bytes
string
(Optional)

QuotaBackendBytes Raise alarms when backend size exceeds the given quota. 0 means use the default quota. the default size is 2GB, the maximum is 8GB.

auto-compaction-mode
string
(Optional)

AutoCompactionMode is either ‘periodic’ or ‘revision’. The default value is ‘periodic’.

auto-compaction-retention-v2
string
(Optional)

AutoCompactionRetention is either duration string with time unit (e.g. ‘5m’ for 5-minute), or revision unit (e.g. ‘5000’). If no time unit is provided and compaction mode is ‘periodic’, the unit defaults to hour. For example, ‘5’ translates into 5-hour. The default retention is 1 hour. Before etcd v3.3.x, the type of retention is int. We add ‘v2’ suffix to make it backward compatible.

tikv-interval
string
(Optional)

TickInterval is the interval for etcd Raft tick.

election-interval
string
(Optional)

ElectionInterval is the interval for etcd Raft election.

enable-prevote
bool
(Optional)

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. Optional: Defaults to true

security
PDSecurityConfig
(Optional)
label-property
PDLabelPropertyConfig
(Optional)
namespace-classifier
string
(Optional)

NamespaceClassifier is for classifying stores/regions into different namespaces. Optional: Defaults to true

dashboard
DashboardConfig
(Optional)