Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Jan 20, 2022
1 parent c8c2b98 commit 8d926f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions pd-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,18 @@ Configuration items related to scheduling
+ Controls whether to use Joint Consensus for replica scheduling. If this configuration is disabled, PD schedules one replica at a time.
+ Default value: `true`

### `hot-regions-write-interval`
### `hot-regions-write-interval` <span class="version-mark">New in v5.4.0</span>

+ The time interval for PD to store hot Region information.
+ The time interval at which PD stores hot Region information.
+ Default value: `10m`

> **Note:**
>
>Information about the hot Region is updated every three minutes. If the interval is set to less than three minutes, updates during the interval might be meaningless.
> The information about hot Regions is updated every three minutes. If the interval is set to less than three minutes, updates during the interval might be meaningless.
### `hot-regions-reserved-days`
### `hot-regions-reserved-days` <span class="version-mark">New in v5.4.0</span>

+ How many days the hot Region information is retained.
+ Specifies how many days the hot Region information is retained.
+ Default value: `7`

## `replication`
Expand Down
4 changes: 2 additions & 2 deletions pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Usage:
>> hot read // Display hot spot for the read operation
>> hot write // Display hot spot for the write operation
>> hot store // Display hot spot for all the read and write operations
>> hot history 1629294000000 1631980800000 // Display history hot spot for the specified period (milliseconds)
>> hot history 1629294000000 1631980800000 // Display history hot spot for the specified period (milliseconds). 1629294000000 is the start time and 1631980800000 is the end time.
{
"history_hot_region": [
{
Expand All @@ -397,7 +397,7 @@ Usage:
...
]
}
>> hot history 1629294000000 1631980800000 hot_region_type read region_id 1,2,3 store_id 1,2,3 peer_id 1,2,3 is_leader true is_learner true // Display history hot spot for the specified period with more conditions
>> hot history 1629294000000 1631980800000 hot_region_type read region_id 1,2,3 store_id 1,2,3 peer_id 1,2,3 is_leader true is_learner true // Display history hotspot for the specified period with more conditions
{
"history_hot_region": [
{
Expand Down

0 comments on commit 8d926f7

Please sign in to comment.