accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-925) Launch scripts should use a PIDfile
Date Mon, 29 Jun 2015 22:07:04 GMT


Josh Elser commented on ACCUMULO-925:

Found another issue with process not being stopped correctly on remote hosts, but this was
a simple fix. Can't do it all in one SSH command (at least I can't figure it out). The old
scripts did two SSH's here (can't effectively get the PID from the file and substitute other
variables in the same SSH command).

One other thing this made me realize is that the ACCUMULO_PID_DIR will need to be the same
across all nodes. The scripts will check the wrong location if this is not the case. We can
support this, but I'm not sure if it's a big concern initially.

> Launch scripts should use a PIDfile
> -----------------------------------
>                 Key: ACCUMULO-925
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: scripts
>            Reporter: Christopher Tubbs
>            Assignee: Billie Rinaldi
>             Fix For: 1.8.0
>         Attachments: ACCUMULO-925.1.patch, ACCUMULO-925.2.patch
> Start scripts should create PIDfiles to store the PID of running processes in a well
known location (example: /var/run/accumulo/ or $ACCUMULO_HOME/, for
the following benefits:
> # Identify running services on a machine without executing and parsing the system process
list, so stop scripts can kill them when they are unresponsive.
> # Prevent multiple instances of the same application from starting up (an environment
variable for the location of the PIDfile can be used to allow multiple instances if it is
desirable to do so).
> # Potentially provide an alternate mechanism for terminating a process by deleting its
PIDfile rather than its lock in Zookeeper.

This message was sent by Atlassian JIRA

View raw message