This crate contains the Ballista Scheduler. It can be used both as a library or as a binary.
bash
$ RUST_LOG=info cargo run --release
...
[2021-02-11T05:29:30Z INFO scheduler] Ballista v0.4.2-SNAPSHOT Scheduler listening on 0.0.0.0:50050
[2021-02-11T05:30:13Z INFO ballista::scheduler] Received register_executor request for ExecutorMetadata { id: "6d10f5d2-c8c3-4e0f-afdb-1f6ec9171321", host: "localhost", port: 50051 }
By default, the scheduler will bind to localhost
and listen on port 50051
.
Scheduler supports REST model also using content negotiation. For e.x if you want to get list of executors connected to the scheduler, you can do (assuming you use default config)
bash
curl --request GET \
--url http://localhost:50050/executors \
--header 'Accept: application/json'
A basic ui for the scheduler is in ui/scheduler
of the ballista repo.
It can be started using the following yarn command
bash
yarn && yarn start