Hi Paul,<br><br>The option flush-behind makes only the flush call as background. However it waits for all the writes to complete, so that it can return the application errors (if any) happened while syncing them to server. The mail thread you gave for reference [2] also contains discussion about concerns regarding flush-behind not waiting till write-syncs are complete and related explanation.<br>
<a href="http://permalink.gmane.org/gmane.comp.file-systems.gluster.user/3361">http://permalink.gmane.org/gmane.comp.file-systems.gluster.user/3361</a><br><br>regards,<br>Raghavendra.<br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 11:59 PM, Paul van Tilburg <span dir="ltr">&lt;<a href="mailto:paul@luon.net">paul@luon.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br>
<br>
I have a glusterfs test setup of two servers, each with a brick, that is<br>
replicated.  Between the two servers there is a bandwidth limit and I<br>
would like the flush-behind option to handle getting the data to the<br>
other side asynchronously.  I am using Debian Squeeze with glusterfs<br>
3.2.3-1.  Volume setup:<br>
<br>
  gluster&gt; volume info<br>
<br>
  Volume Name: vol1<br>
  Type: Replicate<br>
  Status: Started<br>
  Number of Bricks: 2<br>
  Transport-type: tcp<br>
  Bricks:<br>
  Brick1: glusterserver.home:/tmp/rep<br>
  Brick2: glusterclient.home:/tmp/rep<br>
  Options Reconfigured:<br>
  performance.write-behind-window-size: 32MB<br>
  performance.flush-behind: on<br>
<br>
However, it seems that when I create a file of 40MB with dd on<br>
glusterclient.home, the close() system call blocks until everything has<br>
fully reached glusterserver.home.  This problem has been brought up<br>
before on the users list[1].  I also recall a discussion, back when<br>
flush-behind was default off, that making close non-blocking is<br>
considered to be safe[2].<br>
<br>
It seem like I have hit a bug here and would thus like to file a<br>
report.  Unless I missed something in the configuration/documentation?<br>
<br>
Thanks!<br>
<br>
Paul<br>
<br>
1: <a href="http://www.mail-archive.com/gluster-users@gluster.org/msg01023.html" target="_blank">http://www.mail-archive.com/gluster-users@gluster.org/msg01023.html</a><br>
2: <a href="http://comments.gmane.org/gmane.comp.file-systems.gluster.user/3152" target="_blank">http://comments.gmane.org/gmane.comp.file-systems.gluster.user/3152</a><br>
<br>
--<br>
PhD Student @ Eindhoven                     | email: <a href="mailto:paul@luon.net">paul@luon.net</a><br>
University of Technology, The Netherlands   | JID: <a href="mailto:paul@luon.net">paul@luon.net</a><br>
&gt;&gt;&gt; Using the Power of Debian GNU/Linux &lt;&lt;&lt; | GnuPG key ID: 0x50064181<br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>