Skip to content

Commit

Permalink
revise Note
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Gao committed Mar 23, 2020
1 parent 24d6cac commit 0a32933
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
20 changes: 10 additions & 10 deletions docs/api-references/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4355,8 +4355,8 @@ <h3 id="pingcap.com/v1alpha1.PDReplicationConfig">PDReplicationConfig
<td>
<em>(Optional)</em>
<p>StrictlyMatchLabel strictly checks if the label of TiKV is matched with LocaltionLabels.
Immutable, change should be made through pd-ctl after cluster creation
imported from v3.1.0</p>
Immutable, change should be made through pd-ctl after cluster creation.
Imported from v3.1.0</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -4499,9 +4499,9 @@ <h3 id="pingcap.com/v1alpha1.PDScheduleConfig">PDScheduleConfig
<td>
<em>(Optional)</em>
<p>LeaderScheduleLimit is the max coexist leader schedules.
Immutable, change should be made through pd-ctl after cluster creation
Optional: Defaults to 4
imported from v3.1.0</p>
Immutable, change should be made through pd-ctl after cluster creation.
Optional: Defaults to 4.
Imported from v3.1.0</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -4585,8 +4585,8 @@ <h3 id="pingcap.com/v1alpha1.PDScheduleConfig">PDScheduleConfig
<td>
<em>(Optional)</em>
<p>TolerantSizeRatio is the ratio of buffer size for balance scheduler.
Immutable, change should be made through pd-ctl after cluster creation
imported from v3.1.0</p>
Immutable, change should be made through pd-ctl after cluster creation.
Imported from v3.1.0</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -4756,7 +4756,7 @@ <h3 id="pingcap.com/v1alpha1.PDScheduleConfig">PDScheduleConfig
<td>
<em>(Optional)</em>
<p>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</p>
Imported from v3.1.0</p>
</td>
</tr>
<tr>
Expand All @@ -4770,7 +4770,7 @@ <h3 id="pingcap.com/v1alpha1.PDScheduleConfig">PDScheduleConfig
<em>(Optional)</em>
<p>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 &ldquo;table&rdquo;.
imported from v3.1.0</p>
Imported from v3.1.0</p>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -4929,7 +4929,7 @@ <h3 id="pingcap.com/v1alpha1.PDServerConfig">PDServerConfig
<em>(Optional)</em>
<p>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</p>
Imported from v3.1.0</p>
</td>
</tr>
</tbody>
Expand Down
14 changes: 7 additions & 7 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ spec:
metric-storage:
description: 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
use PD/TiKV as metric storage later. Imported from v3.1.0
type: string
use-region-storage:
description: UseRegionStorage enables the independent region
Expand Down Expand Up @@ -1474,8 +1474,8 @@ spec:
strictly-match-label:
description: StrictlyMatchLabel strictly checks if the label
of TiKV is matched with LocaltionLabels. Immutable, change
should be made through pd-ctl after cluster creation imported
from v3.1.0
should be made through pd-ctl after cluster creation.
Imported from v3.1.0
type: string
type: object
schedule:
Expand Down Expand Up @@ -1525,12 +1525,12 @@ spec:
description: 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
key type is "table". Imported from v3.1.0
type: string
enable-one-way-merge:
description: 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
the next region of it. Imported from v3.1.0
type: string
high-space-ratio:
description: HighSpaceRatio is the highest usage ratio of
Expand Down Expand Up @@ -1558,7 +1558,7 @@ spec:
leader-schedule-limit:
description: 'LeaderScheduleLimit is the max coexist leader
schedules. Immutable, change should be made through pd-ctl
after cluster creation Optional: Defaults to 4 imported
after cluster creation. Optional: Defaults to 4. Imported
from v3.1.0'
format: int64
type: integer
Expand Down Expand Up @@ -1665,7 +1665,7 @@ spec:
tolerant-size-ratio:
description: TolerantSizeRatio is the ratio of buffer size
for balance scheduler. Immutable, change should be made
through pd-ctl after cluster creation imported from v3.1.0
through pd-ctl after cluster creation. Imported from v3.1.0
format: double
type: number
type: object
Expand Down
12 changes: 6 additions & 6 deletions pkg/apis/pingcap/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions pkg/apis/pingcap/v1alpha1/pd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ 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
// imported from v3.1.0
// Immutable, change should be made through pd-ctl after cluster creation.
// Imported from v3.1.0
// +optional
StrictlyMatchLabel *bool `toml:"strictly-match-label,omitempty" json:"strictly-match-label,string,omitempty"`

Expand Down Expand Up @@ -251,9 +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
// imported from v3.1.0
// 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.
Expand Down Expand Up @@ -283,8 +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
// imported from v3.1.0
// 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"`
//
Expand Down Expand Up @@ -349,12 +349,12 @@ type PDScheduleConfig struct {
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
// 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
// Imported from v3.1.0
// +optional
EnableCrossTableMerge *bool `toml:"enable-cross-table-merge" json:"enable-cross-table-merge,string,omitempty"`
}
Expand Down Expand Up @@ -410,7 +410,7 @@ type PDServerConfig struct {
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
// Imported from v3.1.0
// +optional
MetricStorage *string `toml:"metric-storage" json:"metric-storage,omitempty"`
}
Expand Down

0 comments on commit 0a32933

Please sign in to comment.