[
https://issues.apache.org/jira/browse/UIMA-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689904#action_12689904
]
Burn Lewis commented on UIMA-1109:
----------------------------------
Investigation has shown that the java logfile has been closed when the shutdown
hooks run, but java signal handlers are OK as they are run before it is closed.
So we could trigger a graceful shutdown by sending a signal to the JVM running
deployAsyncService. On Windows only SIG_INT is supported (Cntl-C) but since
the process runs in the foreground it could simply wait for a "Shutdown"
request to be entered at the terminal.
A more elegant suggestion was to use JMX messaging, identifying a particular
service by an ID generated at startup.
> Need ability to quiesce an instance of a service
> ------------------------------------------------
>
> Key: UIMA-1109
> URL: https://issues.apache.org/jira/browse/UIMA-1109
> Project: UIMA
> Issue Type: Improvement
> Components: Async Scaleout
> Reporter: Burn Lewis
>
> We can deploy extra instances of a service seamlessly but also need a
> mechanism to undeploy without losing any work, i.e. ask an instance to stop
> processing messages and shutdown when it finishes its current work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.