Django channels - Daphne workers
cerefre
PROOP

2 years 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?

Solved

1 Replies

2 years 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 almost 2 years ago


Railway
BOT

a year ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...