users - httpd - How do I prioritize requests ?

ricardo13
2009-07-02T19:04:15+00:00


Hi,

Someone suggests an idea of how I would prioritize requests ina webserver.
Requests with more priorities are processed first than less priorities.

I don't have any idea.

Thank You
Ricardo

-------------------------------------------------------------------

Re: users - httpd - How do I prioritize requests ? by Jonathan Zuckerman on 2009-07-02T19:57:48+00:00
Can you provide a practical example of what you're trying to achieve?
This sounds like a violation of net-neutrality, but anyway most web
requests shouldn't take longer than a second or two anyway so I don't
know what kind of performance boost your top-tier customers can
reasonably expect with regards to response time from apache.

On Thu, Jul 2, 2009 at 12:03 PM, ricardo13<ricardoogrande@gmail.com> wrote:
>
> Hi,
>
> Someone suggests an idea of how I would prioritize requests ina webserver=
.
> Requests with more priorities are processed first than less priorities.
>
> I don't have any idea.
>
> Thank You
> Ricardo
> -------------------------------------------------------------------

Re: users - httpd - How do I prioritize requests ? by ricardo figueiredo on 2009-07-02T20:06:58+00:00
Hi,

Imagine a queue with many requests for low priority (requests-low), after
arrive a request high priority (request-high).
Request-high is then processed first than others.  Provide QoS (Quality of
Service)

Thank you
Ricardo


On Thu, Jul 2, 2009 at 4:56 PM, Jonathan Zuckerman <j.zuckerman@gmail.com>wrote:

> Can you provide a practical example of what you're trying to achieve?
> This sounds like a violation of net-neutrality, but anyway most web
> requests shouldn't take longer than a second or two anyway so I don't
> know what kind of performance boost your top-tier customers can
> reasonably expect with regards to response time from apache.
>
> On Thu, Jul 2, 2009 at 12:03 PM, ricardo13<ricardoogrande@gmail.com>
> wrote:
> >
> > Hi,
> >
> > Someone suggests an idea of how I would prioritize requests ina
> webserver.
> > Requests with more priorities are processed first than less priorities.
> >
> > I don't have any idea.
> >
> > Thank You
> > Ricardo
> > 
Ricardo

Re: users - httpd - How do I prioritize requests ? by Jonathan Zuckerman on 2009-07-02T20:10:27+00:00
On Thu, Jul 2, 2009 at 1:06 PM, ricardo
figueiredo<ricardoogrande@gmail.com> wrote:
>
> Hi,
>
> Imagine a queue with many requests for low priority (requests-low), after
> arrive a request high priority (request-high).
> Request-high is then processed first than others.=A0 Provide QoS (Quality=
 of
> Service)
>
> Thank you
> Ricardo
>
>
> On Thu, Jul 2, 2009 at 4:56 PM, Jonathan Zuckerman <j.zuckerman@gmail.com=
>
> wrote:
>>
>> Can you provide a practical example of what you're trying to achieve?
>> This sounds like a violation of net-neutrality, but anyway most web
>> requests shouldn't take longer than a second or two anyway so I don't
>> know what kind of performance boost your top-tier customers can
>> reasonably expect with regards to response time from apache.
>>
>> On Thu, Jul 2, 2009 at 12:03 PM, ricardo13<ricardoogrande@gmail.com>
>> wrote:
>> >
>> > Hi,
>> >
>> > Someone suggests an idea of how I would prioritize requests ina
>> > webserver.
>> > Requests with more priorities are processed first than less priorities=
.
>> >
>> > I don't have any idea.
>> >
>> > Thank You
>> > Ricardo
>> > If I had to implement this I'd do it in a scripting language, how are
you identifying high priority requests from low priority requests?

-------------------------------------------------------------------

Re: users - httpd - How do I prioritize requests ? by ricardo figueiredo on 2009-07-02T20:15:10+00:00
Hi,

That's the question. I dont have any idea.
I think rename the process (Ex: httpd-high and httpd-low), or add some
variable.
I dont know !!! Do you have any idea ???

Ricardo

On Thu, Jul 2, 2009 at 5:09 PM, Jonathan Zuckerman <j.zuckerman@gmail.com>wrote:

