Bug 1467543

Summary: Suggest how to recognize the time when self-heal is triggered by using events
Product: [Community] GlusterFS Reporter: alghost <alghost.lee>
Component: selfhealAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: mainlineCC: alghost.lee, bugs, ksubrahm, pkarampu, ravishankar, rkavunga
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: events, afr Reason: Cannnot recognize the time when heal is triggered. Result: events are triggered when heal is raised
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-12 12:29:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch file to raise events when heal is triggered
none
heal_events.patch none

Description alghost 2017-07-04 07:41:34 UTC
Created attachment 1294101 [details]
patch file to raise events when heal is triggered

Description of problem:

I cannot recognize the time when heal is triggered.

I'm sure that performance is affected by heal.

So administrators have to know whether the volume is being healed or not.

Event is one of the best way how to recognize it, I think.

So I want you to consider adding gf_event(...) into afr xlator like the patch attached


Version-Release number of selected component (if applicable): 
3.9, 3.10 and mainline


How reproducible:
nothing

Steps to Reproduce:
nothing

Actual results:
nothing

Expected results:
nothing

Additional info:
nothing

Comment 1 alghost 2017-07-06 05:50:02 UTC
Created attachment 1294822 [details]
heal_events.patch

Add more events to know how files are healed.

It try to raise the event every 10 seconds at least.

if a file which is being healed is taken for longer than 10 secs, It should wait until the file is healed.

Comment 2 Worker Ant 2017-07-06 07:46:37 UTC
REVIEW: https://review.gluster.org/17712 (heal, event: raise events for heal) posted (#1) for review on master by Taehwa Lee (alghost.lee)

Comment 3 Worker Ant 2017-07-07 04:58:33 UTC
REVIEW: https://review.gluster.org/17712 (heal, event: raise events for heal) posted (#2) for review on master by Taehwa Lee (alghost.lee)

Comment 4 Worker Ant 2017-07-21 00:59:03 UTC
REVIEW: https://review.gluster.org/17712 (heal, event: raise events for heal) posted (#3) for review on master by Taehwa Lee (alghost.lee)

Comment 5 Worker Ant 2017-07-21 01:20:58 UTC
REVIEW: https://review.gluster.org/17712 (heal, event: raise events for heal) posted (#4) for review on master by Taehwa Lee (alghost.lee)

Comment 6 Worker Ant 2020-03-12 12:29:03 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/893, and will be tracked there from now on. Visit GitHub issues URL for further details