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:
Robert Nishihara
2016-12-28 22:33:20 -08:00
committed by Philipp Moritz
parent a1a08b9ad4
commit acf1703afd
6 changed files with 128 additions and 29 deletions
+7
View File
@@ -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;