httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ricardo13 <ricardoogra...@gmail.com>
Subject Re: Where Do I Create Queues in MPM Worker
Date Tue, 07 Jul 2009 10:46:42 GMT



Mladen Turk-3 wrote:
> 
> ricardo13 wrote:
>> 
>> I want to modify MPM Worker (worker.c) to develop some scheduling
>> algorithms.
>> 
>> A first scheduling algorithm would be implement priority. Two queues
>> (worker_queue1 and worker_queue2) of sockets where threads (workers)
>> "get"
>> all requests from worker_queue1 first, after"get" all requests from
>> worker_queue2.
>>
> 
> Now we are talking! You should explain that initially ;)
> 
>> That is what I wanted to do.
>> 
> 
> I suppose each 'queue' would bind to a different listener,
> otherwise this is a sort of throttling.
> Since worker connection model is protocol independent and
> if you wish a url/host based scheduling you cannot do that inside
> worker since http protocol is handled after the worker handles
> the connection. The only possible solution for a connection
> scheduling would be scheduling a different connection pools
> (eg. events on different listening socket)
> 
> I've seen this Apache architecture. A person develop.
> Regards http://www.nabble.com/file/p24370972/arch.jpeg 
> 
> Note that he uses a listener (A), a queue (B) and the threads (C).
> I sent a email for him. He told me that implement 3 queue (each queue for
> user-level).
> 
> user-level would be GOLD, SILVER and BRONZE.
> 
> Thank you
> Ricardo
> -- 
> ^(TM)
> 
> 

-- 
View this message in context: http://www.nabble.com/Where-Do-I-Create-Queues-in-MPM-Worker-tp24354526p24370972.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.


Mime
View raw message