2020-04-10 10:55:51 +00:00
|
|
|
# YAO-scheduler
|
|
|
|
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
2020-06-29 15:24:33 +00:00
|
|
|
#### ResourcePool
|
2020-04-10 10:55:51 +00:00
|
|
|
**GetHeartCounter**
|
|
|
|
|
|
|
|
```
|
|
|
|
?action=get_counter
|
|
|
|
```
|
|
|
|
|
|
|
|
**GetJobTaskStatusJHL**
|
|
|
|
|
|
|
|
```
|
|
|
|
?action=jhl_job_status&job=
|
2020-04-12 02:44:32 +00:00
|
|
|
```
|
|
|
|
|
2020-06-29 15:24:33 +00:00
|
|
|
#### Scheduler
|
2020-04-13 10:26:40 +00:00
|
|
|
**EnableSchedule**
|
|
|
|
```
|
|
|
|
?action=debug_enable
|
|
|
|
```
|
|
|
|
|
|
|
|
**DisableSchedule**
|
|
|
|
```
|
|
|
|
?action=debug_disable
|
2020-04-13 15:53:38 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**UpdateMaxParallelism**
|
|
|
|
```
|
|
|
|
?action=debug_update_parallelism¶llelism=5
|
2020-04-30 08:11:34 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**getAllPredicts**
|
|
|
|
```
|
|
|
|
?action=debug_get_predicts
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**getAllGPUUtils**
|
|
|
|
```
|
|
|
|
?action=debug_get_gpu_utils
|
2020-04-30 10:50:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**SetShareRatio**
|
|
|
|
```
|
|
|
|
?action=debug_update_enable_share_ratio&ratio=0.75
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**SetPreScheduleRatio**
|
|
|
|
```
|
|
|
|
?action=debug_update_enable_pre_schedule_ratio&ratio=0.95
|
2020-05-02 13:09:25 +00:00
|
|
|
```
|
|
|
|
|
2020-05-27 10:04:05 +00:00
|
|
|
**UpdateAllocateStrategy**
|
|
|
|
```
|
|
|
|
?action=allocator_update_strategy&strategy=bestfit
|
2020-05-28 03:44:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**SchedulerDump**
|
|
|
|
```
|
|
|
|
?action=debug_scheduler_dump
|
2020-06-05 07:33:23 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**DescribeJob**
|
|
|
|
```
|
|
|
|
?action=debug_optimizer_describe_job&job=
|
2020-06-10 13:24:00 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**EnableBatchAllocation**
|
|
|
|
```
|
|
|
|
?action=pool_enable_batch
|
|
|
|
```
|
|
|
|
|
|
|
|
**DisableBatchAllocation**
|
|
|
|
```
|
|
|
|
?action=pool_disable_batch
|
2020-06-10 15:23:09 +00:00
|
|
|
```
|
|
|
|
|
2020-06-11 03:36:52 +00:00
|
|
|
**UpdateBatchInterval**
|
|
|
|
```
|
|
|
|
?action=pool_set_batch_interval&interval=30
|
|
|
|
```
|
|
|
|
|
2020-06-10 15:23:09 +00:00
|
|
|
**PoolDump**
|
|
|
|
```
|
|
|
|
?action=debug_pool_dump
|
2020-06-14 13:12:22 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**EnableMock**
|
|
|
|
```
|
|
|
|
?action=debug_enable_mock
|
|
|
|
```
|
|
|
|
|
|
|
|
**DisableMock**
|
|
|
|
```
|
|
|
|
?action=debug_disable_mock
|
2020-06-15 01:49:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**UpdateStrategy**
|
|
|
|
```
|
|
|
|
?aciotn=allocator_update_strategy&strategy=mixed
|
2020-07-09 13:37:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**UpdateShareMaxUtilization**
|
|
|
|
```
|
|
|
|
?aciotn=conf_set_share_max_utilization&util=1.5
|
2020-04-10 10:55:51 +00:00
|
|
|
```
|