You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/07/09 05:53:04 UTC
[jira] [Commented] (TWILL-116) Support for restart instances of
runnable in an application
[ https://issues.apache.org/jira/browse/TWILL-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619839#comment-14619839 ]
ASF GitHub Bot commented on TWILL-116:
--------------------------------------
GitHub user hsaputra opened a pull request:
https://github.com/apache/incubator-twill/pull/52
[WIP] TWILL-116 Support for restart instances of runnable in an application
NOTE: Please do not merge or review this. Send initial PR to trigger Travis.
Add support to restart certain or all instances of runnables in a Twill application.
See proposed design attached to the JIRA: https://issues.apache.org/jira/browse/TWILL-116
Summary of changes:
1. Add new APIs to TwillController to restart all or certain instances of runnables.
2. Support message handler in ApplicationMasterService for restart instances.
3. Add new class UpdateRunnableStateResult to represent update result.
4. Modify RunningContainers to launch new container using same instance id to support restart for a runnable.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hsaputra/incubator-twill twill-116_runnable_instances_lifecycle
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-twill/pull/52.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #52
----
commit f22edcf21085c1dc5d0ba5f88c5705beedcbd200
Author: hsaputra <hs...@apache.org>
Date: 2015-06-27T05:19:24Z
TWILL-116 Add TwillRunnable instances lifecycle management.
----
> Support for restart instances of runnable in an application
> -----------------------------------------------------------
>
> Key: TWILL-116
> URL: https://issues.apache.org/jira/browse/TWILL-116
> Project: Apache Twill
> Issue Type: New Feature
> Components: core
> Reporter: Albert Shau
> Assignee: Henry Saputra
> Fix For: 0.6.0-incubating
>
> Attachments: TWILL-116-design-4.pdf, TWILL-116-design-5.pdf, TWILL-116-design-6.pdf, TWILL-116-design-7.pdf, TWILL-116-design-final-2.pdf
>
>
> Once an application is running, it would be good to be able to stop, start, and restart a specific runnable of the application without affecting other runnables.
> For example, I may be running multiple services in a single application, with each service as a different runnable. One of my services gets into an invalid state. I now want to restart just that runnable and not the other ones that are running properly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)