Skip to content

Commit

Permalink
update enableSchedule (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshao90 committed Jan 22, 2024
1 parent 5588a2b commit 047f83e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions docs/src/cn/operation/horaemeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ curl --location 'http://127.0.0.1:8080/api/v1/clusters' \
"name":"testCluster",
"nodeCount":3,
"ShardTotal":9,
"enableScheduler":true,
"enableSchedule":true,
"topologyType":"static"
}'
```
Expand All @@ -133,20 +133,20 @@ curl --location --request PUT 'http://127.0.0.1:8080/api/v1/clusters/{NewCluster
curl --location 'http://127.0.0.1:8080/api/v1/clusters'
```

- 修改 DeployMode
- 修改 `enableSchedule`

```
curl --location --request PUT 'http://127.0.0.1:8080/api/v1/cluster/{ClusterName}/deployMode' \
curl --location --request PUT 'http://127.0.0.1:8080/api/v1/clusters/{ClusterName}/enableSchedule' \
--header 'Content-Type: application/json' \
--data '{
"enable":true
}'
```

- 查询 DeployMode
- 查询 `enableSchedule`

```
curl --location 'http://127.0.0.1:8080/api/v1/cluster/{ClusterName}/deployMode'
curl --location 'http://127.0.0.1:8080/api/v1/clusters/{ClusterName}/enableSchedule'
```

- 更新限流器
Expand Down
10 changes: 4 additions & 6 deletions docs/src/en/operation/horaemeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ curl --location 'http://127.0.0.1:8080/api/v1/clusters' \
"name":"testCluster",
"nodeCount":3,
"shardTotal":9,
"enableScheduler":true,
"topologyType":"static"
}'
```
Expand All @@ -122,7 +121,6 @@ curl --location --request PUT 'http://127.0.0.1:8080/api/v1/clusters/{NewCluster
--data '{
"nodeCount":28,
"shardTotal":128,
"enableSchedule":true,
"topologyType":"dynamic"
}'
```
Expand All @@ -133,20 +131,20 @@ curl --location --request PUT 'http://127.0.0.1:8080/api/v1/clusters/{NewCluster
curl --location 'http://127.0.0.1:8080/api/v1/clusters'
```

- Update DeployMode
- Update `enableSchedule`

```
curl --location --request PUT 'http://127.0.0.1:8080/api/v1/cluster/{ClusterName}/deployMode' \
curl --location --request PUT 'http://127.0.0.1:8080/api/v1/clusters/{ClusterName}/enableSchedule' \
--header 'Content-Type: application/json' \
--data '{
"enable":true
}'
```

- Query DeployMode
- Query `enableSchedule`

```
curl --location 'http://127.0.0.1:8080/api/v1/cluster/{ClusterName}/deployMode'
curl --location 'http://127.0.0.1:8080/api/v1/clusters/{ClusterName}/enableSchedule'
```

- Update flow limiter
Expand Down

0 comments on commit 047f83e

Please sign in to comment.