<div dir="ltr"><div>So gluster is just running on 10Mbit nic cards or 56Gbit Infiniband?<br><br><br></div><div>With 1G nic cards, assuming only replica=2, you are looking at pretty limited IO for gluster to work with. That can cause long pauses and other timeouts in my experience.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 2:42 AM, José A. Lausuch Sales <span dir="ltr">&lt;<a href="mailto:jlausuch@gmail.com" target="_blank">jlausuch@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>we are currently evaluating GlusterFS for a production environment. Our focus is on the high-availability features of GlusterFS. However, our tests have not worked out well. Hence I am seeking feedback from you.</div>

<div><br></div><div><br></div><div>In our planned production environment, Gluster should provide shared storage for VM disk images. So, our very basic initial test setup is as follows:</div><div><br></div><div><br></div>
<div>
We are using two servers, each providing a single brick of a replicated gluster volume (Gluster 3.4.1). A third server runs a test-VM (Ubuntu 13.04 on QEMU 1.3.0 and libvirt 1.0.3) which uses a disk image file stored on the gluster volume as block device (/dev/vdb). For testing purposes, the root file system of this VM (/dev/vda) is a disk image NOT stored on the gluster volume.</div>

<div><br></div><div><br></div><div>To test the high-availability features of gluster under load, we run FIO inside the VM directly on the vdb block device (see configuration below). Up to now, we tested reading only. The test procedure is as follows: </div>

<div><br></div><div>1.<span style="white-space:pre-wrap">        </span>We start FIO inside the VM and observe by means of &quot;top&quot; which of the two servers receives the read requests (i.e., increased CPU load of the glusterd process). Let’s say that Server1 has the CPU load by glusterfsd.</div>

<div><br></div><div>2.<span style="white-space:pre-wrap">        </span>While FIO is running, we take down the network of this Server1 and observe if the Server2 takes over.</div><div><br></div><div>3.<span style="white-space:pre-wrap">        </span>This “fail over” works (almost 100% of the times), we see the CPU load from glusterfsd on Server2. As expected, Server1 does not have any load because is “offline”.</div>

<div><br></div><div>4.<span style="white-space:pre-wrap">        </span>After a while we bring up the NIC on Server1 again. In this step we realized that the expected behavior is that when bringing up this NIC, this server should take over again (something like active-passive behavior) but this happens only 5-10% of the times.  The CPU load is still on Server2.</div>

<div><br></div><div>5.<span style="white-space:pre-wrap">        </span>After some time, we bring down the NIC on Server2 expecting that Server1 takes over.  This second &quot;fail over&quot; crashes. The VM complains about I/O errors which can only be resolved by restarting the VM and sometimes even removing and creating the volume again. </div>

<div><br></div><div><br></div><div>After some test, we realized that if restarting the glusterd daemon (/etc/init.d/glusterd restart) on Server1 after step 3 or before step 4, the Server1 takes over automatically without bringing down Server2 or anything like that.</div>

<div><br></div><div><br></div><div>We tested this using the normal FUSE mount and libgfapi. If using FUSE, the local mount sometimes becomes unavailable (ls shows not more files) if the failover fails.</div><div><br></div>

<div><br></div><div>We have a few fundamental questions in this regard:</div><div><br></div><div>i) Is Gluster supposed to handle such a scenario or are we making wrong assumptions? Because the only solution we found is to restart the daemon when a network outage occurs, but this is not acceptable in a real scenario with VMs running real applications.</div>

<div><br></div><div>ii) What is the recommended configuration in terms of caching (QEMU: cache=none/writethrough/writeback) and direct I/O (FIO and Gluster) to maximize the reliability of the failover process? We varied the parameters but could find a working configuration. Do these parameters have an impact at all?</div>

<div><br></div><div><br></div><div><br></div><div><br></div><div>FIO test specification:<br></div><div><br></div><div>[global]</div><div>direct=1</div><div>ioengine=libaio</div><div>iodepth=4</div><div>filename=/dev/vdb</div>

<div>runtime=300</div><div>numjobs=1</div><div><br></div><div>[maxthroughput]</div><div>rw=read</div><div>bs=16k</div><div><br></div><div><br></div><div><br></div><div>VM configuration:</div><div><br></div><div>&lt;domain type=&#39;kvm&#39; id=&#39;6&#39;&gt;</div>

