[Pulp-list] Asynchronous Task Dispatching

Jason L Connor jconnor at redhat.com
Thu Apr 14 15:14:25 UTC 2011


Hi All,

I'm looking for some feed back on the responsiveness of our system.

Currently asynchronous tasks are executed from an in-memory task queue.
This task queue uses a dispatcher thread that wakes up every .5 seconds
and checks to see if it needs to run anything.

We're currently in the process of making our tasks persistent by pushing
them into the database. This means that the dispatcher thread must now
query the database and deserialize tasks in order to check to see if it
needs to run anything.

Personally, I think hitting the database and performing task
deserialization twice a second is going to create a lot of io waits. I'd
rather slow the dispatcher thread down to something more reasonable, but
this will affect how responsive we are in kicking off async tasks.

I'm looking for suggestions for how long the dispatcher thread should
sleep. Preferably balancing the io with responsiveness.

I've got a time in mind, but I'll refrain from suggesting it until I get
some feedback.

-- 
Jason L Connor
linear on freenode #pulp
http://pulpproject.org/
RHCE: 805010912355231
GPG Fingerprint: 2048R/CC4ED7C1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20110414/1a6f882f/attachment.sig>


More information about the Pulp-list mailing list