<div dir="ltr">I build one cluster by GlusterFS 1.3 with 3 node for brick<br><br>Xeon QuardCore 2.33GHz, 32G RAM, 3G Network (bonding), Raid 6 with 12HDD 1T + 2&nbsp; HotSpare<br clear="all"><br>On this cluster i have 3M File with 16TB .<br>

<br>Client <br>5 node Xeon QuarCore 2.33Ghz, 8GRAM, 2G Network (bonding). Runing Lighttpd with 600 Concurent Connection for streaming FLV<br><br><br>I run streaming 5Gbps normal, but if run &#39;ls -l&#39; in directory mount glusterfs then all system very slow.<br>

<br>Please Help me for solution<br><br>This Server Config:<br>##############################################<br>###&nbsp; GlusterFS Server Volume Specification&nbsp; ##<br>##############################################<br><br><br>
# Unify Volume 1<br>volume unify-raw1<br>&nbsp; type storage/posix<br>&nbsp; option directory /home/node1/unify/baamboo/data<br>end-volume<br><br>volume u-posix-locks1<br>&nbsp; type features/posix-locks<br>&nbsp; option mandatory on<br>&nbsp; subvolumes unify-raw1<br>
end-volume<br><br>volume u-io-thr1<br>&nbsp; type performance/io-threads<br>&nbsp; option thread-count 4<br>&nbsp; option cache-size 128MB<br>&nbsp; subvolumes u-posix-locks1<br>end-volume<br><br>volume u-wb1<br>&nbsp; type performance/write-behind<br>
&nbsp; option aggregate-size 1MB # default is 0bytes<br>&nbsp; option flush-behind on&nbsp;&nbsp;&nbsp; # default is &#39;off&#39;<br>&nbsp; subvolumes u-io-thr1<br>end-volume<br><br>volume unify1<br>&nbsp; type performance/read-ahead<br>&nbsp; option page-size 512kB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 256KB is the default option<br>
&nbsp; option page-count 64&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2 is default option<br>&nbsp; option force-atime-update off # default is off<br>&nbsp; subvolumes u-wb1<br>end-volume<br><br><br># Unify Volume 2<br>volume unify-raw2<br>&nbsp; type storage/posix<br>&nbsp; option directory /home/node2/unify/baamboo/data<br>
end-volume<br><br>volume u-posix-locks2<br>&nbsp; type features/posix-locks<br>&nbsp; option mandatory on<br>&nbsp; subvolumes unify-raw2<br>end-volume<br><br>volume u-io-thr2<br>&nbsp; type performance/io-threads<br>&nbsp; option thread-count 4<br>
&nbsp; option cache-size 128MB<br>&nbsp; subvolumes u-posix-locks2<br>end-volume<br><br>volume u-wb2<br>&nbsp; type performance/write-behind<br>&nbsp; option aggregate-size 1MB # default is 0bytes<br>&nbsp; option flush-behind on&nbsp;&nbsp;&nbsp; # default is &#39;off&#39;<br>
&nbsp; subvolumes u-io-thr2<br>end-volume<br><br>volume unify2<br>&nbsp; type performance/read-ahead<br>&nbsp; option page-size 512kB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 256KB is the default option<br>&nbsp; option page-count 64&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2 is default option<br>&nbsp; option force-atime-update off # default is off<br>
&nbsp; subvolumes u-wb2<br>end-volume<br><br><br><br><br>volume ns-raw<br>&nbsp; type storage/posix<br>&nbsp; option directory /home/node1/unify/baamboo/ns<br>end-volume<br><br>volume ns-io-thr<br>&nbsp; type performance/io-threads<br>&nbsp; option thread-count 4<br>
&nbsp; option cache-size 32MB<br>&nbsp; subvolumes ns-raw<br>end-volume<br><br>volume ns<br>&nbsp; type performance/read-ahead<br>&nbsp; option page-size 256kB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 256KB is the default option<br>&nbsp; option page-count 16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2 is default option<br>
&nbsp; option force-atime-update off # default is off<br>&nbsp; subvolumes ns-io-thr<br>end-volume<br><br><br><br>### Add network serving capability to above brick.<br>volume server<br>&nbsp; type protocol/server<br>&nbsp; option transport-type tcp/server&nbsp;&nbsp;&nbsp;&nbsp; # For TCP/IP transport<br>
&nbsp; option bind-address <a href="http://192.168.6.6">192.168.6.6</a>&nbsp;&nbsp;&nbsp;&nbsp; # Default is&nbsp; listen on all interfaces<br>&nbsp; option listen-port 60001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Default is 6996<br>&nbsp; subvolumes unify1 unify2 ns <br>&nbsp; option auth.ip.unify1.allow 192.168.* # Allow access to &quot;brick&quot; volume<br>
&nbsp; option auth.ip.unify2.allow 192.168.* # Allow access to &quot;brick&quot; volume<br>&nbsp; option auth.ip.ns.allow 192.168.* # Allow access to &quot;brick&quot; volume<br>end-volume<br><br><br>Client Config<br><br>### file: client-volume.spec.sample<br>
<br><br>##############################################<br>###&nbsp; GlusterFS Client Volume Specification&nbsp; ##<br>##############################################<br><br>### Add client feature and attach to remote subvolume<br># volume client<br>
#&nbsp; type protocol/client<br>#&nbsp; option transport-type tcp/client&nbsp;&nbsp;&nbsp;&nbsp; # for TCP/IP transport<br># option ib-verbs-work-request-send-size&nbsp; 1048576<br># option ib-verbs-work-request-send-count 16<br># option ib-verbs-work-request-recv-size&nbsp; 1048576<br>
# option ib-verbs-work-request-recv-count 16<br># option transport-type ib-sdp/client&nbsp; # for Infiniband transport<br># option transport-type ib-verbs/client # for ib-verbs transport <br>#&nbsp; option remote-host <a href="http://127.0.0.1">127.0.0.1</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # IP address of the remote brick<br>
# option remote-port 6996&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # default server port is 6996<br><br># option transport-timeout 30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # from server for each request<br>
#&nbsp; option remote-subvolume brick&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # name of the remote volume<br># end-volume<br><br><br># Volume for Node 1<br>volume unify_1<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp/client<br>&nbsp; option remote-host <a href="http://192.168.6.6">192.168.6.6</a><br>
&nbsp; option remote-port 60001<br>&nbsp; option remote-subvolume unify1<br>&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>end-volume<br><br># Volume for Node 2<br>volume unify_2<br>&nbsp; type protocol/client<br>
&nbsp; option transport-type tcp/client<br>&nbsp; option remote-host <a href="http://192.168.6.6">192.168.6.6</a><br>&nbsp; option remote-port 60001<br>&nbsp; option remote-subvolume unify2<br>&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>
end-volume<br><br># Volume for Node 3<br>volume unify_3<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp/client<br>&nbsp; option remote-host <a href="http://192.168.6.8">192.168.6.8</a><br>&nbsp; option remote-port 60001<br>
&nbsp; option remote-subvolume unify1<br>&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>end-volume<br><br># Volume for Node 4<br>volume unify_4<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp/client<br>
&nbsp; option remote-host <a href="http://192.168.6.8">192.168.6.8</a><br>&nbsp; option remote-port 60001<br>&nbsp; option remote-subvolume unify2<br>&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>end-volume<br>
<br><br># Volume for Node 5<br>volume unify_5<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp/client<br>&nbsp; option remote-host <a href="http://192.168.6.4">192.168.6.4</a><br>&nbsp; option remote-port 60001<br>&nbsp; option remote-subvolume unify1<br>
&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>end-volume<br><br><br># Volume for Node 6<br>volume unify_6<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp/client<br>&nbsp; option remote-host <a href="http://192.168.6.4">192.168.6.4</a><br>
&nbsp; option remote-port 60001<br>&nbsp; option remote-subvolume unify2<br>&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>end-volume<br><br><br># Volume for Node NS<br># volume unify_ns1<br>#&nbsp;&nbsp; type protocol/client<br>
#&nbsp;&nbsp; option transport-type tcp/client<br>#&nbsp;&nbsp; option remote-host <a href="http://192.168.6.6">192.168.6.6</a><br>#&nbsp;&nbsp; option remote-port 60001<br>#&nbsp;&nbsp; option remote-subvolume ns<br>#&nbsp;&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>
# end-volume<br><br># Volume for Node NS<br>volume unify_ns_raw # unify_ns2<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp/client<br>&nbsp; option remote-host <a href="http://192.168.6.8">192.168.6.8</a><br>&nbsp; option remote-port 60001<br>
&nbsp; option remote-subvolume ns<br>&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br>end-volume<br><br># Volume for Node NS<br># volume unify_ns3<br>#&nbsp;&nbsp; type protocol/client<br>#&nbsp;&nbsp; option transport-type tcp/client<br>
#&nbsp;&nbsp; option remote-host <a href="http://192.168.6.4">192.168.6.4</a><br>#&nbsp;&nbsp; option remote-port 60001<br>#&nbsp;&nbsp; option remote-subvolume ns<br>#&nbsp;&nbsp; option transport-timeout 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # seconds to wait for a reply<br># end-volume<br>
<br># Volume AFR node 1-2-3<br># volume unify_ns_raw<br>#&nbsp;&nbsp; type cluster/afr<br>#&nbsp;&nbsp; subvolumes unify_ns1 unify_ns2 unify_ns3<br># end-volume<br><br><br>volume ns_iot<br>&nbsp; type performance/io-threads<br>&nbsp; option thread-count 4<br>
&nbsp; option cache-size 256MB<br>&nbsp; subvolumes unify_ns_raw<br>end-volume<br><br><br># Add readahead feature<br>volume ns_readahead<br>&nbsp; type performance/read-ahead<br>&nbsp; option page-size 128kB&nbsp;&nbsp;&nbsp;&nbsp; # unit in bytes<br>&nbsp; option page-count 16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # cache per file&nbsp; = (page-count x page-size)<br>
&nbsp; subvolumes ns_iot<br>end-volume<br><br>volume unify_ns&nbsp; # ns_ioc<br>&nbsp; type performance/io-cache<br>&nbsp; option cache-size 128MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # default is 32MB<br>&nbsp; option page-size 128KB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #128KB is default option<br>
&nbsp; # option priority *.h:3,*.html:2,*:1 # default is &#39;*:0&#39;<br>&nbsp; option force-revalidate-timeout 2&nbsp; # default is 1<br>&nbsp; subvolumes ns_readahead<br>end-volume<br><br><br><br>volume unify<br>&nbsp; type cluster/unify<br>&nbsp; subvolumes unify_1 unify_2 unify_3 unify_4&nbsp; unify_5 unify_6<br>
&nbsp; option namespace unify_ns<br>&nbsp; option scheduler rr<br>&nbsp; option rr.limits.min-free-disk 25%<br>&nbsp; option rr.refresh-interval 10<br>end-volume<br><br>volume iot<br>&nbsp; type performance/io-threads<br>&nbsp; option thread-count 4<br>
&nbsp; option cache-size 256MB<br>&nbsp; subvolumes unify<br>end-volume<br><br>volume wb<br>&nbsp; type performance/write-behind<br>&nbsp; option aggregate-size 1MB # default is 0bytes<br>&nbsp; option flush-behind on # default is &#39;off&#39;<br>
&nbsp; subvolumes iot<br>end-volume<br><br>volume readahead<br>&nbsp; type performance/read-ahead<br>&nbsp; option page-size 512kB&nbsp;&nbsp;&nbsp;&nbsp; # unit in bytes<br>&nbsp; option page-count 64&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # cache per file&nbsp; = (page-count x page-size)<br>&nbsp; subvolumes wb<br>
end-volume<br><br>volume ioc<br>&nbsp; type performance/io-cache<br>&nbsp; option cache-size 1024MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # default is 32MB<br>&nbsp; option page-size 1MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #128KB is default option<br>&nbsp; # option priority *.h:3,*.html:2,*:1 # default is &#39;*:0&#39;<br>
&nbsp; option force-revalidate-timeout 2&nbsp; # default is 1<br>&nbsp; subvolumes readahead<br>end-volume<br><br><br>Thanks!<br><br><br><br>-- <br>Le Minh Duc<br>Email: <a href="http://duclm.vn" target="_blank">duclm.vn</a>@<a href="http://gmail.com" target="_blank">gmail.com</a><br>

</div>