<div>  &lt;name&gt;testvm&lt;/name&gt;</div><div>  &lt;uuid&gt;93877c03-605b-ed67-1ab2-2ba16b5fb6b5&lt;/uuid&gt;</div><div>  &lt;memory unit=&#39;KiB&#39;&gt;2097152&lt;/memory&gt;</div><div>  &lt;currentMemory unit=&#39;KiB&#39;&gt;2097152&lt;/currentMemory&gt;</div>

<div>  &lt;vcpu placement=&#39;static&#39;&gt;1&lt;/vcpu&gt;</div><div>  &lt;os&gt;</div><div>    &lt;type arch=&#39;x86_64&#39; machine=&#39;pc-1.1&#39;&gt;hvm&lt;/type&gt;</div><div>    &lt;boot dev=&#39;hd&#39;/&gt;</div>

<div>  &lt;/os&gt;</div><div>  &lt;features&gt;</div><div>    &lt;acpi/&gt;</div><div>    &lt;apic/&gt;</div><div>    &lt;pae/&gt;</div><div>  &lt;/features&gt;</div><div>  &lt;clock offset=&#39;utc&#39;/&gt;</div><div>  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;</div>

<div>  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;</div><div>  &lt;on_crash&gt;restart&lt;/on_crash&gt;</div><div>  &lt;devices&gt;</div><div>    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;</div><div>    &lt;disk type=&#39;block&#39; device=&#39;disk&#39;&gt;</div>

<div>      &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39; cache=&#39;writethrough&#39;/&gt;</div><div>      &lt;source dev=&#39;/mnt/local/io-perf.img&#39;/&gt;</div><div>      &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;</div>

<div>      &lt;alias name=&#39;virtio-disk0&#39;/&gt;</div><div>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x04&#39; function=&#39;0x0&#39;/&gt;</div><div>    &lt;/disk&gt;</div>

<div>    &lt;disk type=&#39;block&#39; device=&#39;disk&#39;&gt;</div><div>      &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39; cache=&#39;writethrough&#39;/&gt;</div><div>      &lt;source dev=&#39;/mnt/shared/io-perf-testdisk.img&#39;/&gt;</div>

<div>      &lt;target dev=&#39;vdb&#39; bus=&#39;virtio&#39;/&gt;</div><div>      &lt;alias name=&#39;virtio-disk1&#39;/&gt;</div><div>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x07&#39; function=&#39;0x0&#39;/&gt;</div>

<div>    &lt;/disk&gt;</div><div>    &lt;controller type=&#39;usb&#39; index=&#39;0&#39;&gt;</div><div>      &lt;alias name=&#39;usb0&#39;/&gt;</div><div>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x01&#39; function=&#39;0x2&#39;/&gt;</div>

<div>    &lt;/controller&gt;</div><div>    &lt;interface type=&#39;network&#39;&gt;</div><div>      &lt;mac address=&#39;52:54:00:36:5f:dd&#39;/&gt;</div><div>      &lt;source network=&#39;default&#39;/&gt;</div><div>      &lt;target dev=&#39;vnet0&#39;/&gt;</div>

<div>      &lt;model type=&#39;virtio&#39;/&gt;</div><div>      &lt;alias name=&#39;net0&#39;/&gt;</div><div>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; function=&#39;0x0&#39;/&gt;</div>

<div>    &lt;/interface&gt;</div><div>    &lt;input type=&#39;mouse&#39; bus=&#39;ps2&#39;/&gt;</div><div>    &lt;graphics type=&#39;vnc&#39; port=&#39;5900&#39; autoport=&#39;yes&#39; listen=&#39;127.0.0.1&#39;&gt;</div>

<div>      &lt;listen type=&#39;address&#39; address=&#39;127.0.0.1&#39;/&gt;</div><div>    &lt;/graphics&gt;</div><div>    &lt;video&gt;</div><div>      &lt;model type=&#39;cirrus&#39; vram=&#39;9216&#39; heads=&#39;1&#39;/&gt;</div>

<div>      &lt;alias name=&#39;video0&#39;/&gt;</div><div>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x02&#39; function=&#39;0x0&#39;/&gt;</div><div>    &lt;/video&gt;</div>
<div>
    &lt;memballoon model=&#39;virtio&#39;&gt;</div><div>      &lt;alias name=&#39;balloon0&#39;/&gt;</div><div>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x05&#39; function=&#39;0x0&#39;/&gt;</div>

<div>    &lt;/memballoon&gt;</div><div>  &lt;/devices&gt;</div><div>  &lt;seclabel type=&#39;none&#39;/&gt;</div><div>&lt;/domain&gt;</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thank you very much in advance,</div>

<div>Jose Lausuch</div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>