Re:Three quick tips from two years with Celery
by OrangeTux on Wednesday July 29, 2015 @02:19PM
(#9970526)
And do not use Redis as a broker under a high load. It will random crash or refuse to set workers to work, while queue is filling up with tasks.
[ Parent
| on HN ]
Re:Three quick tips from two years with Celery
by mooted1 on Wednesday July 29, 2015 @03:33PM
(#9971045)
At Uber we use redis as a broker for 10k+ requests per second (pushing 50k one some days) with up to several million items backed up. This is a single redis instance with replication turned on and RDB snapshots for durability.
Curious how our use patterns are different that causes what you're seeing.
Re:Three quick tips from two years with Celery
by andy_ppp on Wednesday July 29, 2015 @05:35PM
(#9971733)
Is that with Celery or are you using your own queue management?
Re:Three quick tips from two years with Celery
by bliti on Wednesday July 29, 2015 @04:03PM
(#9971217)
Tell me about the hardware specs where your Redis runs.
Re:Three quick tips from two years with Celery
by taylorhughes on Wednesday July 29, 2015 @02:21PM
(#9970537)
Good point. We've run into some issues with dropping tasks when the redis host is underwater; can imagine that becoming problematic.
Re:Three quick tips from two years with Celery
by sandGorgon on Wednesday July 29, 2015 @02:30PM
(#9970617)
We recently built out a small background task runner - we were told to use RQ+Redis rather than Celery because (and I'm repeating hearsay here) - 1. Celery's code is very messy and 2. because of the way it keeps jobs in memory, it is very prone to memory leaks.
Is there any truth to this ?
Re:Three quick tips from two years with Celery
by phunge on Wednesday July 29, 2015 @02:53PM
(#9970778)
Celery works, that's been my experience. It's buggy, complicated, and we've had unresolved issues, but it more or less does the job.
The language for building workflows is pretty half-baked, and there have been times when I've wondered whether RQ or raw message passing would be better in my situation. But it's better than any of the alternatives that I've had direct experience with.
Re:Three quick tips from two years with Celery
by sandGorgon on Thursday July 30, 2015 @02:27PM
(#9976959)
have you looked at RQ - would love to get a comparitive opinion.
Re:Three quick tips from two years with Celery
by caio1982 on Wednesday July 29, 2015 @02:42PM
(#9970700)
I don't know how much of it is truth but I've definitely had problems with Celery and memory leaks in the past myself. We can add this up to the hearsay pile though.
Re:Three quick tips from two years with Celery
by gsharma on Wednesday July 29, 2015 @03:24PM
(#9970990)
What do you use as a broker? We have seen these issues too and use Redis as the broker.
Re:Three quick tips from two years with Celery
by mpdehaan2 on Wednesday July 29, 2015 @02:58PM
(#9970814)
My experience is that Redis slows down considerably with a large amount of data in the queue, and also consumes large amounts of RAM.
I'm not sure I'd look to something that explicitly uses Redis as an alternative unless I could be sure the queue would be reasonably small.
Which, if the jobs are not going to be overwhelmed with backed up jobs, maybe that's fine.
Also, maybe we were doing it wrong.