R
Railway10mo ago
Lewis981

Server Resource Usage Efficiency Help

My Django projects are normally relatively cheap, running low use websites. My latest project requires celery to run a task at 7am everyday - so I now have a Redis server, and two other services up pointing too my main repository, one running a celery worker, and the other running the celery beats schedule to trigger celery task execution's. Setting this up has quadrupled the estimated cost for hosting my project. Is there a best practice I'm not implementing here? I intended to add the worker and beat to my default Django server; but it seems Railway doesn't support this. Any tips or suggestions will be appreciated.
Solution:
you're probably running celery with too many workers, set the concurrency to a lower number, like 2
Jump to solution
9 Replies
Percy
Percy10mo ago
Project ID: e300a81b-ca41-47bc-87df-2c57174eb297
Lewis981
Lewis981OP10mo ago
e300a81b-ca41-47bc-87df-2c57174eb297
Brody
Brody10mo ago
what do the memory metrics look like for the two celery services?
Lewis981
Lewis981OP10mo ago
Other projects usually stay under $2.
No description
Lewis981
Lewis981OP10mo ago
No description
Lewis981
Lewis981OP10mo ago
No description
Solution
Brody
Brody10mo ago
you're probably running celery with too many workers, set the concurrency to a lower number, like 2
Lewis981
Lewis981OP10mo ago
I'll give that a shot, thanks. That solved my problem. Thanks again!
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server