Replies: 2 comments 9 replies
-
Hey!
The thing is that the 50051 is used by gRPC, while the HTTP health server runs on a different port, because it's a separate interface. (For gRPC we have gRPC health checks, but those are not supported by Kamal). However, I don't think you need to run AnyCable RPC as a server in Kamal's terms; it's more like a worker, a Sidekiq. I'm not sure if Kamal supports health checks for workers though. Alternatively, you may try specify the health check server port as the |
Beta Was this translation helpful? Give feedback.
-
Yeah, we have Kamal on the list of demo ideas for this repo. Not sure when we'll have to do that though. |
Beta Was this translation helpful? Give feedback.
-
Hello,
First of all, thanks for the great work - we've been using anycable in production in a rails app for a couple of years now, and it's been a pretty smooth experience. 🙏
That said, the project's deployment setup is a bit dated, and still relies on capistrano. I'm trying to explore Kamal 2, but I'm struggling with making it work with anycable.
My understanding of this section of the docs is that
kamal-proxy
will perform the healthcheck on all "proxy roles" at the specified path (or the default one, which is/up
I believe). This turned my attention to anycable for an healthcheck endpoint, and I realized there's a way to setup one. However, it runs as a separate rack server, at a different port from anycable itself. From my testing, I think that invalidates the possibility of using kamal 2, because it doesn't allow me to configure a specific port for the healthcheck, only the path (it will always use the definedapp_port
from the config).This is the relevant section of my deploy.yml file at the moment:
When I try to deploy/boot the servers with this configuration I get this:
I'm not too familiar with Kamal (or deploying with docker, really), so it might just be a problem in my config. Anyway, I thought I'd post here in case someone is able to help.
Related: @palkan, I saw that there are a few examples as draft PRs related to deploying with a few different configurations in https://github.com/anycable/anycable_rails_demo, would it be worthy to add one specifically for Kamal 2?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions