Job Control
Maand simplifies the lifecycle management of jobs across all workers using predefined Makefile
targets (start
, stop
, restart
).
Start All Jobs
$ maand job start
- Runs the
start
target in theMakefile
of each deployed job. - Example (
node_exporter
): Executes:
Starts thedocker-compose up -d --remove-orphans
node_exporter
service.
Stop All Jobs
$ maand job stop
- Runs the
stop
target in theMakefile
of each deployed job. - Example (
node_exporter
): Executes:
Stops and removes thedocker-compose down
node_exporter
container.
Restart All Jobs
$ maand job restart
- Runs the
stop
target followed by thestart
target in theMakefile
of each job. - Example (
node_exporter
): Executes:docker-compose down docker-compose up -d --remove-orphans
Key Advantages
- Centralized Control: Manage all jobs from one command, without logging into individual workers.
- Standardized Execution: Ensures consistent operations across jobs and workers.
- Scalable: Easily handles multiple jobs and workers simultaneously.
By using these simple commands, you can efficiently manage job operations at scale.