Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-6880

Alerts: Send Definitions Down Via Commands to the Agent

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Ambari agent hosts will receive the alert definitions they are responsible for scheudling via a new command type that is pushed down in the following scenarios:

      • Agent Registration
      • AlertDefinition invalidation

      The commands will be present in a heartbeat response if the server has determined that it thinks the agents need to be made away of which alert definitions are required to be scheduled. A hash value will also be sent along with the commands so that agents can decide if they do not need to reschedule their jobs.

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/)
          AMBARI-6880 - Alerts: Send Definitions Down Via Commands to the Agent (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=8e48128648f0a74942b9e3bcc88261bd2728427e)

          • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java
          • ambari-server/src/test/java/org/apache/ambari/server/agent/TestActionQueue.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java
          • ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/ActionQueue.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/RegistrationResponse.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartbeatMonitor.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/AlertDefinitionCommand.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/AgentCommand.java
          • ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
          • ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinition.java
          • ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java
          • ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/ ) AMBARI-6880 - Alerts: Send Definitions Down Via Commands to the Agent (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=8e48128648f0a74942b9e3bcc88261bd2728427e ) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java ambari-server/src/test/java/org/apache/ambari/server/agent/TestActionQueue.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java ambari-server/src/main/java/org/apache/ambari/server/agent/ActionQueue.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java ambari-server/src/main/java/org/apache/ambari/server/agent/RegistrationResponse.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartbeatMonitor.java ambari-server/src/main/java/org/apache/ambari/server/agent/AlertDefinitionCommand.java ambari-server/src/main/java/org/apache/ambari/server/agent/AgentCommand.java ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinition.java ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java
          Hide
          jonathan.hurley Jonathan Hurley added a comment -

          Example of the new "alertDefinitionsCommands" field inside of an AgentCommand

          {  
             'alertDefinitionCommands':[  
                {  
                   'alertDefinitions':[  
                      {  
                         'componentName':'NAMENODE',
                         'enabled':True,
                         'interval':2,
                         'name':'HDFS-Port',
                         'serviceName':'HDFS'
                      }
                   ],
                   'clusterName':'c1',
                   'commandType':'ALERT_DEFINITION_COMMAND',
                   'hash':'b34f15f605892276f833af7cbc67647c',
                   'hostName':'c6404.ambari.apache.org'
                }
             ]
          }
          
          Show
          jonathan.hurley Jonathan Hurley added a comment - Example of the new "alertDefinitionsCommands" field inside of an AgentCommand { 'alertDefinitionCommands':[ { 'alertDefinitions':[ { 'componentName':'NAMENODE', 'enabled':True, 'interval':2, 'name':'HDFS-Port', 'serviceName':'HDFS' } ], 'clusterName':'c1', 'commandType':'ALERT_DEFINITION_COMMAND', 'hash':'b34f15f605892276f833af7cbc67647c', 'hostName':'c6404.ambari.apache.org' } ] }

            People

            • Assignee:
              jonathan.hurley Jonathan Hurley
              Reporter:
              jonathan.hurley Jonathan Hurley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development