<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt"><div><span><br></span></div><div></div><div>Hi Justin,</div><div><br></div><div>Regarding the server.py script, yes that graph is live and it is refreshed periodically. According to the model right now, the server script at the backend polls the meta directory of mounted volumes repeatedly, calculates the speed from the difference of values encountered and stores it. Another thread on the server flushes this data to the webpage as and when the server is accessed through a browser. The current interval of requests done from server to mounted volume and from browser to server is 1 sec.</div><div><br></div><div>On the other note, I'm not sure that io-stats stores stats related to a specific directory or inode as of know, IIRC. As Krishnan said, we'll have to look into other methods if we intend to
 do that.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; font-style: normal; background-color: transparent;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; font-style: normal; background-color: transparent;"><span style="background-color:transparent;line-height:1.22;">Vipul Nayyar&nbsp;</span></div><div style="color: rgb(0, 0, 0); font-size: 12.727272033691406px; font-family: arial, helvetica, clean, sans-serif; font-style: normal; background-color: transparent;"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial">
 On Thursday, 4 September 2014 3:17 AM, Justin Clift &lt;justin@gluster.org&gt; wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">On 03/09/2014, at 3:48 PM, Vipul Nayyar wrote:<br clear="none">&lt;snip&gt;<br clear="none">&gt; 3) server.py which is a web server written with very basic python libraries. I've attached some screenshots of the server in action while visualizing live data from gluster mounts in the form of web based graphs.<br clear="none">&gt; <br clear="none">&gt; Justin, since this web server implementation is a bit similar to your tool glusterflow, your feedback regarding this is really important and valuable.<br clear="none"><br clear="none">Thanks.&nbsp; Server.py is the bit that caught my attention too. :)<br clear="none"><br clear="none">I like the screenshots.&nbsp; Does server.py update/refresh in real-time?<br clear="none"><br clear="none">Also, one thing that's missing in the screenshots is the time info<br
 clear="none">on the X axis.&nbsp; eg how far apart are each of the tick marks on the<br clear="none">x axis?&nbsp; Minor oversight, but important. ;)<br clear="none"><br clear="none"><br clear="none">&gt; Some key points for those who want to test this thing.<br clear="none">&gt; <br clear="none">&gt; • Apply this patch <a shape="rect" href="http://review.gluster.org/#/c/8244/" target="_blank">http://review.gluster.org/#/c/8244/ </a>, build and install.<br clear="none">&gt; • Please grab the latest source code from <a shape="rect" href="https://forge.gluster.org/glusterfsiostat" target="_blank">https://forge.gluster.org/glusterfsiostat</a><br clear="none">&gt; • Profiling needs to be turned on for the volumes regarding which you want I/O data.<br clear="none">&gt; • Run the cmd line tool by `python stat.py` Giving --help tag would list the other options.<br clear="none">&gt; • Start the server.py script in the same way and point your browser
 at 'localhost:8080'<br clear="none">&gt; • The gluster mounts would be visible as separate tabs on the left in browser. Click on a tab to see the related graphs.<br clear="none">&gt; • Since these graphs show live I/O activity, you need to run a read/write operation to see the graphs in action.<br clear="none">&gt; Please do contact me regarding any suggestions or thoughts about this.<br clear="none"><br clear="none">This is is very cool.&nbsp; As a thought, since I don't know the code<br clear="none">at all, is could it do stuff for parts of a volume?<br clear="none"><br clear="none">For example in the server.py GUI a person could give a directory<br clear="none">path inside a volume, and it would show the IO operations stats<br clear="none">for just that path?<div class="yqt8885274650" id="yqtfd27815"><br clear="none"><br clear="none">+ Justin</div><br clear="none"><br clear="none">--<br clear="none">GlusterFS - <a shape="rect"
 href="http://www.gluster.org/" target="_blank">http://www.gluster.org</a><br clear="none"><br clear="none">An open source, distributed file system scaling to several<br clear="none">petabytes, and handling thousands of clients.<br clear="none"><br clear="none">My personal twitter: twitter.com/realjustinclift<div class="yqt8885274650" id="yqtfd16754"><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>