[
https://issues.apache.org/jira/browse/OOZIE-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601874#comment-13601874
]
Rohini Palaniswamy commented on OOZIE-1209:
-------------------------------------------
Agree with most of the comments from Tucu. Had an offline conversation with
Tucu on the command queue for publishing notifications and separate monitoring
system.
bq. The EventService should register a runnable (running every 5 secs) in the
SchedulerService that drains the queue, and creates a PublishEventsXCommand
with all the drained events from the queue. Each batch of events would have a
batch ID. Note that with this proposal, we don't have to have a different
threadpool and workers, we just leverage the CommandQueue (because it has
throttling capabilities built in event commands will be capped). The
CommandQueue size and threadpool has to be increased as needed (rather than
duplicating all this logic).
Instead of doing this we will use the same runnable which drains the events
from the queue in a batch to dispatch the events to make it simpler. We will
have more runnables registered with the SchedulerService and increase the size
of threads in SchedulerService by the number of runnables. If not sufficient
threads, then will throw an error on startup. Tucu agreed with this approach
instead of using Command queue.
bq. Furthermore, i would be inclined to move the SLAEvents servlet to the
monitoring system.
Tucu was ok to keep the new SLA monitoring as part of Oozie core till we see
any performance or scalability issues, but wanted it to be written in a way so
that it can be split out easily if required in future. The existing SLA servlet
and sla_events table will be deprecated. The new SLAService will not access the
sla_events tables relying only on the job status change events from
EventHandlerService. This way if it needs to be separated out as a different
service, it can switch to consuming jms notifications for the job status events.
> Event generation and handling for workflow and coordinator
> ----------------------------------------------------------
>
> Key: OOZIE-1209
> URL: https://issues.apache.org/jira/browse/OOZIE-1209
> Project: Oozie
> Issue Type: Sub-task
> Affects Versions: trunk
> Reporter: Mona Chitnis
> Assignee: Mona Chitnis
> Fix For: trunk
>
> Attachments: ConceptualDiagram.png,
> JobNotificationsClassDiagram-draft.jpg
>
> Original Estimate: 672h
> Remaining Estimate: 672h
>
> Oozie will publish notifications for the different types of jobs - workflows
> and coordinators, for monitoring purposes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira