8 months ago
I'm using daphne with django channels - need to increase number of workers and trying to understand set-up there. I have a dockerfile not a procfile, but it looks like worker processes aren't supported there anyway.
Is the "proper" way to do this to create a service (& replicas) that link to the same repo but have a different ( runworker
) start command?
1 Replies
8 months ago
Hi,
Yes, this is a fairly popular way to get workers up. Our help station software uses the same principle, we have a monorepo with different services and just use a different start command for each service. If you're curious, you can check the architecture out here.
You might find config as code to be handy for this as well.
I'm unfamiliar with django, but if this is going to be traffic between your servers only, you could also check out private networking to reduce your egress
Best,
Nico
Status changed to Awaiting User Response railway[bot] • 8 months ago