> On Thu, Jul 2, 2009 at 1:06 PM, ricardo
> figueiredo<ricardoogrande@gmail.com> wrote:
> >
> > Hi,
> >
> > Imagine a queue with many requests for low priority (requests-low), after
> > arrive a request high priority (request-high).
> > Request-high is then processed first than others.  Provide QoS (Quality
> of
> > Service)
> >
> > Thank you
> > Ricardo
> >
> >
> > On Thu, Jul 2, 2009 at 4:56 PM, Jonathan Zuckerman <
> j.zuckerman@gmail.com>
> > wrote:
> >>
> >> Can you provide a practical example of what you're trying to achieve?
> >> This sounds like a violation of net-neutrality, but anyway most web
> >> requests shouldn't take longer than a second or two anyway so I don't
> >> know what kind of performance boost your top-tier customers can
> >> reasonably expect with regards to response time from apache.
> >>
> >> On Thu, Jul 2, 2009 at 12:03 PM, ricardo13<ricardoogrande@gmail.com>
> >> wrote:
> >> >
> >> > Hi,
> >> >
> >> > Someone suggests an idea of how I would prioritize requests ina
> >> > webserver.
> >> > Requests with more priorities are processed first than less
> priorities.
> >> >
> >> > I don't have any idea.
> >> >
> >> > Thank You
> >> > Ricardo
> >> > 
Ricardo

Re: users - httpd - How do I prioritize requests ? by Sean Conner on 2009-07-03T01:54:10+00:00
It was thus said that the Great ricardo figueiredo once stated:
>
> That's the question. I dont have any idea.

  If you have no idea how to prioritize the requests, then I doubt you'll
get much help.  Prioritization of "requests" can happen in the router, a
load balancer or the actual webserver.

  For instance, if requests from certain IP addresses have a higher
