<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } @font-face { font-family: Wingdings; } @font-face { font-family: 'Cambria Math'; } @font-face { font-family: Calibri; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; } p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph { margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; } span.EmailStyle17 { font-family: Calibri, sans-serif; color: windowtext; } .MsoChpDefault { font-family: Calibri, sans-serif; } @page WordSection1 { margin: 72pt; } ol { margin-bottom: 0cm; } ul { margin-bottom: 0cm; }--></style><style>
<!--
@font-face
 {font-family:Wingdings}
@font-face
 {font-family:"Cambria Math"}
@font-face
 {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
 {margin:0cm;
 margin-bottom:.0001pt;
 font-size:11.0pt;
 font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
 {color:#0563C1;
 text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
 {color:#954F72;
 text-decoration:underline}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
 {margin-top:0cm;
 margin-right:0cm;
 margin-bottom:0cm;
 margin-left:36.0pt;
 margin-bottom:.0001pt;
 font-size:11.0pt;
 font-family:"Calibri",sans-serif}
span.EmailStyle17
 {font-family:"Calibri",sans-serif;
 color:windowtext}
.MsoChpDefault
 {font-family:"Calibri",sans-serif}
@page WordSection1
 {margin:72.0pt 72.0pt 72.0pt 72.0pt}
ol
 {margin-bottom:0cm}
ul
 {margin-bottom:0cm}
-->
</style></head><body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">Do, &quot;gluster volume set help&quot;. There is a pretty good explanation of the read subvolume preferences and options. <br><br><div class="gmail_quote">On April 10, 2015 6:56:27 PM PDT, Bharathram Sivasubramanian &lt;Bharathram.Sivasubramanian@vantrix.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">






<p>Thanks, Krutika!<br />
</p>
<p><br />
</p>
<p>So, if I understand you correctly...if both Brick 1 and Brick 2 have a good copy of the file, then we can't tell for sure if the file will be read only from Brick 1 all the time and not Brick 2? in other words, for read#1, the file could be read from brick
 2 and for another read which could happen a few minutes later, the file could be read from brick 1?<br />
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%" />
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Krutika Dhananjay &lt;kdhananj@redhat.com&gt;<br />
<b>Sent:</b> Friday, April 10, 2015 9:30 PM<br />
<b>To:</b> Bharathram Sivasubramanian<br />
<b>Cc:</b> Gluster-users@gluster.org<br />
<b>Subject:</b> Re: [Gluster-users] Question on file reads from a distributed replicated volume</font>
<div>&nbsp;</div>
</div>
<div>
<div style="font-family:garamond,new york,times,serif; font-size:12pt; color:#000000">
<div><br />
</div>
<div><br />
</div>
<hr id="zwchr" />
<blockquote style="border-left:2px solid #1010FF; margin-left:5px; padding-left:5px; color:#000; font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<b>From: </b>&quot;Bharathram Sivasubramanian&quot; &lt;Bharathram.Sivasubramanian@vantrix.com&gt;<br />
<b>To: </b>Gluster-users@gluster.org<br />
<b>Sent: </b>Saturday, April 11, 2015 3:03:48 AM<br />
<b>Subject: </b>[Gluster-users] Question on file reads from a distributed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;replicated volume<br />
<div><br />
</div>

<div class="WordSection1">
<p class="MsoNormal">Let us assume that we have a distributed replicated gluster volume with 4 bricks. Brick 1 is replicating its data with Brick 2 and Brick 3 is replicating its data with Brick 4. Suppose a file called aa.txt is present and replicated on Bricks
 1 &amp; 2. A gluster client would like to read this file. Which brick will the file come from? In other words:</p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="">-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>Will the file always be fetched from brick 1?</p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="">-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>Will the file always be fetched from brick 2?</p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="">-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>Will the file be fetched from brick 1 or 2 depending on the attempt? i.e. is there some load balancing where sometimes the file comes from brick 1 and at other times the file will come from brick 2?</p>
</div>
</blockquote>
<div>A given file will consistently be &quot;read&quot; from one of the N (in this case 2) replicas, as long as it holds a good copy of the file (that which does not need heal), even with client restart. We call it the &quot;read child&quot; of the file.&nbsp;<span style="font-size:12pt">Load
 balancing within a volume is done across different files wherein different files would have different but constant read children.</span></div>
<div><span style="font-size:12pt"><br />
</span></div>
<div><span style="font-size:12pt">-Krutika</span></div>
<blockquote style="border-left:2px solid #1010FF; margin-left:5px; padding-left:5px; color:#000; font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
_______________________________________________<br />
Gluster-users mailing list<br />
Gluster-users@gluster.org<br />
http://www.gluster.org/mailman/listinfo/gluster-users</blockquote>
<div><br />
</div>
</div>
</div>
</div>


<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Gluster-users mailing list<br />Gluster-users@gluster.org<br /><a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>