Skip to content

Commit

Permalink
[DOCS] Fix typo in web_api_balancer_chinese.md (opensource4you#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyparrot authored Jun 5, 2023
1 parent f7306b4 commit 3d1ebd9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/web_server/web_api_balancer_chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ POST /balancer

參數

| 名稱 | 說明 | 預設值 |
|----------------|-------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| clusterCosts | (必填) 指定要優化的目標以及對應權重 ||
| timeout | (選填) 指定產生時間 | 3s |
| balancer | (選填) 欲使用的負載優化計劃搜尋演算法 | org.astraea.common.balancer.algorithms.GreedyBalancer |
| balancerConfig | (選填) 搜尋演算法的實作細節參數,此為一個 JSON Object 內含一系列的 key/value String ||
| moveCosts | (必填) 指定要計算的各項搬移成本 | "org.astraea.common.cost.ReplicaLeaderCost", "org.astraea.common.cost.RecordSizeCost", "org.astraea.common.cost.ReplicaNumberCost", "org.astraea.common.cost.ReplicaLeaderSizeCost" |
| costConfig | (選填) 針對各個搬移成本做限制,讓,此為一個 JSON Object 內含一系列的 key/value String ||
| 名稱 | 說明 | 預設值 |
|----------------|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| clusterCosts | (必填) 指定要優化的目標以及對應權重 ||
| timeout | (選填) 指定產生時間 | 3s |
| balancer | (選填) 欲使用的負載優化計劃搜尋演算法 | org.astraea.common.balancer.algorithms.GreedyBalancer |
| balancerConfig | (選填) 搜尋演算法的實作細節參數,此為一個 JSON Object 內含一系列的 key/value String ||
| moveCosts | (必填) 指定要計算的各項搬移成本 | "org.astraea.common.cost.ReplicaLeaderCost", "org.astraea.common.cost.RecordSizeCost", "org.astraea.common.cost.ReplicaNumberCost", "org.astraea.common.cost.ReplicaLeaderSizeCost" |
| costConfig | (選填) 針對各個搬移成本做限制,此為一個 JSON Object 內含一系列的 key/value String ||

官方記錄的 balancerConfig:

Expand Down

0 comments on commit 3d1ebd9

Please sign in to comment.