A "cool" failure mode which gives no real useful information at debug level ... and how to fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Along those lines, insert key->value pairs into your logs, and then run something like Splunk or logstash over them. Can be an easy way to do performance monitoring and analytics. 

-JM


----- Original Message -----
> On 01/18/2012 01:29 PM, Daniel Taylor wrote:
> > Thanks. We saw something very similar with root filesystem damage
> > on one
> > of our nodes locking access to the clusters it was a member of.
> >
> > Better logging wouldn't have helped there, since it was clobbering
> > the
> > glusterd logfile, but it does make me wonder if it isn't possible
> > to get
> > smarter error messages for host filesystem access issues?
> 
> Yeah ...
> 
> I might start going through the code and add bunches of
> 
> 	if (!open(...)) {
> 
>          }
> 
> crap if its not in there now.  My code (mostly Perl these days,
> though
> some C and others) tends to have that, as I like our customers to
> call
> us up and tell us "hey the code said it can't write to file /x/y/z
> because the permissions are wrong, and we need to change ownership
> ...
> what does that mean?".  Makes support much easier.
> 
> >
> 
> 
> --
> Joseph Landman, Ph.D
> Founder and CEO
> Scalable Informatics Inc.
> email: landman at scalableinformatics.com
> web  : http://scalableinformatics.com
>         http://scalableinformatics.com/sicluster
> phone: +1 734 786 8423 x121
> fax  : +1 866 888 3112
> cell : +1 734 612 4615
> 
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
> 


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux