scaled-scheduler-go

command module
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

README

Scaled Scheduler in Go

This scheduler implements the protocol used in scaled, making it a drop-in replacement for scaled's Python scheduler.

⚠ The scaled scheduler protocol is subject to change so there may be compatibility issues.

Building

Go 1.19+ is supported.

go build

Usage

To get the list of command line options:

scaled-scheduler-go --help

If you are ok with using default options, you can simply run the scheduler as follows:

scaled-scheduler-go tcp://0.0.0.0:8786

Todo

  • Create an interface for task allocators so multiple implementations can be used interchangeably.
    • Current task allocator uses a priority queue (heap) with each allocation costing O(log n).
  • Implement a memory limiter and spill in-memory tasks to a disk-backed cache.
    • An embedded database like BadgerDB could be used for this.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL