You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by 朱晨杰 <zc...@gmail.com> on 2011/12/19 03:13:47 UTC

connection lost

Hi, everyone:
   I'm now using Zookeeper as my service server. There are 3 Zookeeper
servers, then I use 3 pc connect to them. On each pc there are 20 processes
connect to zookeeper cluster so there are totally 60 connection. I
terminate 20 processes on one pc simultaneously, then I find the status of
all the 60 connection  turned to "disconnected". After a while, the living
40 process start re-connect to zookeeper, but they all become "expired". I
thought the connetion of one client would not affect others, but the result
shows it does affect.
   So I want to ask: Does it cost a lot for zookeeper to deal with a lost
connnetion? And if too much connection lost at the same time will cause
zookeeper deny of service?
   Thanks!
-- 
Zhu Chenjie
Zhejiang University, China

Re: connection lost

Posted by Neha Narkhede <ne...@gmail.com>.
Patrick,

Please could you specify the JIRA tracking this linger change ?

Thanks,
Neha

On Mon, Dec 19, 2011 at 10:29 AM, Patrick Hunt <ph...@apache.org> wrote:
> fyi That linger change was included in 3.3.4 and 3.4.1.
>
> Patrick
>
> On Mon, Dec 19, 2011 at 8:44 AM, Benjamin Reed <br...@apache.org> wrote:
>> which version of the server are you using. this sounds like the linger
>> bug that was fixed a while back.
>>
>> ben
>>
>> On Sun, Dec 18, 2011 at 6:22 PM, Camille Fournier <ca...@apache.org> wrote:
>>> That is not what we would expect from the cluster. What do the server logs show?
>>>
>>> On Sun, Dec 18, 2011 at 9:13 PM, 朱晨杰 <zc...@gmail.com> wrote:
>>>> Hi, everyone:
>>>>   I'm now using Zookeeper as my service server. There are 3 Zookeeper
>>>> servers, then I use 3 pc connect to them. On each pc there are 20 processes
>>>> connect to zookeeper cluster so there are totally 60 connection. I
>>>> terminate 20 processes on one pc simultaneously, then I find the status of
>>>> all the 60 connection  turned to "disconnected". After a while, the living
>>>> 40 process start re-connect to zookeeper, but they all become "expired". I
>>>> thought the connetion of one client would not affect others, but the result
>>>> shows it does affect.
>>>>   So I want to ask: Does it cost a lot for zookeeper to deal with a lost
>>>> connnetion? And if too much connection lost at the same time will cause
>>>> zookeeper deny of service?
>>>>   Thanks!
>>>> --
>>>> Zhu Chenjie
>>>> Zhejiang University, China

Re: connection lost

Posted by Patrick Hunt <ph...@apache.org>.
fyi That linger change was included in 3.3.4 and 3.4.1.

Patrick

On Mon, Dec 19, 2011 at 8:44 AM, Benjamin Reed <br...@apache.org> wrote:
> which version of the server are you using. this sounds like the linger
> bug that was fixed a while back.
>
> ben
>
> On Sun, Dec 18, 2011 at 6:22 PM, Camille Fournier <ca...@apache.org> wrote:
>> That is not what we would expect from the cluster. What do the server logs show?
>>
>> On Sun, Dec 18, 2011 at 9:13 PM, 朱晨杰 <zc...@gmail.com> wrote:
>>> Hi, everyone:
>>>   I'm now using Zookeeper as my service server. There are 3 Zookeeper
>>> servers, then I use 3 pc connect to them. On each pc there are 20 processes
>>> connect to zookeeper cluster so there are totally 60 connection. I
>>> terminate 20 processes on one pc simultaneously, then I find the status of
>>> all the 60 connection  turned to "disconnected". After a while, the living
>>> 40 process start re-connect to zookeeper, but they all become "expired". I
>>> thought the connetion of one client would not affect others, but the result
>>> shows it does affect.
>>>   So I want to ask: Does it cost a lot for zookeeper to deal with a lost
>>> connnetion? And if too much connection lost at the same time will cause
>>> zookeeper deny of service?
>>>   Thanks!
>>> --
>>> Zhu Chenjie
>>> Zhejiang University, China

Re: connection lost

Posted by Benjamin Reed <br...@apache.org>.
which version of the server are you using. this sounds like the linger
bug that was fixed a while back.

ben

On Sun, Dec 18, 2011 at 6:22 PM, Camille Fournier <ca...@apache.org> wrote:
> That is not what we would expect from the cluster. What do the server logs show?
>
> On Sun, Dec 18, 2011 at 9:13 PM, 朱晨杰 <zc...@gmail.com> wrote:
>> Hi, everyone:
>>   I'm now using Zookeeper as my service server. There are 3 Zookeeper
>> servers, then I use 3 pc connect to them. On each pc there are 20 processes
>> connect to zookeeper cluster so there are totally 60 connection. I
>> terminate 20 processes on one pc simultaneously, then I find the status of
>> all the 60 connection  turned to "disconnected". After a while, the living
>> 40 process start re-connect to zookeeper, but they all become "expired". I
>> thought the connetion of one client would not affect others, but the result
>> shows it does affect.
>>   So I want to ask: Does it cost a lot for zookeeper to deal with a lost
>> connnetion? And if too much connection lost at the same time will cause
>> zookeeper deny of service?
>>   Thanks!
>> --
>> Zhu Chenjie
>> Zhejiang University, China

Re: connection lost

Posted by 朱晨杰 <zc...@gmail.com>.
The log is in attachment

-- 
Zhu Chenjie
Zhejiang University, China

Re: connection lost

Posted by Camille Fournier <ca...@apache.org>.
That is not what we would expect from the cluster. What do the server logs show?

On Sun, Dec 18, 2011 at 9:13 PM, 朱晨杰 <zc...@gmail.com> wrote:
> Hi, everyone:
>   I'm now using Zookeeper as my service server. There are 3 Zookeeper
> servers, then I use 3 pc connect to them. On each pc there are 20 processes
> connect to zookeeper cluster so there are totally 60 connection. I
> terminate 20 processes on one pc simultaneously, then I find the status of
> all the 60 connection  turned to "disconnected". After a while, the living
> 40 process start re-connect to zookeeper, but they all become "expired". I
> thought the connetion of one client would not affect others, but the result
> shows it does affect.
>   So I want to ask: Does it cost a lot for zookeeper to deal with a lost
> connnetion? And if too much connection lost at the same time will cause
> zookeeper deny of service?
>   Thanks!
> --
> Zhu Chenjie
> Zhejiang University, China