Skip to content

Commit

Permalink
Update configure-placement-rules.md (#11019)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiancai authored Oct 26, 2022
1 parent 633eb87 commit bb50c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure-placement-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ Add a separate rule for the row key of the table and limit `count` to `2`. Use `

### Scenario 4: Add two follower replicas for a table in the Beijing node with high-performance disks

The following example shows a more complicated `label_constraints` configuration. In this rule, the replicas must be placed in the `bj1` or `bj2` machine room, and the disk type must not be `ssd`.
The following example shows a more complicated `label_constraints` configuration. In this rule, the replicas must be placed in the `bj1` or `bj2` machine room, and the disk type must be `nvme`.

{{< copyable "" >}}

Expand All @@ -446,7 +446,7 @@ The following example shows a more complicated `label_constraints` configuration
"count": 2,
"label_constraints": [
{"key": "zone", "op": "in", "values": ["bj1", "bj2"]},
{"key": "disk", "op": "notIn", "values": ["ssd"]}
{"key": "disk", "op": "in", "values": ["nvme"]}
],
"location_labels": ["host"]
}
Expand Down

0 comments on commit bb50c58

Please sign in to comment.