Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A service scheduler and load balancer.

License

NotificationsYou must be signed in to change notification settings

esfericos/tucano

Repository files navigation

An educational service scheduler and load balancer.

(WIP - improve README.)

Manually run locally with Docker

Build container and worker images:

docker build -f dockerfiles/node.dockerfile --build-arg='CRATE=ctl' --tag ctl.docker build -f dockerfiles/node.dockerfile --build-arg='CRATE=worker' --tag worker.

The images don't define a DockerENTRYPOINT rules. The container caller mustmanually execute the binary that is in/usr/local/bin. It may bectl orworker.

Create a network that will be shared by the controller and worker nodes:

docker network create tucano-net

Run the controller:

docker container run --rm --network tucano-net --name ctl --entrypoint'/usr/local/bin/ctl' ctl

Fetch its designated IP address:

export TUC_CTL_IP="$(docker container inspect ctl --format'{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}')"echo"$TUC_CTL_IP"

Add as many worker nodes as you want:

docker container run --rm --network tucano-net --entrypoint'/usr/local/bin/worker' worker"--controller-addr=$TUC_CTL_IP"

[8]ページ先頭

©2009-2025 Movatter.jp