Kamal deploy multiple servers and multiple targets (replicas) per server #139
|
Hello, I saw that there is #15 is already closed .. but can't find a docs in kamal deploy site how to do the setup and deploy multiple targets per server and to multiple servers .. for example i have 3 nodes and each node 8 replicas .. is it achievable by kamal depoly and kamal proxy? |
Replies: 2 comments
|
@OsamaHaikal the load balancing support has shipped on the proxy side, but we haven't added the Kamal side yet. Planning for that to be in the next Kamal release. If you want to load balance a deployment in the meantime you would have to set that part up manually. The way I'm doing it on my apps is to run a separate instance of Kamal Proxy as the load balancer, and use There is also an un-merged Kamal PR that you might find helpful, if you don't mind running a fork of Kamal. |
@OsamaHaikal the load balancing support has shipped on the proxy side, but we haven't added the Kamal side yet. Planning for that to be in the next Kamal release.
If you want to load balance a deployment in the meantime you would have to set that part up manually. The way I'm doing it on my apps is to run a separate instance of Kamal Proxy as the load balancer, and use
kamal-proxy deploy ...to add my app servers to it. After that, a regularkamal deployworks fine for updating the app (you'd only need to runkamal-proxy deployagain if you add/remove app servers, etc).There is also an un-merged Kamal PR that you might find helpful, if you don't mind running a fork of Kamal.