You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pranjal Thakur <pr...@gmail.com> on 2009/07/06 22:49:29 UTC
[users@httpd] Re: Load balancing between different versions of a web application
Hello,
My problem is mentioned in the previous post (see below). I want to add that
I cannot use sticky sessions as the cloud that hosts our sessions is fully
clustered and so has the ability to send requests to a different server
instance in case the current instance fails.
let me know if there is a way to achieve this.thanks.
On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur <pr...@gmail.com> wrote:
> This is more of a theoretical question.
> I want to know if it is possible to do this:
>
> I have various versions of a web application, each running certain number
> of instances.
> When a request comes in, it goes to a certain instance of some version.
> I want the load balancer to now route further requests from this user to
> only the instances of the version it was first routed to.
> I can maintain a cookie or some other way to save the version number of the
> instance. But I need the load balancer to now take that into consideration
> for further requests.
>
> Is this possible and Is there any plugin available for this?
>
> Any help will be appreciated. thank you.
>
>
Re: [users@httpd] Re: Load balancing between different versions of a
web application
Posted by Pranjal Thakur <pr...@gmail.com>.
On Mon, Jul 6, 2009 at 9:04 PM, Jonathan Zuckerman <j....@gmail.com>wrote:
> On Mon, Jul 6, 2009 at 5:56 PM, Pranjal Thakur<pr...@gmail.com> wrote:
> > I am using the apache mod_proxy load balancer:
> > http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html
> >
> > I am not able to find any configuration change that I could make to
> achieve
> > this.
> > Here is the situation:
> > my web application has 2 versions say N and N+1. N has 5 instances and
> N+1
> > has 5 instances running on the same cloud.
> > A user gets to an instance of N the first time. I want all the following
> > requests from that user to go to any of the 5 instances of N and not go
> to
> > any instance of N+1 at all.
> >
> >
> > On Mon, Jul 6, 2009 at 7:26 PM, Jonathan Zuckerman <
> j.zuckerman@gmail.com>
> > wrote:
> >>
> >> On Mon, Jul 6, 2009 at 1:49 PM, Pranjal Thakur<pr...@gmail.com>
> wrote:
> >> > Hello,
> >> > My problem is mentioned in the previous post (see below). I want to
> add
> >> > that
> >> > I cannot use sticky sessions as the cloud that hosts our sessions is
> >> > fully
> >> > clustered and so has the ability to send requests to a different
> server
> >> > instance in case the current instance fails.
> >> >
> >> > let me know if there is a way to achieve this.
> >> > thanks.
> >> >
> >> > On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur <pr...@gmail.com>
> >> > wrote:
> >> >>
> >> >> This is more of a theoretical question.
> >> >> I want to know if it is possible to do this:
> >> >>
> >> >> I have various versions of a web application, each running certain
> >> >> number
> >> >> of instances.
> >> >> When a request comes in, it goes to a certain instance of some
> version.
> >> >> I want the load balancer to now route further requests from this user
> >> >> to
> >> >> only the instances of the version it was first routed to.
> >> >> I can maintain a cookie or some other way to save the version number
> of
> >> >> the instance. But I need the load balancer to now take that into
> >> >> consideration for further requests.
> >> >> Is this possible and Is there any plugin available for this?
> >> >>
> >> >> Any help will be appreciated. thank you.
> >> >
> >> >
> >>
> >> Probably will need to contact whoever hosts your app for more info,
> >> but theoretically I don't see why this can't be achieved, what type of
> >> load balancer are you using? I used netscaler briefly in the past and
> >> it was infinitely configurable..
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> " from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> >
>
> I've written a few APIs and we always include the version in the URL
> somewhere (querystring, subdomain, whatever), so that new versions
> won't break compatibility. Is this an option?
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
yes, that sounds like an option. what kind of apis do I need to write to
make the apache web server read the version and route to the correct
instance?
Re: [users@httpd] Re: Load balancing between different versions of a
web application
Posted by Jonathan Zuckerman <j....@gmail.com>.
On Mon, Jul 6, 2009 at 5:56 PM, Pranjal Thakur<pr...@gmail.com> wrote:
> I am using the apache mod_proxy load balancer:
> http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html
>
> I am not able to find any configuration change that I could make to achieve
> this.
> Here is the situation:
> my web application has 2 versions say N and N+1. N has 5 instances and N+1
> has 5 instances running on the same cloud.
> A user gets to an instance of N the first time. I want all the following
> requests from that user to go to any of the 5 instances of N and not go to
> any instance of N+1 at all.
>
>
> On Mon, Jul 6, 2009 at 7:26 PM, Jonathan Zuckerman <j....@gmail.com>
> wrote:
>>
>> On Mon, Jul 6, 2009 at 1:49 PM, Pranjal Thakur<pr...@gmail.com> wrote:
>> > Hello,
>> > My problem is mentioned in the previous post (see below). I want to add
>> > that
>> > I cannot use sticky sessions as the cloud that hosts our sessions is
>> > fully
>> > clustered and so has the ability to send requests to a different server
>> > instance in case the current instance fails.
>> >
>> > let me know if there is a way to achieve this.
>> > thanks.
>> >
>> > On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur <pr...@gmail.com>
>> > wrote:
>> >>
>> >> This is more of a theoretical question.
>> >> I want to know if it is possible to do this:
>> >>
>> >> I have various versions of a web application, each running certain
>> >> number
>> >> of instances.
>> >> When a request comes in, it goes to a certain instance of some version.
>> >> I want the load balancer to now route further requests from this user
>> >> to
>> >> only the instances of the version it was first routed to.
>> >> I can maintain a cookie or some other way to save the version number of
>> >> the instance. But I need the load balancer to now take that into
>> >> consideration for further requests.
>> >> Is this possible and Is there any plugin available for this?
>> >>
>> >> Any help will be appreciated. thank you.
>> >
>> >
>>
>> Probably will need to contact whoever hosts your app for more info,
>> but theoretically I don't see why this can't be achieved, what type of
>> load balancer are you using? I used netscaler briefly in the past and
>> it was infinitely configurable..
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
I've written a few APIs and we always include the version in the URL
somewhere (querystring, subdomain, whatever), so that new versions
won't break compatibility. Is this an option?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Load balancing between different versions of a
web application
Posted by Pranjal Thakur <pr...@gmail.com>.
I am using the apache mod_proxy load balancer:
http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html
I am not able to find any configuration change that I could make to achieve
this.
Here is the situation:
my web application has 2 versions say N and N+1. N has 5 instances and N+1
has 5 instances running on the same cloud.
A user gets to an instance of N the first time. I want all the following
requests from that user to go to any of the 5 instances of N and not go to
any instance of N+1 at all.
On Mon, Jul 6, 2009 at 7:26 PM, Jonathan Zuckerman <j....@gmail.com>wrote:
> On Mon, Jul 6, 2009 at 1:49 PM, Pranjal Thakur<pr...@gmail.com> wrote:
> > Hello,
> > My problem is mentioned in the previous post (see below). I want to add
> that
> > I cannot use sticky sessions as the cloud that hosts our sessions is
> fully
> > clustered and so has the ability to send requests to a different server
> > instance in case the current instance fails.
> >
> > let me know if there is a way to achieve this.
> > thanks.
> >
> > On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur <pr...@gmail.com>
> wrote:
> >>
> >> This is more of a theoretical question.
> >> I want to know if it is possible to do this:
> >>
> >> I have various versions of a web application, each running certain
> number
> >> of instances.
> >> When a request comes in, it goes to a certain instance of some version.
> >> I want the load balancer to now route further requests from this user to
> >> only the instances of the version it was first routed to.
> >> I can maintain a cookie or some other way to save the version number of
> >> the instance. But I need the load balancer to now take that into
> >> consideration for further requests.
> >> Is this possible and Is there any plugin available for this?
> >>
> >> Any help will be appreciated. thank you.
> >
> >
>
> Probably will need to contact whoever hosts your app for more info,
> but theoretically I don't see why this can't be achieved, what type of
> load balancer are you using? I used netscaler briefly in the past and
> it was infinitely configurable..
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Re: Load balancing between different versions of a
web application
Posted by Jonathan Zuckerman <j....@gmail.com>.
On Mon, Jul 6, 2009 at 1:49 PM, Pranjal Thakur<pr...@gmail.com> wrote:
> Hello,
> My problem is mentioned in the previous post (see below). I want to add that
> I cannot use sticky sessions as the cloud that hosts our sessions is fully
> clustered and so has the ability to send requests to a different server
> instance in case the current instance fails.
>
> let me know if there is a way to achieve this.
> thanks.
>
> On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur <pr...@gmail.com> wrote:
>>
>> This is more of a theoretical question.
>> I want to know if it is possible to do this:
>>
>> I have various versions of a web application, each running certain number
>> of instances.
>> When a request comes in, it goes to a certain instance of some version.
>> I want the load balancer to now route further requests from this user to
>> only the instances of the version it was first routed to.
>> I can maintain a cookie or some other way to save the version number of
>> the instance. But I need the load balancer to now take that into
>> consideration for further requests.
>> Is this possible and Is there any plugin available for this?
>>
>> Any help will be appreciated. thank you.
>
>
Probably will need to contact whoever hosts your app for more info,
but theoretically I don't see why this can't be achieved, what type of
load balancer are you using? I used netscaler briefly in the past and
it was infinitely configurable..
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org