<div dir="ltr">Hi guys, I&#39;ve been reading a bit about caching in gluster volumes, but I still don&#39;t get a few things. I set up a gluster replica 2 volume like this:<div><br></div><div><div>[root@gluster-test-1 ~]# gluster vol info vol_rep</div>
<div>Volume Name: vol_rep</div><div>Type: Replicate</div><div>Volume ID: b77db06d-2686-46c7-951f-e43bde21d8ec</div><div>Status: Started</div><div>Number of Bricks: 1 x 2 = 2</div><div>Transport-type: tcp</div><div>Bricks:</div>
<div>Brick1: gluster-test-1:/ladrillos/l1/l</div><div>Brick2: gluster-test-2:/ladrillos/l1/l</div><div>Options Reconfigured:</div><div>performance.cache-min-file-size: 90MB</div><div>performance.cache-max-file-size: 256MB</div>
<div>performance.cache-refresh-timeout: 60</div><div>performance.cache-size: 256MB</div><div>[root@gluster-test-1 ~]# <br></div><div><br></div><div>Then I mounted the volume with gluster client on another machine. I created an 80Mbytes file called 80, and here you have the reading test:</div>
<div><br></div><div><div>[root@gluster-client-1 gluster_vol]# dd if=/mnt/gluster_vol/80 of=/dev/null bs=1M</div><div>80+0 records in</div><div>80+0 records out</div><div>83886080 bytes (84 MB) copied, 1,34145 s, 62,5 MB/s</div>
<div>[root@gluster-client-1 gluster_vol]# dd if=/mnt/gluster_vol/80 of=/dev/null bs=1M</div><div>80+0 records in</div><div>80+0 records out</div><div>83886080 bytes (84 MB) copied, 0,0246918 s, 3,4 GB/s</div><div>[root@gluster-client-1 gluster_vol]# dd if=/mnt/gluster_vol/80 of=/dev/null bs=1M</div>
<div>80+0 records in</div><div>80+0 records out</div><div>83886080 bytes (84 MB) copied, 0,0195678 s, 4,3 GB/s</div><div>[root@gluster-client-1 gluster_vol]# </div></div><div><br></div><div>Cache is working flawlessly, (even though that 80 Mbytes is smaller than the min-file-size value, but I don&#39;t care about it right now) what I don&#39;t get is where cache is being stored. Is it stored on the client side or on the server side? According to documentation, the io-cache translator could be loaded on both sides (client and server), how can I know where it is being loeaded? It looks like as it was being stored locally because of the speed, but I&#39;d like to be sure.</div>
<div><br></div><div>Thanks!</div><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José<div>Blog - <a href="http://viviendolared.blogspot.com" target="_blank">http://viviendolared.blogspot.com</a></div></div>
</div></div>