Consul & Nomad
The basis of JAlgoArena infrastructure are Nomad and Consul.
On all machines where you plan to deploy JAlgoArena you should setup cluster of Nomad and Consul
Local run:
* Clone JAlgoArena-Nomad locally git clone https://github.com/jalgoarena/JAlgoArena-Nomad.git
* install Consul and Nomad, put them on path, then use nomad_consul_server.sh to run locally on your laptop - it’s not recommended for production use case
Production run:
* Install Consul Cluster - check firstly above command to use KV insert of config which you can modify, and nomad-client.hcl in case of using raw_exec
driver
* Install Nomad Cluster
Raw Exec (non-docker)
- Once you have Nomad and Consul up and running, you may start running JAlgoArena external services:
- Clone JAlgoArena-Nomad locally
git clone https://github.com/jalgoarena/JAlgoArena-Nomad.git
- go to cloned repo into
raw_exec
dir, and run ./step1.sh - this will run all necessary tools- make sure that traefik, kafka, zookeeper, cockrouch are seen healthy in your Consul Web UI
- once done, go to
db
dir, and run./create_db.sh
script (modify IP and port, depending on where cockroach db is hosted)
- Clone JAlgoArena-Nomad locally
- Run JAlgoArena microservices:
- run ./step2.sh - this will run all microservices
- after verifying all Nomad jobs are running and healthy within Consul - open JAlgoArena Web UI
- if you are on machine where it’s hosted - http://localhost:3000
Docker
- Make sure Docker is available on your machines
- Once you have Nomad and Consul up and running, you may start running JAlgoArena external services:
- Clone JAlgoArena-Nomad locally
git clone https://github.com/jalgoarena/JAlgoArena-Nomad.git
- go to cloned repo into
docker
dir, and run ./step1.sh - this will run all necessary tools- make sure that traefik, kafka, zookeeper, cockrouch are seen healthy in your Consul Web UI
- once done, go to
db
dir, and run./create_db.sh
script (modify IP and port, depending on where cockroach db is hosted)
- Clone JAlgoArena-Nomad locally
- Run JAlgoArena microservices:
- run ./step2.sh - this will run all microservices
- after verifying all Nomad jobs are running and healthy within Consul - open JAlgoArena Web UI
- if you are on machine where it’s hosted - http://localhost:3000