Page MenuHomePhabricator

Add monitoring for disabled grid nodes to the prometheus collector
Closed, ResolvedPublic


There's nothing that collects the state of grid queues (and thus nodes) in Toolforge. We've found states before where we are surprised by several queues disabled because of errors on the nodes. A queue in this sense in SGE is a host within a specific queue context (such as

Collecting that info so it can be displayed on tools-basic-alerts or similar should help.

So far we've found that errors with the webservice script itself (since it is involved in job submission and such) is enough to drop a queue, but LDAP errors on job submission will do the same (putting the queue into the "e" state, which is just as useless as the "d" or depooled state or the "au" or unreachable state). This can, if it happens repeatedly on various queue/host combinations, take the entire grid offline in time.

Remediation is documented for error states at:
However, for error states, it can be reset as simply as qmod -c '*' if you aren't worried about troubleshooting.

We need at least an email or mention on tools-basic-alerts if the number of available node queues is declining (and if any are in a persistent "e" state).


Related Gerrit Patches:

Event Timeline

Bstorm claimed this task.Feb 11 2019, 10:16 PM
Bstorm triaged this task as High priority.
Bstorm created this task.
Bstorm added a comment.Mar 7 2019, 5:08 PM

Apparently, LDAP timeouts under certain conditions can leave a queue in the "e" state, which is effectively disabled T217280#5007467

Bstorm updated the task description. (Show Details)Mar 7 2019, 5:15 PM
Bstorm moved this task from Inbox to Important on the cloud-services-team (Kanban) board.
Bstorm updated the task description. (Show Details)
bd808 added a subscriber: bd808.Mar 8 2019, 1:10 AM

Using qstat -explain aAcE -xml may be the best way to find these. Here's a sub-record showing a queue in E state:

  <message>queue task marked QERROR as result of job 622967&apos;s failure at host</message>

Here's a normal state sub-record:


<state/> only shows up records for queue nodes that are in some type of distress.

  • ‘c’ displays the reason for the c(onfiguration ambiguous) state of a queue instance.
  • ‘a’ shows the reason for the alarm state.
  • Suspend alarm state reasons will be displayed by ‘A’.
  • ‘E’ displays the reason for a queue instance error state.
Bstorm added a comment.Mar 8 2019, 1:12 AM

Yeah. I was poking at it from the per-host end, but you cannot get the reason from qhost, just qstat, from what I can tell.

Change 495262 had a related patch set uploaded (by Bstorm; owner: Bstorm):
[operations/puppet@production] gridengine: Add prometheus monitor for queue/host health

Change 495262 merged by Bstorm:
[operations/puppet@production] gridengine: Add prometheus monitor for queue/host health

bd808 closed this task as Resolved.Aug 8 2019, 4:22 AM

Prometheus metrics for this are sge_queueproblems and sge_disabledqueues