[ 
https://issues.apache.org/jira/browse/QUARKS-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15231047#comment-15231047
 ] 

ASF GitHub Bot commented on QUARKS-13:
--------------------------------------

GitHub user vdogaru opened a pull request:

    https://github.com/apache/incubator-quarks/pull/79

    [WIP] QUARKS-13: Start over Quarks when the JVM crashes (Linux)

    Simple mechanism to restart a Quarks application if the JVM running Quarks 
terminates unexpectedly:
     - Sample application which simulates a JVM crash after processing N tuples
     - Script which checks whether the Quarks JVM is still running, otherwise 
it restarts the Quarks sample app
     - Cron entry which runs the script every mnute
     - Readme providing setup instructions

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vdogaru/incubator-quarks QUARKS-13-vdogaru

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-quarks/pull/79.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 #79
    
----
commit 6615560b8b297f7bd07d4db7734e60a5774cef83
Author: Victor Dogaru <[email protected]>
Date:   2016-04-07T20:08:24Z

    QUARKS-13-vdogaru Sample app which terminates the JVM after N tuples

commit bfd1273a22d9e868f01a5dc3587daf53d95f42db
Author: Victor Dogaru <[email protected]>
Date:   2016-04-07T20:09:50Z

    QUARKS-13-vdogaru Script and crontab entry for Quarks jvm monitoring

----


> Start over Quarks when Quarks crashes (Linux)
> ---------------------------------------------
>
>                 Key: QUARKS-13
>                 URL: https://issues.apache.org/jira/browse/QUARKS-13
>             Project: Quarks
>          Issue Type: New Feature
>          Components: Runtime
>            Reporter: Victor Dogaru
>            Assignee: Victor Dogaru
>              Labels: failure-recovery
>
> Thinking of a mechanism which restarts the Quarks application if the JVM 
> running Quarks hangs or closes unexpectedly. These options come to mind:
> - Write a script which checks for the pid of the jvm process running Quarks 
> and restarts Quarks if the pid is not there. Run the script every minute 
> using a cron job.
> - Setup Quarks app to run as a Linux service. Use inittab or systemd to 
> manage Linux services and have options to restart a managed process 
> automatically.
> There is also the hardware option. Embedded platforms frequently rely on 
> watchdog hardware that resets it automatically if software stops periodically 
> signalling the hardware that it is still alive.
> Anyone have any thoughts on this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to