Open caldenmic opened 1 week ago
I'd suggest to use persistent names for host (e.g. --hostname manager01 ). It also would be useful to have manager/worker as prefix to those hostnames (it will match default manager/worker group names)
You can use this docker compose/stack file to test.
https://github.com/cronicle-edge/cronicle-edge/blob/main/Docker/LocalCluster.yaml
But what if the worker is in one VM and manager is in a different VM will it work because here in the docker-compose file manager and workers will get deployed together?
If you have multiple VMs - switch to swarm mode, and deploy same example file. This is how I ran cronicle for years btw. You can also run it the way you proposed. But in this case also use --net=host parameter, so it will use same hostname/network interface as you host machine.
I have ran the docker containers in both machines lets say X (manager) and Y(worker). When I try to create a job and run it on Y from X's UI it says:
NOTE: X and Y are different azure VMs. X has the manager container and Y has the worker container
I have added Y's IP address as a server but will this work? But there after I add the IP address in the text box it says server added and shows Y's worker container's IP. This is the image of the server page:
Additionally I have opened the necessary ports so that it is accessible i.e (port 3012)
Below are the respective docker commands for manager and worker
Manager:
Worker:
This is what it shows in activity logs: