Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Fw: Is it possible to completely handoff the connection to the realserver?

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


roger at rlmedia

Jan 17, 2011, 3:59 AM

Post #1 of 5 (743 views)
Permalink
[lvs-users] Fw: Is it possible to completely handoff the connection to the realserver?

Hi All,

This is the scenario,

I have a cluster of streaming media servers set up using LVS to load balance between them.

It works fine when all the clients are viewing videos but with any clients that are actually broadcasting to the servers, their entire session is going through the director node before getting to the real server so the incoming bandwidth on the director is quite high.

Is it possible to handoff the connection completely to the realserver after the initial connection? The streaming connections are basically a single socket connection which stays open for the duration of the session so there is really no need for it all to go through the director anyway.

Thanks in advance,

Roger.
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


malcolm at loadbalancer

Jan 17, 2011, 4:15 AM

Post #2 of 5 (687 views)
Permalink
Re: [lvs-users] Fw: Is it possible to completely handoff the connection to the realserver? [In reply to]

Roger,

The best method is to use Direct Routing which reduces the load on LVS
by about 50x for streaming media.
Or get your app server to do a re-direct after the first connection
(but then you loose all the advantages of a load balancer).




On 17 January 2011 11:59, Roger Littin <roger [at] rlmedia> wrote:
>
> Hi All,
>
> This is the scenario,
>
> I have a cluster of streaming media servers set up using LVS to load balance between them.
>
> It works fine when all the clients are viewing videos but with any clients that are actually broadcasting to the servers, their entire session is going through the director node before getting to the real server so the incoming bandwidth on the director is quite high.
>
> Is it possible to handoff the connection completely to the realserver after the initial connection?  The streaming connections are basically a single socket connection which stays open for the duration of the session so there is really no need for it all to go through the director anyway.
>
> Thanks in advance,
>
> Roger.
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users



--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Jan 17, 2011, 4:24 AM

Post #3 of 5 (684 views)
Permalink
Re: [lvs-users] Fw: Is it possible to completely handoff the connection to the realserver? [In reply to]

On Mon, 17 Jan 2011, Malcolm Turnbull wrote:

> Roger,
>
> Or get your app server to do a re-direct after the first
> connection (but then you loose all the advantages of a
> load balancer).

including having the servers on private IPs

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


roger at rlmedia

Jan 17, 2011, 12:07 PM

Post #4 of 5 (678 views)
Permalink
Re: [lvs-users] Fw: Is it possible to completely handoff the connection to the realserver? [In reply to]

I have got it set up using direct routing.

The connections where the user is viewing the content is ok as the traffic
through the the LVS is only small packets and the big video packets are
going out directly from the real servers. When the connection is a
broadcasting connection, all the video packets are incoming so go through
the LVS to the real servers. It is these connections that I would like to
hand off completely.

I can set up the media servers to do a redirect. This is how I had the
servers set up originally. One server was acting as a load balancer and
redirecting the viewers to the other servers but the problem is that most of
the encoders that are used for broadcasting cannot handle the redirect.

Roger.

-----Original Message-----
From: Malcolm Turnbull
Sent: Tuesday, January 18, 2011 1:15 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] Fw: Is it possible to completely handoff the
connection to the realserver?

Roger,

The best method is to use Direct Routing which reduces the load on LVS
by about 50x for streaming media.
Or get your app server to do a re-direct after the first connection
(but then you loose all the advantages of a load balancer).




On 17 January 2011 11:59, Roger Littin <roger [at] rlmedia> wrote:
>
> Hi All,
>
> This is the scenario,
>
> I have a cluster of streaming media servers set up using LVS to load
> balance between them.
>
> It works fine when all the clients are viewing videos but with any clients
> that are actually broadcasting to the servers, their entire session is
> going through the director node before getting to the real server so the
> incoming bandwidth on the director is quite high.
>
> Is it possible to handoff the connection completely to the realserver
> after the initial connection? The streaming connections are basically a
> single socket connection which stays open for the duration of the session
> so there is really no need for it all to go through the director anyway.
>
> Thanks in advance,
>
> Roger.
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users



--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


malte at snapscouts

Jan 21, 2011, 3:28 AM

Post #5 of 5 (627 views)
Permalink
Re: [lvs-users] Fw: Is it possible to completely handoff the connection to the realserver? [In reply to]

Hi,

you can try introducing more than one director by using an active/active setup
i.e. with http://security.maruhn.com/iptables-tutorial/x8906.html

so your incoming connections are also spread across 4 directors

malte

Am 18.01.2011 um 00:07 schrieb Roger Littin:

> I have got it set up using direct routing.
>
> The connections where the user is viewing the content is ok as the traffic
> through the the LVS is only small packets and the big video packets are
> going out directly from the real servers. When the connection is a
> broadcasting connection, all the video packets are incoming so go through
> the LVS to the real servers. It is these connections that I would like to
> hand off completely.
>
> I can set up the media servers to do a redirect. This is how I had the
> servers set up originally. One server was acting as a load balancer and
> redirecting the viewers to the other servers but the problem is that most of
> the encoders that are used for broadcasting cannot handle the redirect.
>
> Roger.
>
> -----Original Message-----
> From: Malcolm Turnbull
> Sent: Tuesday, January 18, 2011 1:15 AM
> To: LinuxVirtualServer.org users mailing list.
> Subject: Re: [lvs-users] Fw: Is it possible to completely handoff the
> connection to the realserver?
>
> Roger,
>
> The best method is to use Direct Routing which reduces the load on LVS
> by about 50x for streaming media.
> Or get your app server to do a re-direct after the first connection
> (but then you loose all the advantages of a load balancer).
>
>
>
>
> On 17 January 2011 11:59, Roger Littin <roger [at] rlmedia> wrote:
>>
>> Hi All,
>>
>> This is the scenario,
>>
>> I have a cluster of streaming media servers set up using LVS to load
>> balance between them.
>>
>> It works fine when all the clients are viewing videos but with any clients
>> that are actually broadcasting to the servers, their entire session is
>> going through the director node before getting to the real server so the
>> incoming bandwidth on the director is quite high.
>>
>> Is it possible to handoff the connection completely to the realserver
>> after the initial connection? The streaming connections are basically a
>> single socket connection which stays open for the duration of the session
>> so there is really no need for it all to go through the director anyway.
>>
>> Thanks in advance,
>>
>> Roger.
>> _______________________________________________
>> Please read the documentation before posting - it's available at:
>> http://www.linuxvirtualserver.org/
>>
>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
>
>
> --
> Regards,
>
> Malcolm Turnbull.
>
> Loadbalancer.org Ltd.
> Phone: +44 (0)870 443 8779
> http://www.loadbalancer.org/
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Attachments: smime.p7s (4.13 KB)

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.