-
Notifications
You must be signed in to change notification settings - Fork 498
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
Update PD Config to v3.1.0 #1928
Changes from 8 commits
fc22e9d
a48d74a
aa08324
5842dfb
bb76db0
93f13bc
24d6cac
0a32933
cbe0713
6aacf61
5c16875
a009485
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -33,7 +33,6 @@ import ( | |||||
// PDConfig is the configuration of pd-server | ||||||
// +k8s:openapi-gen=true | ||||||
type PDConfig struct { | ||||||
|
||||||
// +optional | ||||||
ForceNewCluster *bool `json:"force-new-cluster,omitempty"` | ||||||
// Optional: Defaults to true | ||||||
|
@@ -179,9 +178,14 @@ type PDReplicationConfig struct { | |||||
// +optional | ||||||
LocationLabels StringSlice `toml:"location-labels,omitempty" json:"location-labels,omitempty"` | ||||||
// StrictlyMatchLabel strictly checks if the label of TiKV is matched with LocaltionLabels. | ||||||
// Immutable, change should be made through pd-ctl after cluster creation | ||||||
// Immutable, change should be made through pd-ctl after cluster creation. | ||||||
// Imported from v3.1.0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be as same as the tidb configuration |
||||||
// +optional | ||||||
StrictlyMatchLabel *bool `toml:"strictly-match-label,omitempty" json:"strictly-match-label,string,omitempty"` | ||||||
|
||||||
// When PlacementRules feature is enabled. MaxReplicas and LocationLabels are not uesd any more. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should keep the note as same as pd |
||||||
// +optional | ||||||
EnablePlacementRules *bool `toml:"enable-placement-rules" json:"enable-placement-rules,string,omitempty"` | ||||||
} | ||||||
|
||||||
// PDNamespaceConfig is to overwrite the global setting for specific namespace | ||||||
|
@@ -247,8 +251,9 @@ type PDScheduleConfig struct { | |||||
// +optional | ||||||
MaxStoreDownTime string `toml:"max-store-down-time,omitempty" json:"max-store-down-time,omitempty"` | ||||||
// LeaderScheduleLimit is the max coexist leader schedules. | ||||||
// Immutable, change should be made through pd-ctl after cluster creation | ||||||
// Optional: Defaults to 4 | ||||||
// Immutable, change should be made through pd-ctl after cluster creation. | ||||||
// Optional: Defaults to 4. | ||||||
// Imported from v3.1.0 | ||||||
// +optional | ||||||
LeaderScheduleLimit *uint64 `toml:"leader-schedule-limit,omitempty" json:"leader-schedule-limit,omitempty"` | ||||||
// RegionScheduleLimit is the max coexist region schedules. | ||||||
|
@@ -278,7 +283,8 @@ type PDScheduleConfig struct { | |||||
// +optional | ||||||
HotRegionCacheHitsThreshold *uint64 `toml:"hot-region-cache-hits-threshold,omitempty" json:"hot-region-cache-hits-threshold,omitempty"` | ||||||
// TolerantSizeRatio is the ratio of buffer size for balance scheduler. | ||||||
// Immutable, change should be made through pd-ctl after cluster creation | ||||||
// Immutable, change should be made through pd-ctl after cluster creation. | ||||||
// Imported from v3.1.0 | ||||||
// +optional | ||||||
TolerantSizeRatio *float64 `toml:"tolerant-size-ratio,omitempty" json:"tolerant-size-ratio,omitempty"` | ||||||
// | ||||||
|
@@ -341,6 +347,16 @@ type PDScheduleConfig struct { | |||||
// Only used to display | ||||||
// +optional | ||||||
SchedulersPayload map[string]string `toml:"schedulers-payload" json:"schedulers-payload,omitempty"` | ||||||
|
||||||
// EnableOneWayMerge is the option to enable one way merge. This means a Region can only be merged into the next region of it. | ||||||
// Imported from v3.1.0 | ||||||
// +optional | ||||||
EnableOneWayMerge *bool `toml:"enable-one-way-merge" json:"enable-one-way-merge,string,omitempty"` | ||||||
// EnableCrossTableMerge is the option to enable cross table merge. This means two Regions can be merged with different table IDs. | ||||||
// This option only works when key type is "table". | ||||||
// Imported from v3.1.0 | ||||||
// +optional | ||||||
EnableCrossTableMerge *bool `toml:"enable-cross-table-merge" json:"enable-cross-table-merge,string,omitempty"` | ||||||
} | ||||||
|
||||||
type PDSchedulerConfigs []PDSchedulerConfig | ||||||
|
@@ -392,6 +408,11 @@ type PDServerConfig struct { | |||||
// UseRegionStorage enables the independent region storage. | ||||||
// +optional | ||||||
UseRegionStorage *bool `toml:"use-region-storage,omitempty" json:"use-region-storage,string,omitempty"` | ||||||
// MetricStorage is the cluster metric storage. | ||||||
// Currently we use prometheus as metric storage, we may use PD/TiKV as metric storage later. | ||||||
// Imported from v3.1.0 | ||||||
// +optional | ||||||
MetricStorage *string `toml:"metric-storage" json:"metric-storage,omitempty"` | ||||||
} | ||||||
|
||||||
// +k8s:openapi-gen=true | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.