mirror of
https://github.com/wassname/ray.git
synced 2026-09-12 12:51:15 +08:00
Implement naive scheduling algorithm using local scheduler load. (#164)
* Implement naive scheduling algorithm using local scheduler load. * Have the global scheduler estimate load on local schedulers better. * Fixes.
This commit is contained in:
committed by
Philipp Moritz
parent
a1a08b9ad4
commit
acf1703afd
@@ -4,8 +4,15 @@
|
||||
#include "db.h"
|
||||
#include "table.h"
|
||||
|
||||
/** This struct is sent with heartbeat messages from the local scheduler to the
|
||||
* global scheduler, and it contains information about the load on the local
|
||||
* scheduler. */
|
||||
typedef struct {
|
||||
/** The total number of workers that are connected to this local scheduler. */
|
||||
int total_num_workers;
|
||||
/** The number of tasks queued in this local scheduler. */
|
||||
int task_queue_length;
|
||||
/** The number of workers that are available and waiting for tasks. */
|
||||
int available_workers;
|
||||
} local_scheduler_info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user