[Gluster-users] How to eliminate the spam log in etc-glusterfs-glusterd.vol.log

Krishnan Parthasarathi kparthas at redhat.com
Tue Sep 9 06:11:06 UTC 2014


XiaoZan,

The socket_connect error logs that you are observing are
not really spam logs. With this snippet of log it's impossible
to say why you are seeing these logs. The reason you see the log
message repeat is because gluster's transport layer tries to 
connect once every 3s until it successfully establishes the connection.

It would be good to check if any of your bricks, gluster-nfs, glustershd
process are down.

Additionally, you could add your observations to https://bugzilla.redhat.com/show_bug.cgi?id=1114847.
This bug tracks a similar excessive logging problem in the transport layer.
I could improve my patch (review.gluster.org/#/c/8210/) to solve this problem
too.

~KP

----- Original Message -----
> Hi, everyone,
> 
>       I installed glusterfs 3.4.4. on 9 nodes, and create a
> distributed、replica volume, with the following parameters set:
> 
>      diagnostics.client-log-level: WARNING
>      diagnostics.brick-log-level: WARNING
>      performance.write-behind: off
>      performance.io-cache: off
>      cluster.self-heal-daemon: on
>     performance.io-thread-count: 8
>     nfs.disable: on
>     server.allow-insecure: on
>    diagnostics.latency-measurement: on
>    diagnostics.count-fop-hits: on
> 
>    But when I start glusterfs, there are many spam logs in the log file
> "etc-glusterfs-glusterd.vol.log", such as:
> 
> [2014-09-09 03:00:25.084643] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:28.085060] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:31.085468] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:34.085957] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:37.086428] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:40.086839] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:43.087247] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:46.087692] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:49.088223] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> [2014-09-09 03:00:52.088742] E [socket.c:2788:socket_connect]
> 0-management: connection attempt failed (Connection refused)
> 
> A log entry was appended every 3-4 seconds.
> 
> How can i get the spam logs off?
> 
> Thanks!
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users


More information about the Gluster-users mailing list