Mailing List Archive

[lvs-users] LVS for http vhost
Hello,

Do you know how to make a Layer 4 load balancer (for example, LVS),
support the L7 virtual hosts (for instance, the http host header)?

I ask this b/c our application are the socket servers (game servers).
They have a special socket port, it can be bound on LVS server. Behind
LVS there are many servers for different partitions. So we want to make
LVS balance the requests to the different partition based on some tags,
for example, the http header.

Thanks.

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

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] LVS for http vhost [ In reply to ]
With LVS you can only load balance based on layer 4 information such
as source IP/destination IP etc.
If you need a layer 7 load balancer try HAProxy.


On 19 January 2015 at 07:00, John D. <jd@soft.geocast.net> wrote:
> Hello,
>
> Do you know how to make a Layer 4 load balancer (for example, LVS),
> support the L7 virtual hosts (for instance, the http host header)?
>
> I ask this b/c our application are the socket servers (game servers).
> They have a special socket port, it can be bound on LVS server. Behind
> LVS there are many servers for different partitions. So we want to make
> LVS balance the requests to the different partition based on some tags,
> for example, the http header.
>
> Thanks.
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users



--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)330 1604540
http://www.loadbalancer.org/

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

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] LVS for http vhost [ In reply to ]
But our application are the raw socket servers. so how?
Or is there a commercial product solution?

Thanks.

> With LVS you can only load balance based on layer 4 information such
> as source IP/destination IP etc.
> If you need a layer 7 load balancer try HAProxy.

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

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] LVS for http vhost [ In reply to ]
John,

I'm not sure how your exactly app works but HAproxy supports web
sockets, tcp etc.
Or with LVS you can balance on any FirewallMark that you can think of
that differentiates the traffic.





On 19 January 2015 at 07:28, John D. <jd@soft.geocast.net> wrote:
> But our application are the raw socket servers. so how?
> Or is there a commercial product solution?
>
> Thanks.
>
>> With LVS you can only load balance based on layer 4 information such
>> as source IP/destination IP etc.
>> If you need a layer 7 load balancer try HAProxy.
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users



--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)330 1604540
http://www.loadbalancer.org/

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

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