Skip to content

Instantly share code, notes, and snippets.

@mikepea
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save mikepea/b148cd2129f64ae1acc4 to your computer and use it in GitHub Desktop.

Select an option

Save mikepea/b148cd2129f64ae1acc4 to your computer and use it in GitHub Desktop.

Revisions

  1. mikepea revised this gist Dec 15, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gearman_monitoring.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@
    ### Number of jobs in the queue

    ```
    # Should be an integer if queue is present and gearman running.
    gearadmin --status | grep "^${QUEUE_NAME}" | awk '{print $2}'
    ```

  2. mikepea created this gist Dec 15, 2014.
    29 changes: 29 additions & 0 deletions gearman_monitoring.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@

    # Monitoring Gearman




    ### Number of jobs in the queue

    ```
    gearadmin --status | grep "^${QUEUE_NAME}" | awk '{print $2}'
    ```


    ### Gearman running or not

    ```
    # Matches == running; no-match == not running
    gearadmin --status | grep '^\.'
    ```

    ### Number of workers processing the queue

    ```
    # should be >= 1
    gearadmin --status | grep "^${QUEUE_NAME}" | awk '{print $4}'
    ```