priority (for example) then one could implement QoS (Quality of Service) at
the router level (allow traffic through unimpeeded from priority IP
addresses, otherwise cap bandwidth/connections from non-priority IP
addresseswithout an idea of what you need to prioritize on you are wasting your
time [3].

  -spc

[1]	It's a computer
-------------------------------------------------------------------

Re: users - httpd - How do I prioritize requests ? by André Warnier on 2009-07-03T06:36:23+00:00
ricardo figueiredo wrote:
> Hi,
> 
> That's the question. I dont have any idea.
> I think rename the process (Ex: httpd-high and httpd-low), or add some
> variable.
> I dont know !!! Do you have any idea ???
> 
"Ce qui se conçoit bien s'énonce clairement - Et les mots pour le dire 
arrivent aisément."
Nicolas Boileau, 1674.

And vice-versa.
André Warnier, 2009.

-------------------------------------------------------------------

Re: users - httpd - How do I prioritize requests ? by ricardo figueiredo on 2009-07-03T11:49:36+00:00
On Thu, Jul 2, 2009 at 10:53 PM, Sean Conner <spc@conman.org> wrote:

> It was thus said that the Great ricardo figueiredo once stated:
> >
> > That's the question. I dont have any idea.
>
>   If you have no idea how to prioritize the requests, then I doubt you'll
> get much help.  Prioritization of "requests" can happen in the router, a
> load balancer or the actual webserver.
>
>  For instance, if requests from certain IP addresses have a higher
> priority (for example) then one could implement QoS (Quality of Service) at
> the router level (allow traffic through unimpeeded from priority IP


That's my objective !! Implement QoS at application level.

I have a web cluster and I thought the frontend mark the requests to
priorize.

Ricardo

>
> addresses, otherwise cap bandwidth/connections from non-priority IP
> addresses> without an idea of what you need to prioritize on you are wasting your
> time [3].
>
>  -spc
>
> [1]     It's a computer>
> 

Re: users - httpd - How do I prioritize requests ? by ricardo figueiredo on 2009-07-03T12:44:02+00:00
Hi,

Is There any module that I could modified ??

Ricardo

On Fri, Jul 3, 2009 at 8:49 AM, ricardo figueiredo <ricardoogrande@gmail.com
> wrote:

>
>
> On Thu, Jul 2, 2009 at 10:53 PM, Sean Conner <spc@conman.org> wrote:
>
>> It was thus said that the Great ricardo figueiredo once stated:
>> >
>> > That's the question. I dont have any idea.
>>
>>   If you have no idea how to prioritize the requests, then I doubt you'll
>> get much help.  Prioritization of "requests" can happen in the router, a
>> load balancer or the actual webserver.
>>
>>  For instance, if requests from certain IP addresses have a higher
>> priority (for example) then one could implement QoS (Quality of Service)
>> at
>> the router level (allow traffic through unimpeeded from priority IP
>
>
> That's my objective !! Implement QoS at application level.
>
> I have a web cluster and I thought the frontend mark the requests to
> priorize.
>
> Ricardo
>
>>
>> addresses, otherwise cap bandwidth/connections from non-priority IP
>> addresses>>
>> If you are asking "Is this possible?"  the answer is "Yes." [1].    But
>> without an idea of what you need to prioritize on you are wasting your
>> time [3].
>>
>>  -spc
>>
>> [1]     It's a computer>>
>> 

Re: users - httpd - How do I prioritize requests ? by Bruno - e-comBR on 2009-07-03T12:46:24+00:00
I don't know why, but for me it seems to be 'better' implement this through
a proxy... It's application level, and it solves the problem.

Implement a HTTP proxy which do it and be happy!

2009/7/3 ricardo figueiredo <ricardoogrande@gmail.com>

> Hi,
>
> Is There any module that I could modified ??
>
> Ricardo
>
>
> On Fri, Jul 3, 2009 at 8:49 AM, ricardo figueiredo <
> ricardoogrande@gmail.com> wrote:
>
>>
>>
>> On Thu, Jul 2, 2009 at 10:53 PM, Sean Conner <spc@conman.org> wrote:
>>
>>> It was thus said that the Great ricardo figueiredo once stated:
>>> >
>>> > That's the question. I dont have any idea.
>>>
>>>   If you have no idea how to prioritize the requests, then I doubt you'=
ll
>>> get much help.  Prioritization of "requests" can happen in the router, =
a
>>> load balancer or the actual webserver.
>>>
>>>  For instance, if requests from certain IP addresses have a higher
>>> priority (for example) then one could implement QoS (Quality of Service=
)
>>> at
>>> the router level (allow traffic through unimpeeded from priority IP
>>
>>
>> That's my objective !! Implement QoS at application level.
>>
>> I have a web cluster and I thought the frontend mark the requests to
>> priorize.
>>
>> Ricardo
>>
>>>
>>> addresses, otherwise cap bandwidth/connections from non-priority IP
>>> addresses>>>
>>> If you are asking "Is this possible?"  the answer is "Yes." [1].    But
>>> without an idea of what you need to prioritize on you are wasting your
>>> time [3].
>>>
>>>  -spc
>>>
>>> [1]     It's a computer>>>
>>>
>>> 

Re: users - httpd - How do I prioritize requests ? by ricardo figueiredo on 2009-07-03T12:51:20+00:00
On Fri, Jul 3, 2009 at 9:45 AM, Bruno - e-comBR <bruno@e-combr.com.br>wrote=
:

> I don't know why, but for me it seems to be 'better' implement this throu=
gh
> a proxy... It's application level, and it solves the problem.
>
> Implement a HTTP proxy which do it and be happy!

I would like implement it in Apache webserver, but dont know where I start.

Ricardo


>
> 2009/7/3 ricardo figueiredo <ricardoogrande@gmail.com>
>
> Hi,
>>
>> Is There any module that I could modified ??
>>
>> Ricardo
>>
>>
>> On Fri, Jul 3, 2009 at 8:49 AM, ricardo figueiredo <
>> ricardoogrande@gmail.com> wrote:
>>
>>>
>>>
>>> On Thu, Jul 2, 2009 at 10:53 PM, Sean Conner <spc@conman.org> wrote:
>>>
>>>> It was thus said that the Great ricardo figueiredo once stated:
>>>> >
>>>> > That's the question. I dont have any idea.
>>>>
>>>>   If you have no idea how to prioritize the requests, then I doubt
>>>> you'll
>>>> get much help.  Prioritization of "requests" can happen in the router,=
 a
>>>> load balancer or the actual webserver.
>>>>
>>>>  For instance, if requests from certain IP addresses have a higher
>>>> priority (for example) then one could implement QoS (Quality of Servic=
e)
>>>> at
>>>> the router level (allow traffic through unimpeeded from priority IP
>>>
>>>
>>> That's my objective !! Implement QoS at application level.
>>>
>>> I have a web cluster and I thought the frontend mark the requests to
>>> priorize.
>>>
>>> Ricardo
>>>
>>>>
>>>> addresses, otherwise cap bandwidth/connections from non-priority IP
>>>> addresses>>>>
>>>> If you are asking "Is this possible?"  the answer is "Yes." [1].    Bu=
t
>>>> without an idea of what you need to prioritize on you are wasting your
>>>> time [3].
>>>>
>>>>  -spc
>>>>
>>>> [1]     It's a computer>>>> [3]     Or money.
>>>>
>>>>
>>>> 

Re: users - httpd - How do I prioritize requests ? by Bruno - e-comBR on 2009-07-03T13:01:07+00:00
2009/7/3 ricardo figueiredo <ricardoogrande@gmail.com>

>
>
> On Fri, Jul 3, 2009 at 9:45 AM, Bruno - e-comBR <bruno@e-combr.com.br>wro=
te:
>
>> I don't know why, but for me it seems to be 'better' implement this
>> through a proxy... It's application level, and it solves the problem.
>>
>> Implement a HTTP proxy which do it and be happy!
>
> I would like implement it in Apache webserver, but dont know where I star=
t.
>

Ok, but it seems to be too much more effort to do exactally the same
thing...


>
> Ricardo
>
>
>>
>> 2009/7/3 ricardo figueiredo <ricardoogrande@gmail.com>
>>
>> Hi,
>>>
>>> Is There any module that I could modified ??
>>>
>>> Ricardo
>>>
>>>
>>> On Fri, Jul 3, 2009 at 8:49 AM, ricardo figueiredo <
>>> ricardoogrande@gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Thu, Jul 2, 2009 at 10:53 PM, Sean Conner <spc@conman.org> wrote:
>>>>
>>>>> It was thus said that the Great ricardo figueiredo once stated:
>>>>> >
>>>>> > That's the question. I dont have any idea.
>>>>>
>>>>>   If you have no idea how to prioritize the requests, then I doubt
>>>>> you'll
>>>>> get much help.  Prioritization of "requests" can happen in the router=
,
>>>>> a
>>>>> load balancer or the actual webserver.
>>>>>
>>>>>  For instance, if requests from certain IP addresses have a higher
>>>>> priority (for example) then one could implement QoS (Quality of
>>>>> Service) at
>>>>> the router level (allow traffic through unimpeeded from priority IP
>>>>
>>>>
>>>> That's my objective !! Implement QoS at application level.
>>>>
>>>> I have a web cluster and I thought the frontend mark the requests to
>>>> priorize.
>>>>
>>>> Ricardo
>>>>
>>>>>
>>>>> addresses, otherwise cap bandwidth/connections from non-priority IP
>>>>> addresses>>>>>
>>>>> If you are asking "Is this possible?"  the answer is "Yes." [1].    B=
ut
>>>>> without an idea of what you need to prioritize on you are wasting you=
r
>>>>> time [3].
>>>>>
>>>>>  -spc
>>>>>
>>>>> [1]     It's a computer>>>>> [3]     Or money.
>>>>>
>>>>>
>>>>> 

RE: users - httpd - How do I prioritize requests ? by Boyle Owen on 2009-07-03T13:19:00+00:00
>	From: ricardo figueiredo [mailto:ricardoogrande@gmail.com]=20
>	Sent: Friday, July 03, 2009 2:51 PM
>	To: users@httpd.apache.org
>	Subject: Re: [users@httpd] How do I prioritize requests ?
>		Implement a HTTP proxy which do it and be happy!
>
>	I would like implement it in Apache webserver, but dont know
where I start.

As has been pointed out already, this is a very complex requirement,
best handled by another component (ie, not the webserver). The HTTP RFC
doesn't consider request priority so what you want to do would require
extensive engineering. It is a major project that a skilled engineer
might spend weeks on.. I do not think you will solve it as a novice,
just asking questions on a list.

I'm also not convinced you have a real motivation for wanting this - do
you really have a case where clients are having to wait a long time for
a response? If so, there are other ways to approach the problem.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.=20

=09
	Ricardo=20
=20
This message is for the named person's use only. It may contain =
confidential, proprietary or legally privileged information. If you =
receive this message in error, please notify the sender urgently and =
then immediately delete the message and any copies of it from your =
system. Please also immediately destroy any hardcopies of the message.=20
The sender's company reserves the right to monitor all e-mail =
communications through their networks.

-------------------------------------------------------------------
Loading


$ This page is proudly powered by www.pubbs.net, you can see more at httpd archive | Partners: Global Manufacturers