Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement stats-tube command #43

Open
vimukthi-git opened this issue May 14, 2017 · 0 comments
Open

Implement stats-tube command #43

vimukthi-git opened this issue May 14, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@vimukthi-git
Copy link
Member

The stats-tube command gives statistical information about the specified tube
if it exists. Its form is:

stats-tube <tube>\r\n
  • is a name at most 200 bytes. Stats will be returned for this tube.

The response is one of:

  • "NOT_FOUND\r\n" if the tube does not exist.

  • "OK \r\n\r\n"

    • is the size of the following data section in bytes.

    • is a sequence of bytes of length from the previous line. It
      is a YAML file with statistical information represented a dictionary.

The stats-tube data is a YAML file representing a single dictionary of strings
to scalars. It contains these keys:

  • "name" is the tube's name.

  • "current-jobs-urgent" is the number of ready jobs with priority < 1024 in
    this tube.

  • "current-jobs-ready" is the number of jobs in the ready queue in this tube.

  • "current-jobs-reserved" is the number of jobs reserved by all clients in
    this tube.

  • "current-jobs-delayed" is the number of delayed jobs in this tube.

  • "current-jobs-buried" is the number of buried jobs in this tube.

  • "total-jobs" is the cumulative count of jobs created in this tube in
    the current beanstalkd process.

  • "current-using" is the number of open connections that are currently
    using this tube.

  • "current-waiting" is the number of open connections that have issued a
    reserve command while watching this tube but not yet received a response.

  • "current-watching" is the number of open connections that are currently
    watching this tube.

  • "pause" is the number of seconds the tube has been paused for.

  • "cmd-delete" is the cumulative number of delete commands for this tube

  • "cmd-pause-tube" is the cumulative number of pause-tube commands for this
    tube.

  • "pause-time-left" is the number of seconds until the tube is un-paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant