12.5. Suppressing Repetitive Log Messages
log-flush-timeout period and by defining a log-buf-size buffer size options with the gluster volume set command.
gluster volume set VOLNAME diagnostics.brick-log-flush-timeout <value in seconds>
# gluster volume set VOLNAME diagnostics.brick-log-flush-timeout <value in seconds>
Example 12.13. Set a timeout period on the bricks
gluster volume set testvol diagnostics.brick-log-flush-timeout 200sec volume set: success
# gluster volume set testvol diagnostics.brick-log-flush-timeout 200sec
volume set: success
gluster volume set VOLNAME diagnostics.client-log-flush-timeout <value in seconds>
# gluster volume set VOLNAME diagnostics.client-log-flush-timeout <value in seconds>
Example 12.14. Set a timeout period on the clients
gluster volume set testvol diagnostics.client-log-flush-timeout 180sec volume set: success
# gluster volume set testvol diagnostics.client-log-flush-timeout 180sec
volume set: success
glusterd:
glusterd --log-flush-timeout=<value in seconds>
# glusterd --log-flush-timeout=<value in seconds>
Example 12.15. Set a timeout period on the glusterd
glusterd --log-flush-timeout=60sec
# glusterd --log-flush-timeout=60sec
The maximum number of unique log messages that can be suppressed until the timeout or buffer overflow, whichever occurs first on the bricks.
gluster volume set VOLNAME diagnostics.brick-log-buf-size <value>
# gluster volume set VOLNAME diagnostics.brick-log-buf-size <value>
Example 12.16. Set a buffer size on the bricks
gluster volume set testvol diagnostics.brick-log-buf-size 10 volume set: success
# gluster volume set testvol diagnostics.brick-log-buf-size 10
volume set: success
gluster volume set VOLNAME diagnostics.client-log-buf-size <value>
# gluster volume set VOLNAME diagnostics.client-log-buf-size <value>
Example 12.17. Set a buffer size on the clients
gluster volume set testvol diagnostics.client-log-buf-size 15 volume set: success
# gluster volume set testvol diagnostics.client-log-buf-size 15
volume set: success
glusterd:
glusterd --log-buf-size=<value>
# glusterd --log-buf-size=<value>
Example 12.18. Set a log buffer size on the glusterd
glusterd --log-buf-size=10
# glusterd --log-buf-size=10
Note