<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 05/10/2015 08:29 PM, Mathieu Chateau
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACpSnaK3_NDMeqGmJUYZUb2wKuuj_iRp39c+cMxn51nPLNsjtQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>Short way: Is there any way to define a preferred Gluster
          server ?<br>
          <div><br>
          </div>
          <div>Long way:</div>
          <div>I have the following setup (version 3.6.3) :</div>
          <div><br>
          </div>
          <div>Gluster A  &lt;==&gt; VPN &lt;==&gt; Gluster B</div>
          <div><br>
          </div>
          <div>Volume is replicated between A and B.</div>
          <div><br>
          </div>
          <div>They are in same datacenter, using a 1Gb/s connection,
            low latency (0.5ms)</div>
          <div><br>
          </div>
          <div>I have gluster clients in lan A &amp; B.</div>
          <div><br>
          </div>
          <div>When doing a "ls" on big folder (~60k files), both
            gluster node are used, and so it need 9mn instead on 1mn if
            only the local gluster is reachable.</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Lookups (and writes of course) from clients are sent to both  bricks
    because AFR uses the result of the lookup to select which brick to
    read from if there is a pending heal etc.<br>
    If the file is clean on both A and B, then reads are always served
    from the local brick. i.e. reads on clients mounted on A will be
    served from the brick in A (and likewise for B).<br>
    <br>
    Hope that helps,<br>
    Ravi<br>
    <br>
    <br>
    <blockquote
cite="mid:CACpSnaK3_NDMeqGmJUYZUb2wKuuj_iRp39c+cMxn51nPLNsjtQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>It's HA setup, application is present on both side. I
            would like a master/master setup, but using only local node
            as possible.</div>
          <div><br>
          </div>
          <div><br clear="all">
            <div>
              <div class="gmail_signature">Regards,<br>
                Mathieu CHATEAU<br>
                <a moz-do-not-send="true" href="http://www.lotp.fr"
                  target="_blank">http://www.lotp.fr</a></div>
            </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://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>