-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
27 lines (25 loc) · 1.09 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
default:
@just --list
kill-local:
sudo pkill emu || true
sudo pkill prometheus || true
start-local:
@just kill-local
prometheus --config.file examples/prometheus.yml >/dev/null 2>&1 &
cargo run --release manager --port 50000 >/dev/null 2>&1 &
cargo run --release worker --id 0 \
--advertise-ip 127.0.0.1 --control-port 50001 --data-port 50005 \
--manager-addr 127.0.0.1:50000 --metrics-addr 0.0.0.0:9001 \
>worker0.log 2>&1 &
cargo run --release worker --id 1 \
--advertise-ip 127.0.0.1 --control-port 50002 --data-port 50006 \
--manager-addr 127.0.0.1:50000 --metrics-addr 0.0.0.0:9002 \
>worker1.log 2>&1 &
cargo run --release worker --id 2 \
--advertise-ip 127.0.0.1 --control-port 50003 --data-port 50007 \
--manager-addr 127.0.0.1:50000 --metrics-addr 0.0.0.0:9003 \
>worker2.log 2>&1 &
cargo run --release worker --id 3 \
--advertise-ip 127.0.0.1 --control-port 50004 --data-port 50008 \
--manager-addr 127.0.0.1:50000 --metrics-addr 0.0.0.0:9004 \
>worker3.log 2>&1 &