[ 
https://issues.apache.org/jira/browse/NIFI-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376182#comment-15376182
 ] 

ASF GitHub Bot commented on NIFI-619:
-------------------------------------

Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/575#discussion_r70739419
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/MonitorActivity.java
 ---
    @@ -234,4 +361,10 @@ public void process(final OutputStream out) throws 
IOException {
                 }
             }
         }
    +
    +    @OnPrimaryNodeStateChange
    +    public void onPrimaryNodeChange(final PrimaryNodeState newState) {
    +        isPrimaryNode = (newState == 
PrimaryNodeState.ELECTED_PRIMARY_NODE);
    --- End diff --
    
    (adding for transparency) @ijokarumawak and I talked out of band. Current 
thinking is to add another variable to the Initialization Contexts in order to 
know when the component is created if it is clustered or not and if it is on 
the primary node.


> update MonitorActivity processor to be cluster friendly
> -------------------------------------------------------
>
>                 Key: NIFI-619
>                 URL: https://issues.apache.org/jira/browse/NIFI-619
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Brandon DeVries
>            Assignee: Koji Kawamura
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> This processor should be able to be used to monitor activity across the 
> cluster.  In its current state, alerting is based on activity of a single 
> node, not the entire cluster.
> For example, in a 2 node cluster, if system A is getting data from a given 
> flow and system B is not, system B will alert for lack of activity even 
> though the flow is functioning "normally".
> The ideal behavior would be fore an alert to be generated only if both 
> systems did not see data in the specified time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to