Re: [Gluster-users] monitor connections and activity?

2010-11-05 Thread Craig Carl
Michael - 
My directions were not clear, sorry. 

(YES|NO) and (ON|OFF) are completely interchangeable, I will work on getting 
the documentation more consistent. 

In my example /mnt/client2 is the Gluster native mount point, if you don't 
usually use the Gluster native client in your environment you can just install 
it on any Gluster server and mount it there. 

The ` setfattr -n glusterfs.io.stats.dump ` command is a little disingenuous in 
this case, it is just a trigger that the glusterd service intercepts and then 
dumps the stats out to the standard Gluster log file, usually in 
/var/log/glusterfs/. No attribute ever gets set on a file, that is why you get 
the " setfattr: /mnt/gluster-test: Operation not supported" error, which you 
can ignore. 

You can also set `latency-measurement on` and `dump-fd-stats on` on a running 
volume without a problem. Every time you dump the stats they all reset to 0, 
you might for example setup a cron job to dump the stats nightly. 

The stats are pretty self explanatory, please let us know if you have any 
specific questions. 





Thanks, 
Craig 

--> 
Craig Carl 



Gluster, Inc. 
Cell - (408) 829-9953 (California, USA) 
Gtalk - craig.c...@gmail.com 


From: "Michael Robbert"  
To: "Craig Carl"  
Cc: gluster-users@gluster.org 
Sent: Friday, November 5, 2010 3:03:29 PM 
Subject: Re: [Gluster-users] monitor connections and activity? 

Craig, 
I have some questions about these instructions. First is a conflict with the 
documentation on the first 2 commands. The web page: 
http://www.gluster.com/community/documentation/index.php/Gluster_3.1:_Setting_Volume_Options
 
describes those options as having a parameter of yes/no, not on/off. Do both 
work or just one? The CLI accepts both and sets the option in the vol files 
accordingly, but I haven't seen any results yet. 
I'm also curious about the setfattr command, which may be the reason I'm not 
getting any results yet. You don't specify, but I'm guessing that command needs 
to be run on a client. I'm also guessing that /mnt/client2 is supposed to be 
the mount point where the gluster file system is mounted. You say that "The" 
error message reported by setfattr can be ignored. I get the error message: 
setfattr: /mnt/gluster-test: Operation not supported 
Then after that getfattr shows no attributes on the mount point that I 
specified. Is that the "The" error message that can be ignored? 
Finally can you be more specific about where we should see the stats and is it 
documented anywhere what they mean or is it pretty self explanatory when they 
are seen? Should they be in /tmp/, if not what is that file for, or 
in /var/log/glusterfs/ on the client? 

Thanks, 
Mike Robbert 

On Nov 5, 2010, at 1:20 AM, Craig Carl wrote: 

> Matt - 
> We have Gluster top and some other monitoring tools in the works, in the 
> meantime the Gluster profiler in 3.1 can get you some stats - 
> 
> #gluster volume set  diagnostics.latency-measurement on 
> #gluster volume set  diagnostics.dump-fd-stats on 
> #gluster volume start  
> #setfattr -n glusterfs.io.stats.dump -v /tmp/ /mnt/client2 
> 
> The error message reported by setfattr can be ignored. Latency and fd-stats 
> data would be present in the respective log files of the glusterfs processes. 
> 
> 
> 
> 
> Thanks, 
> Craig 
> 
> --> 
> Craig Carl 
> 
> 
> 
> Gluster, Inc. 
> Cell - (408) 829-9953 (California, USA) 
> Gtalk - craig.c...@gmail.com 
> 
> 
> From: "Matt Hodson"  
> To: gluster-users@gluster.org 
> Sent: Thursday, November 4, 2010 11:32:31 AM 
> Subject: [Gluster-users] monitor connections and activity? 
> 
> Is there a way using gluster to monitor number of mounts to a gluster 
> cluster and any current activity? 
> 
> 
> --- 
> Matt Hodson 
> Scientific Customer Support, Geospiza 
> (206) 633-4403, Ext. 111 
> http://www.geospiza.com 
> 
> 
> 
> 
> 
> ___ 
> Gluster-users mailing list 
> Gluster-users@gluster.org 
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users 
>  

___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] monitor connections and activity?

