<div dir="ltr">HI Liu,<div><br></div><div>When using cache=writeback are writes flushed to the cluster on REQ_FUA/FLUSH? Or are they only flushed to object cache?</div><div><br></div><div style>Joseph.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, May 7, 2013 at 6:06 AM, Liu Yuan <span dir="ltr"><<a href="mailto:namei.unix@gmail.com" target="_blank">namei.unix@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 05/07/2013 08:45 PM, Valerio Pachera wrote:<br>
> Is it possible to enable cache only on some nodes of the cluster?<br>
><br>
<br>
</div>Sure. The object cache stores the data on the node where runs sheep<br>
daemon that VM connect to.<br>
<br>
There are two ways to disable object cache:<br>
1 no '-w' option enabled at startup. Cache is completely disabled for<br>
this node. Cache option control from QEMU command is meaningless.<br>
<br>
2 '-w' for sheep is enabled. Then QEMU take control of cache mode of<br>
the VM connected to this sheep.<br>
- cache=writeback, enables the writeback cache for this VM<br>
- cache=directio, disable the cache for this VM<br>
- cache=writethrough, enables the writethrough cache for this VM<br>
<br>
Thanks,<br>
Yuan<br>
<span class="HOEnZb"><font color="#888888">--<br>
sheepdog-users mailing lists<br>
<a href="mailto:sheepdog-users@lists.wpkg.org">sheepdog-users@lists.wpkg.org</a><br>
<a href="http://lists.wpkg.org/mailman/listinfo/sheepdog-users" target="_blank">http://lists.wpkg.org/mailman/listinfo/sheepdog-users</a><br>
</font></span></blockquote></div><br></div>