SLA for Workflow Parameters
You can set Service Level Agreement (SLA) parameters within most action node configurations or you can set them from the Settings menu so they are applied to all workflows. Settings in the action node dialog box override the global settings.
Enabling SLA results in alerts being generated whenever an SLA time is missed. You can also have alerts sent as email notifications. SLA settings do not impact whether or not a job runs or completes. If a job misses SLA and you want the job to stop, you must manually stop the job.
If SLA is defined for a workflow action that is not in the execution path because of a decision node, you get an SLA_MISS notification.
For more information, see Apache Oozie SLA Monitoring.
Table 8.5. SLA for Workflows Parameters
Parameter Name | Description | Additional Information | Example |
---|---|---|---|
Enabled | Enables or disables the SLA settings. | After enabling SLA, you must, at minimum, set the Nominal Time and the Should End time to receive email notifications if those times are missed by the job. | |
Nominal Time | The ideal time you want the job to start. |
This is the time relative to which your jobs' SLAs are calculated. Must be set to a future time or date. The date and time fan be set by using the calendar feature or by using EL expressions. |
Calendar date: 3:00 AM on 22 August 2017, IST timezone. |
Should Start | The amount of time (in minutes, hours, or days) within which a job should start to meet SLA. |
"Should Start" time is relative to the nominal time. Optional setting. The date and time fan be set by using the calendar feature or by using a variable. Can also be set as a cron job. | If the nominal start time is 3:00 AM IST on 22 August 2017 and the job should start within 20 minutes of the nominal start time to meet SLA, set "Should Start" to 3:20 AM, 22 August. |
Should End | The amount of time (in minutes, hours, or days) within which a job should finish to meet SLA. |
"Should End" time is relative to the nominal time. The date and time fan be set by using the calendar feature or by using a variable. Can also be set as a cron job. | If the nominal start time is 3:00 AM IST on 22 August 2017 and the job should end within 90 minutes of the ideal start time to meet SLA, set "Should End" to 4:30 AM, 22 August. |
Max Duration | The maximum amount of time (in minutes, hours, or days) that you expect the job to run. |
Optional setting. The date and time fan be set by using the calendar feature or by using a variable. Can also be set as a cron job. | If the nominal start time is 3:00 AM IST on 22 August 2017 and you expect the job to end within 90 minutes of the ideal start time, set "Max Duration" to 4:30 AM, 22 August. |
Alert Events | You can select to have alerts sent if the job misses its start, end, or duration times. | Optional setting. | |
Alert Emails | The email addresses to which alerts should be sent. | Optional setting. |