2010-11-05 Thread Michael Robbert
Craig,
I have some questions about these instructions. First is a conflict with the 
documentation on the first 2 commands. The web page: 
http://www.gluster.com/community/documentation/index.php/Gluster_3.1:_Setting_Volume_Options
describes those options as having a parameter of yes/no, not on/off. Do both 
work or just one? The CLI accepts both and sets the option in the vol files 
accordingly, but I haven't seen any results yet. 
I'm also curious about the setfattr command, which may be the reason I'm not 
getting any results yet. You don't specify, but I'm guessing that command needs 
to be run on a client. I'm also guessing that /mnt/client2 is supposed to be 
the mount point where the gluster file system is mounted. You say that "The" 
error message reported by setfattr can be ignored. I get the error message:
setfattr: /mnt/gluster-test: Operation not supported
Then after that getfattr shows no attributes on the mount point that I 
specified. Is that the "The" error message that can be ignored? 
Finally can you be more specific about where we should see the stats and is it 
documented anywhere what they mean or is it pretty self explanatory when they 
are seen? Should they be in /tmp/, if not what is that file for, or 
in /var/log/glusterfs/ on the client?

Thanks,
Mike Robbert

On Nov 5, 2010, at 1:20 AM, Craig Carl wrote:

> Matt - 
> We have Gluster top and some other monitoring tools in the works, in the 
> meantime the Gluster profiler in 3.1 can get you some stats - 
> 
> #gluster volume set  diagnostics.latency-measurement on 
> #gluster volume set  diagnostics.dump-fd-stats on 
> #gluster volume start  
> #setfattr -n glusterfs.io.stats.dump -v /tmp/ /mnt/client2 
> 
> The error message reported by setfattr can be ignored. Latency and fd-stats 
> data would be present in the respective log files of the glusterfs processes. 
> 
> 
> 
> 
> Thanks, 
> Craig 
> 
> --> 
> Craig Carl 
> 
> 
> 
> Gluster, Inc. 
> Cell - (408) 829-9953 (California, USA) 
> Gtalk - craig.c...@gmail.com 
> 
> 
> From: "Matt Hodson"  
> To: gluster-users@gluster.org 
> Sent: Thursday, November 4, 2010 11:32:31 AM 
> Subject: [Gluster-users] monitor connections and activity? 
> 
> Is there a way using gluster to monitor number of mounts to a gluster 
> cluster and any current activity? 
> 
> 
> --- 
> Matt Hodson 
> Scientific Customer Support, Geospiza 
> (206) 633-4403, Ext. 111 
> http://www.geospiza.com 
> 
> 
> 
> 
> 
> ___ 
> Gluster-users mailing list 
> Gluster-users@gluster.org 
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users 
> 

___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] monitor connections and activity?

2010-11-05 Thread Craig Carl
Matt - 
We have Gluster top and some other monitoring tools in the works, in the 
meantime the Gluster profiler in 3.1 can get you some stats - 

#gluster volume set  diagnostics.latency-measurement on 
#gluster volume set  diagnostics.dump-fd-stats on 
#gluster volume start  
#setfattr -n glusterfs.io.stats.dump -v /tmp/ /mnt/client2 

The error message reported by setfattr can be ignored. Latency and fd-stats 
data would be present in the respective log files of the glusterfs processes. 




Thanks, 
Craig 

--> 
Craig Carl 



Gluster, Inc. 
Cell - (408) 829-9953 (California, USA) 
Gtalk - craig.c...@gmail.com 


From: "Matt Hodson"  
To: gluster-users@gluster.org 
Sent: Thursday, November 4, 2010 11:32:31 AM 
Subject: [Gluster-users] monitor connections and activity? 

Is there a way using gluster to monitor number of mounts to a gluster 
cluster and any current activity? 


--- 
Matt Hodson 
Scientific Customer Support, Geospiza 
(206) 633-4403, Ext. 111 
http://www.geospiza.com 





___ 
Gluster-users mailing list 
Gluster-users@gluster.org 
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users 
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


[Gluster-users] monitor connections and activity?

2010-11-04 Thread Matt Hodson
Is there a way using gluster to monitor number of mounts to a gluster  
cluster and any current activity?



---
Matt Hodson
Scientific Customer Support, Geospiza
(206) 633-4403, Ext. 111
http://www.geospiza.com




___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users