Creating an Auto Action Event
The steps to create a Workload Manager auto action event, which is triggered when a job or query meets the action’s criteria and conditions. For example, when a job uses too much memory it may cause other jobs to fail or increase a job’s runtime. You can create an action that informs you when a job is consuming too much memory.
Verify that you are logged in to the Workload Manager web UI.
In a supported browser, log into the Cloudera Data Platform.
The CDP Public Cloud web interface landing page opens.
- From the Your Enterprise Data Cloud landing page, select the Workload Manager tile.
- In a supported browser, log into the Cloudera Data Platform.
- From the Workload Manager Navigation side-bar, select Auto Actions.
Do one of the following:
The Auto Actions Create page opens.
- If no other auto actions exist, click Auto Actions Setup.
- If other auto actions exist, click Create an Auto Action.
- In the Auto Action Name field, enter a unique name that is easily identifiable.
From the Engine list, do nothing.
(Optional) Define the criteria for the auto action by doing the
- From the Criteria list, choose between Pool and User.
- From the Operator list, choose between ANY OF and NONE OF.
- In the Value field, enter the value for this filter.
Define the trigger for the auto action by doing the following:
- From the Metric list, choose between Memory Allocated (MB) and Application Name.
- From the Operator list, select an operator.
- In the Value field, enter the value for this trigger condition.
- From the Action options, do nothing.
- In the Emails field, enter the email address that you use to log into Workload Manager.
- In the Subject field, enter the subject for the email that distinguishes the subject matter from other auto action emails.
- Click Create, which creates the action and adds
it on the Auto Actions home page.
The Auto Actions page displays the action's configuration and status details in the following entry fields:
- Status, contains the current state of the action, as either Enabled or Disabled.
- Name, contains the unique name you entered for the auto action.
- Action, contains either the command that is to be executed or the function that is to be performed when the action is triggered.
- Engine, contains the selected engine on which the action is to be performed.
- Triggers, contains the action's Trigger conditions.
- Criteria, contains the action's Criteria filters.