<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 07/27/2014 07:47 PM, yan wrote:<br>
</div>
<blockquote cite="mid:tencent_69B3C846206DA59A74143CA7@qq.com"
type="cite">
<div>hi,<b t="u" class="grn" style="color: rgb(95, 162, 7);
font-family: 'lucida Grande', Verdana; font-size: 12px;
line-height: normal; background-color: rgb(244, 246, 248);">david.zhang700</b><span
style="font-family: 'lucida Grande', Verdana; font-size: 12px;
line-height: normal; background-color: rgb(244, 246, 248);"> <span
id="_editor_bookmark_start_0" style="display: none;
line-height: 0px;"></span></span></div>
<div><span style="font-family: 'lucida Grande', Verdana;
font-size: 12px; line-height: normal; background-color:
rgb(244, 246, 248);">now </span><span style="line-height:
1.5;">configure</span></div>
<div>
<div><span style="font-family: monospace; line-height: normal;
white-space: pre;">gluster volume set gfs
network.ping-timeout 1</span></div>
</div>
</blockquote>
Bad idea. Now even a one second delay will cause a disconnect. Under
load, it's entirely possible to have a 1 second delay reconnecting
due to open fds, locks, etc. That delay will cause the client to
drop the connection. Then it will reconnect, have the same delay,
and drop the connection.<br>
<br>
Why is 42 seconds too long? Is your network so bad that you lose
connection so often that a more stable cluster is a bad thing?<br>
<br>
<blockquote cite="mid:tencent_69B3C846206DA59A74143CA7@qq.com"
type="cite">
<div>
<div><span style="font-family: monospace; line-height: normal;
white-space: pre;"><span id="_editor_bookmark_start_1"
style="display: none; line-height: 0px;"></span></span></div>
<div><span style="font-family: Calibri; font-size: small;
line-height: 19px;">client re</span><span
style="font-family: Calibri; font-size: small; line-height:
1.5;">connect <span id="_editor_bookmark_start_2"
style="display: none; line-height: 0px;"></span></span><span
style="color: rgb(51, 51, 51); font-family: arial;
font-size: 18px; line-height: 22px;">shorten the time<span
id="_editor_bookmark_start_3" style="display: none;
line-height: 0px;"></span></span></div>
<div><span style="color: rgb(51, 51, 51); font-family: arial;
font-size: 18px; line-height: 22px;">but ,have a question</span></div>
<div><span style="color: rgb(51, 51, 51); font-family: arial;
font-size: 18px; line-height: 22px;">client down,start
client ,data </span><span left-pos="0|12" right-pos="0|12"
space="" class="high-light-bg" style="background-color:
yellow; border-top-left-radius: 5px;
border-top-right-radius: 5px; border-bottom-right-radius:
5px; border-bottom-left-radius: 5px; cursor: pointer; color:
rgb(51, 51, 51); font-family: arial; font-size: 18px;
line-height: 22px;">Not immediately</span><span
left-pos="12|6" right-pos="12|6" space="0| " class=""
style="color: rgb(51, 51, 51); font-family: arial;
font-size: 18px; line-height: 22px;"> synchronization<span
id="_editor_bookmark_start_4" style="display: none;
line-height: 0px;"></span></span></div>
<div><span left-pos="12|6" right-pos="12|6" space="0| " class=""
style="color: rgb(51, 51, 51); font-family: arial;
font-size: 18px; line-height: 22px;">how configure </span><span
left-pos="0|12" right-pos="0|12" space=""
class="high-light-bg" style="background-color: yellow;
border-top-left-radius: 5px; border-top-right-radius: 5px;
border-bottom-right-radius: 5px; border-bottom-left-radius:
5px; cursor: pointer; color: rgb(51, 51, 51); font-family:
arial; font-size: 18px; line-height: 22px;">immediately</span><span
left-pos="12|6" right-pos="12|6" space="0| " class=""
style="color: rgb(51, 51, 51); font-family: arial;
font-size: 18px; line-height: 22px;"> synchronization?<span
id="_editor_bookmark_start_5" style="display: none;
line-height: 0px;"></span></span></div>
<div><br>
</div>
</div>
</blockquote>
<br>
That just seems impractical with regard to cpu and network usage. I
would much rather have my servers servicing client requests than
spending all their time spinning to see if an absent server has
returned.<br>
<br>
It seems that it checks every 3 seconds now to see if it's returned.
That goes back to my previous statement. If your network is so
unstable that 3 seconds to start self-heal is excessive, perhaps you
might look at a more stable network.<br>
<br>
That said, feel free to open an enhancement request on bugzilla to
allow the user to tune the reconnect interval.<br>
<br>
<blockquote cite="mid:tencent_69B3C846206DA59A74143CA7@qq.com"
type="cite">
<div>
<div style="font-size: 12px;font-family: Arial
Narrow;padding:2px 0 2px 0;">------------------ 原始邮
件 ------------------</div>
<div style="font-size: 12px;background:#efefef;padding:8px;">
<div><b>发件人:</b> "david.zhang700";<a class="moz-txt-link-rfc2396E" href="mailto:david.zhang700@gmail.com"><david.zhang700@gmail.com></a>;</div>
<div><b>发送时间:</b> 2014年7月25日(星期五) 晚上7:09</div>
<div><b>收件人:</b> "yan"<a class="moz-txt-link-rfc2396E" href="mailto:yanlk@foxmail.com"><yanlk@foxmail.com></a>;
"gluster-users"<a class="moz-txt-link-rfc2396E" href="mailto:gluster-users@gluster.org"><gluster-users@gluster.org></a>; <wbr></div>
<div><b>主题:</b> Re: [Gluster-users] GlusterFS use question</div>
</div>
<div><br>
</div>
<div dir="ltr">
<div style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR:
#000000">
<div><span style="WHITE-SPACE: pre; WORD-SPACING: 0px;
TEXT-TRANSFORM: none; FLOAT: none; COLOR: rgb(0,0,0);
FONT: 14px monospace; DISPLAY: inline !important;
LETTER-SPACING: normal; TEXT-INDENT: 0px;
-webkit-text-stroke-width: 0px;
-webkit-text-size-adjust: auto">gluster volume set
volume_name network.ping-timeout seconds_you_want</span></div>
<div><span style="WHITE-SPACE: pre; WORD-SPACING: 0px;
TEXT-TRANSFORM: none; FLOAT: none; COLOR: rgb(0,0,0);
FONT: 14px monospace; DISPLAY: inline !important;
LETTER-SPACING: normal; TEXT-INDENT: 0px;
-webkit-text-stroke-width: 0px;
-webkit-text-size-adjust: auto">default is 42s</span></div>
<div><span style="WHITE-SPACE: pre; WORD-SPACING: 0px;
TEXT-TRANSFORM: none; FLOAT: none; COLOR: rgb(0,0,0);
FONT: 14px monospace; DISPLAY: inline !important;
LETTER-SPACING: normal; TEXT-INDENT: 0px;
-webkit-text-stroke-width: 0px;
-webkit-text-size-adjust: auto"></span> </div>
<div><span style="WHITE-SPACE: pre; WORD-SPACING: 0px;
TEXT-TRANSFORM: none; FLOAT: none; COLOR: rgb(0,0,0);
FONT: 14px monospace; DISPLAY: inline !important;
LETTER-SPACING: normal; TEXT-INDENT: 0px;
-webkit-text-stroke-width: 0px;
-webkit-text-size-adjust: auto">David</span></div>
<div style="FONT-SIZE: small; TEXT-DECORATION: none;
FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal;
COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline">
<div style="FONT: 10pt tahoma">
<div> </div>
<div style="BACKGROUND: #f5f5f5">
<div style="font-color: black"><b>From:</b> <a
moz-do-not-send="true" title="yanlk@foxmail.com"
href="mailto:yanlk@foxmail.com">yan</a> </div>
<div><b>Sent:</b> Friday, July 25, 2014 4:51 PM</div>
<div><b>To:</b> <a moz-do-not-send="true"
title="gluster-users@gluster.org"
href="mailto:gluster-users@gluster.org">gluster-users</a>
</div>
<div><b>Subject:</b> [Gluster-users] GlusterFS use
question</div>
</div>
</div>
<div> </div>
</div>
<div style="FONT-SIZE: small; TEXT-DECORATION: none;
FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal;
COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline">
<div>hi , </div>
<div><span style="LINE-HEIGHT: 1.5">i am have a question?
<span id="_editor_bookmark_start_3" style="DISPLAY:
none; LINE-HEIGHT: 0px"></span></span></div>
<div><span style="LINE-HEIGHT: 1.5">server: </span></div>
<div>10.10.10.51</div>
<div>10.10.10.52<span id="_editor_bookmark_start_4"
style="DISPLAY: none; LINE-HEIGHT: 0px"></span></div>
<div>10.10.10.53<span id="_editor_bookmark_start_5"
style="DISPLAY: none; LINE-HEIGHT: 0px"></span></div>
<div>10.10.10.54<span id="_editor_bookmark_start_6"
style="DISPLAY: none; LINE-HEIGHT: 0px"></span></div>
<div>client:</div>
<div>10.10.10.55</div>
<div> </div>
<div> </div>
<div>server configure:</div>
<div><span style="LINE-HEIGHT: 1.5">gluster mode </span><span
style="LINE-HEIGHT: 1.5">replica</span></div>
<div><span style="LINE-HEIGHT: 1.5"><span
id="_editor_bookmark_start_2" style="DISPLAY: none;
LINE-HEIGHT: 0px"></span></span></div>
<div><span style="LINE-HEIGHT: 1.5">eg. </span></div>
<div>gluster volume create gfs replica 4 transport tcp
10.10.10.51:/data/file1 10.10.10.52:/data/file1
10.10.10.53:/data/file1 10.10.10.54:/data/file1 force</div>
<div> </div>
<div>client :</div>
<div>mount -t glusterfs 10.10.10.51:/gfs /mnt/gfs<span
id="_editor_bookmark_start_7" style="DISPLAY: none;
LINE-HEIGHT: 0px"></span></div>
<div> </div>
<div>Now ,i am have a question</div>
<div> </div>
<div>if one of four server down; eg 10.10.10.51 down.</div>
<div>client is disconnect ,I am need wait 90seconds,
client is auto<span style="LINE-HEIGHT: 1.5">connect,
clinet is ok</span></div>
<div><span style="LINE-HEIGHT: 1.5"><br>
</span></div>
<div><span class="high-light-bg" style="CURSOR: pointer;
FONT-SIZE: 18px; FONT-FAMILY: arial; COLOR:
rgb(51,51,51); LINE-HEIGHT: 22px; BACKGROUND-COLOR:
yellow; border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px" space=""
right-pos="0|21" left-pos="0|21">How to configure the
server</span><span style="FONT-SIZE: 18px;
FONT-FAMILY: arial; COLOR: rgb(51,51,51); LINE-HEIGHT:
22px" space="0| " right-pos="21|12" left-pos="21|12">
to shorten the time.<span
id="_editor_bookmark_start_12" style="DISPLAY: none;
LINE-HEIGHT: 0px"></span></span></div>
<div><span style="LINE-HEIGHT: 1.5"><br>
</span></div>
<p>
</p>
<hr>
_______________________________________________<br>
Gluster-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
</body>
</html>