Mailing List Archive

[lvs-users] depoly lvs on only one host for several process
Hi:

Is it possible that deploying lvs cluster on one host to do balance
for several process ?



--
Best Regards!

_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
Yes. Run the processes each on its own port (eg. 8000, 8001, 8002,
...) and then add all these ports as real servers.

I use this to do seamless upgrades of the application. I start the new
version up on an unused port, add it as real server, then set the
weight of the old version to zero and remove as real server once no
more clients are connected to it.

On Mon, Mar 31, 2014 at 8:27 AM, Hatt Tom <net.study.sea@gmail.com> wrote:
> Hi:
>
> Is it possible that deploying lvs cluster on one host to do balance
> for several process ?
>
>
>
> --
> Best Regards!
>
> _______________________________________________
> 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

_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
what is the use of ' set weight of the old version to zero' ?

what scheduling mothod do you use ?

2014-03-31 16:23 GMT+08:00 Tomas Carnecky <tomas.carnecky@gmail.com>:
> Yes. Run the processes each on its own port (eg. 8000, 8001, 8002,
> ...) and then add all these ports as real servers.
>
> I use this to do seamless upgrades of the application. I start the new
> version up on an unused port, add it as real server, then set the
> weight of the old version to zero and remove as real server once no
> more clients are connected to it.
>
> On Mon, Mar 31, 2014 at 8:27 AM, Hatt Tom <net.study.sea@gmail.com> wrote:
>> Hi:
>>
>> Is it possible that deploying lvs cluster on one host to do balance
>> for several process ?
>>
>>
>>
>> --
>> Best Regards!
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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



--
Best Regards!

_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
So that new clients won't connect to the old version. Existing
connections will continue to work, and once no client is connected to
the old version, it can be shut down. The scheduling method is
irrelevant, pick one which fits your setup best.

On Tue, Apr 1, 2014 at 10:40 AM, Hatt Tom <net.study.sea@gmail.com> wrote:
> what is the use of ' set weight of the old version to zero' ?
>
> what scheduling mothod do you use ?
>
> 2014-03-31 16:23 GMT+08:00 Tomas Carnecky <tomas.carnecky@gmail.com>:
>> Yes. Run the processes each on its own port (eg. 8000, 8001, 8002,
>> ...) and then add all these ports as real servers.
>>
>> I use this to do seamless upgrades of the application. I start the new
>> version up on an unused port, add it as real server, then set the
>> weight of the old version to zero and remove as real server once no
>> more clients are connected to it.
>>
>> On Mon, Mar 31, 2014 at 8:27 AM, Hatt Tom <net.study.sea@gmail.com> wrote:
>>> Hi:
>>>
>>> Is it possible that deploying lvs cluster on one host to do balance
>>> for several process ?
>>>
>>>
>>>
>>> --
>>> Best Regards!
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>
>
>
> --
> Best Regards!
>
> _______________________________________________
> 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

_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
> On Tue, Apr 1, 2014 at 10:40 AM, Hatt Tom
<net.study.sea@gmail.com> wrote:
> > what is the use of ' set weight of the old version to zero' ?

On Tuesday 01 April 2014 11:47:04 Tomas Carnecky wrote:
> So that new clients won't connect to the old version. Existing
> connections will continue to work,

I think you can safely just remove the realserver, and still existing
connections will keep working until they terminate.

Setting weight to 0 still makes sense when you want to temporarily take
a realserver out of service, as the concurrent connection count for least-
connection scheduling is kept intact that way (and the connection count
can still be monitored while the weight is 0).

best regards
Patrick
_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
how to Setting weight to 0?

2014-04-01 19:44 GMT+08:00 Patrick Schaaf <netdev@bof.de>:
>> On Tue, Apr 1, 2014 at 10:40 AM, Hatt Tom
> <net.study.sea@gmail.com> wrote:
>> > what is the use of ' set weight of the old version to zero' ?
>
> On Tuesday 01 April 2014 11:47:04 Tomas Carnecky wrote:
>> So that new clients won't connect to the old version. Existing
>> connections will continue to work,
>
> I think you can safely just remove the realserver, and still existing
> connections will keep working until they terminate.
>
> Setting weight to 0 still makes sense when you want to temporarily take
> a realserver out of service, as the concurrent connection count for least-
> connection scheduling is kept intact that way (and the connection count
> can still be monitored while the weight is 0).
>
> best regards
> Patrick
> _______________________________________________
> 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



--
Best Regards!

_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
could you please share the lvs configure shell script with me ?

thanks a lot

2014-03-31 16:23 GMT+08:00 Tomas Carnecky <tomas.carnecky@gmail.com>:
> Yes. Run the processes each on its own port (eg. 8000, 8001, 8002,
> ...) and then add all these ports as real servers.
>
> I use this to do seamless upgrades of the application. I start the new
> version up on an unused port, add it as real server, then set the
> weight of the old version to zero and remove as real server once no
> more clients are connected to it.
>
> On Mon, Mar 31, 2014 at 8:27 AM, Hatt Tom <net.study.sea@gmail.com> wrote:
>> Hi:
>>
>> Is it possible that deploying lvs cluster on one host to do balance
>> for several process ?
>>
>>
>>
>> --
>> Best Regards!
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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



--
Best Regards!

_______________________________________________
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] depoly lvs on only one host for several process [ In reply to ]
Could you please share the configure shell script ?

Thanks a lot!

ÔÚ 2014-3-31£¬16:23£¬Tomas Carnecky <tomas.carnecky@gmail.com> дµÀ£º

> Yes. Run the processes each on its own port (eg. 8000, 8001, 8002,
> ...) and then add all these ports as real servers.
>
> I use this to do seamless upgrades of the application. I start the new
> version up on an unused port, add it as real server, then set the
> weight of the old version to zero and remove as real server once no
> more clients are connected to it.
>
> On Mon, Mar 31, 2014 at 8:27 AM, Hatt Tom <net.study.sea@gmail.com> wrote:
>> Hi:
>>
>> Is it possible that deploying lvs cluster on one host to do balance
>> for several process ?
>>
>>
>>
>> --
>> Best Regards!
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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

_______________________________________________
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