cronicle a master multi-task scheduling from a trial installation

cronicle for a master multi-slave installation is very simple, for the slave is less a setup step, while the master interface, add the next slave on it
will join the cluster

Project uses docker-compose run

Preparing the Environment

  • docker-compose documents
 
version: "3"
services:
  cronicle:
      image: dalongrong/cronicle
      ports:
      - "3012:3012"
  cronicle2:
      hostname: cronicle2
      image: dalongrong/cronicle
      ports:
      - "3013:3012"
  cronicle3:
      hostname: cronicle3
      image: dalongrong/cronicle
      ports:
      - "3014:3012"

&& Start Configuration

  • Start docker Service
docker-compose up  -d
  • Start master
docker-compose exec cronicle /opt/cronicle/bin/control.sh setup
docker-compose exec cronicle /opt/cronicle/bin/control.sh start

effect

Setup completed successfully!
This server (066d3ba29173) has been added as the single primary master server.
An administrator account has been created with username 'admin' and password 'admin'.
You should now be able to start the service by typing: '/opt/cronicle/bin/control.sh start'
Then, the web interface should be available at: http://066d3ba29173:3012/
Please allow for up to 60 seconds for the server to become master.
/opt/cronicle/bin/control.sh start: Starting up Cronicle Daemon...
/opt/cronicle/bin/control.sh start: Cronicle Daemon started
  • Start slave1
docker-compose exec cronicle2 /opt/cronicle/bin/control.sh start

effect

/opt/cronicle/bin/control.sh start: Starting up Cronicle Daemon...
/opt/cronicle/bin/control.sh start: Cronicle Daemon started
  • Start slave2
docker-compose exec cronicle3 /opt/cronicle/bin/control.sh start

effect

/opt/cronicle/bin/control.sh start: Starting up Cronicle Daemon...
/opt/cronicle/bin/control.sh start: Cronicle Daemon started
  • Add slave

 

 

  • After effects add

 

 

  • A simple scheduling tasks

 

 

  • Implementation of the results

 

 

Explanation

cronicle single master multi slave is still very convenient, use is also very simple, easy to configure

Reference material

https://github.com/jhuckaby/Cronicle#single-master-with-slaves
https://github.com/rongfengliang/cronicle-docker

Guess you like

Origin www.cnblogs.com/rongfengliang/p/11539933.html