Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-592

Add --force flag to pmm-admin stop

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.3
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2017/April/01-15(1.1.3)

      Description

      Currently, if connection to pmm-server is lost (think about removing the container and not the client, or if you want to stop a client while the Docker daemon is not running) one has to kill the pmm-admin processes still running, because pmm-admin stop will refuse to work:

      # pmm-admin stop --all
      Unable to connect to PMM server by address: 192.168.1.11
      
      * Check if the configured address is correct.
      * If server is running on non-default port, ensure it was specified along with the address.
      * If server is enabled for SSL or self-signed SSL, enable the corresponding option.
      * You may also check the firewall settings.
      
      # ps aux | grep pm[m] | awk {'print $2'}
      923
      2540
      2547
      2566
      2572
      

      Even if we kill them, they respawn:

      ps aux | grep pm[m] | awk {'print $2'} | xargs kill
      
      ps aux | grep pm[m] | awk {'print $2'}
      3125
      3126
      3137
      3139
      3150
      

      For this not to happen, one has to use `pmm-admin uninstall`, which is not desirable if one simply wants to temporarily stop the client services.

      Requested feature:

      Add a --force switch to `pmm-admin stop` for these cases, or make the stop functionality independent of the pmm-server container.

      Thanks!
      Agustín.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                kamil.dziedzic Kamil Dziedzic (Inactive)
                Reporter:
                agustin.gallego Agustín Gallego
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: