I have been trying to use Celery with Django to enable asynchronous execution of database updates. I have tried Celery with both RabbitMQ and Redis, and the combination (former for the broker and later for storing results) of them. One thing I noticed is that the latency (difference between the request for a task is placed and time at which gets picked up for execution) is significant - in the order of few hundred milliseconds (~ 1 sec).
That too, this is happening on a machine with substantial resources (8 Intel(R) Atom(TM) CPU C2750 @ 2.40GHz and 32 GB RAM). Moreover, there were not many other processes running at the same time.
Any advice for reducing this latency?
norskode has quit
jbrhbr has quit
jbrhbr joined the channel
jbrhbr has quit
sbhawsin has quit
techdragon has quit
techdragon joined the channel
rpkilby has quit
techdragon has quit
techdragon joined the channel
rpkilby joined the channel
crowder has quit
kaakku joined the channel
crowder joined the channel
crowder has quit
acangiani joined the channel
rickmak joined the channel
sokr has quit
rickmak has quit
rickmak joined the channel
rpkilby has quit
kaakku has quit
kovalan has quit
rickmak has quit
brockhaywood joined the channel
rickmak joined the channel
vishesh joined the channel
brockhaywood has quit
rickmak has quit
kaakku joined the channel
domino14 joined the channel
acangiani has quit
flonka joined the channel
domino14 has quit
harlowja_ has quit
Debnet joined the channel
domino14 joined the channel
brockhaywood joined the channel
zz_CyberJacob is now known as CyberJacob
vishesh has quit
frog3r has quit
CyberJacob is now known as zz_CyberJacob
newtc joined the channel
Ergo joined the channel
brockhaywood has quit
vishesh joined the channel
adrian_lc joined the channel
vishesh has quit
kovalan joined the channel
hanine joined the channel
ninkotech_ joined the channel
domino14 joined the channel
jiang42 joined the channel
jiang42 has quit
domino14 has quit
Ergo has quit
Ergo^ joined the channel
kovalan has quit
gnoze5 joined the channel
rpkilby joined the channel
maryokhin joined the channel
k_sze[work] joined the channel
janelleb joined the channel
gnoze5 has quit
jbrhbr joined the channel
gnoze5 joined the channel
maryokhin has quit
Ergo^ has quit
Ergo joined the channel
niska has quit
maryokhin joined the channel
niska joined the channel
gnoze5 has quit
Ergo has quit
jbrhbr has quit
gnoze5 joined the channel
jiang42 joined the channel
maryokhin has left the channel
sokr joined the channel
domino14 joined the channel
acangiani joined the channel
niska joined the channel
niska has quit
niska joined the channel
niska joined the channel
mrud joined the channel
mrud
hi, i am using celery with postgres as message queue and have workes on two different hosts. it seems like some tasks are picked up by two workers at the same time, any idea?
asksol
mrud: that can easily happen if you use the database transports, they are made for testing purposes...