<div dir="ltr">Hello all!<br><br>Sorry in advanced for the noob questions to follow.<br><br>I have implemented Gluster over private GigE to sync files between my two web servers.&nbsp; The plan is in the future to add more webservers and set these two boxes up as dedicated glusterFS boxes but for now they also need to be serving the content they are duplicating.&nbsp; I am noticing small lag when we have more then a few hundred active visitors to the site and need to figure out where its coming from before football season official gets into swing when we will have 8000+ unique visitors at any given time.&nbsp;&nbsp; I am currently exporting /dev/sda7 as /mnt/gluster then mounting it using the client on /home.&nbsp; I am wondering if I am doing it the in the most efficient way and what io/thread settings I should look into.&nbsp; Each of these servers has 4GB of ram, with plenty of extra memory for cache if needed.&nbsp; The files don&#39;t change very often (in fact really only when a new image or avatar is uploaded via the forums) but I don&#39;t really know how to tweak gluster yet.&nbsp; Here is my current configs on both servers, it is exactly the same.&nbsp; <br>
<br>[root@web2 glusterfs]# cat glusterfs-server.vol<br>volume brick<br>&nbsp;&nbsp;&nbsp; type storage/posix<br>&nbsp;&nbsp;&nbsp; option directory /mnt/gluster<br>end-volume<br><br>volume server<br>&nbsp;&nbsp;&nbsp; type protocol/server<br>&nbsp;&nbsp;&nbsp; option transport-type tcp/server<br>
&nbsp;&nbsp;&nbsp; subvolumes brick<br>&nbsp;&nbsp;&nbsp; option auth.ip.brick.allow <a href="http://172.16.1.18">172.16.1.18</a>* # Allow access to brick<br>end-volume<br><br><br>[root@web2 glusterfs]# cat glusterfs-client.vol<br>volume brick1<br>&nbsp;&nbsp;&nbsp; type protocol/client<br>
&nbsp;&nbsp;&nbsp; option transport-type tcp/client # for TCP/IP transport<br>&nbsp;&nbsp;&nbsp; option remote-host <a href="http://172.16.1.181">172.16.1.181</a>&nbsp;&nbsp; # IP address of server1<br>&nbsp;&nbsp;&nbsp; option remote-subvolume brick&nbsp;&nbsp;&nbsp; # name of the remote volume on server1<br>
&nbsp;&nbsp;&nbsp; option transport-timeout 10<br>end-volume<br><br>volume brick2<br>&nbsp;&nbsp;&nbsp; type protocol/client<br>&nbsp;&nbsp;&nbsp; option transport-type tcp/client # for TCP/IP transport<br>&nbsp;&nbsp;&nbsp; option remote-host <a href="http://172.16.1.182">172.16.1.182</a>&nbsp;&nbsp; # IP address of server2<br>
&nbsp;&nbsp;&nbsp; option remote-subvolume brick&nbsp;&nbsp;&nbsp; # name of the remote volume on server2<br>&nbsp;&nbsp;&nbsp; option transport-timeout 10<br>end-volume<br><br>volume afr<br>&nbsp;&nbsp; type cluster/afr<br>&nbsp;&nbsp; subvolumes brick1 brick2<br>end-volume<br><br>Any help/suggestions would be very much appreciated!<br>
<br clear="all"><br>-- <br>Salvatore &quot;Popsikle&quot; Poliandro<br>Founder - CaffeineLAN.net<br><br>Wanna help the LAN?<br>
</div>