2020-04-10 18:55:51 +08:00
|
|
|
# YAO-scheduler
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
|
|
**GetHeartCounter**
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
?action=get_counter
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**GetJobTaskStatusJHL**
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
?action=jhl_job_status&job=
|
2020-04-12 10:44:32 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**GetBindings**
|
|
|
|
|
|
|
|
|
|
GPU is occupied by which job(s)
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
?action=get_bindings
|
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
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**FeedDLData**
|
|
|
|
|
```
|
|
|
|
|
?action=debug_optimizer_feed_dl&job=lstm&seq=1&value=2
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**TrainDL**
|
|
|
|
|
```
|
|
|
|
|
?action=debug_optimizer_train_dl&job=lstm
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**PredictDL**
|
|
|
|
|
```
|
|
|
|
|
?action=debug_get_predict_dl&job=lstm&seq=1
|
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-04-10 18:55:51 +08:00
|
|
|
```
|