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