Opened 6 years ago

Closed 6 years ago

#1455 closed patch (fixed)

Wrong load for cluster queue with 0 slots

Reported by: njoly Owned by: Dave Love <d.love@…>
Priority: normal Milestone:
Component: sge Version: 8.1.3
Severity: minor Keywords:
Cc:

Description

When a cluster queue is that has hosts but is set to have 0 slots the rported load for that queue is wrong:

njoly@lanfeust [~]> qstat -g c
CLUSTER QUEUE CQLOAD USED RES AVAIL TOTAL aoACDS cdsuE


empty nan 0 0 0 0 0 0

The reported "nan" value results in a division by zero ...

The provided patch do fix it by marking load as unavailable if there is no slots in the cluster queue.

njoly@lanfeust [~]> qstat -g c
CLUSTER QUEUE CQLOAD USED RES AVAIL TOTAL aoACDS cdsuE


empty -NA- 0 0 0 0 0 0

Attachments (1)

sonofgridengine-qstatcqnoslots.diff (1.1 KB) - added by njoly 6 years ago.
Fix for load output with 0 slots cluster queue

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by njoly

Fix for load output with 0 slots cluster queue

comment:2 Changed 6 years ago by dlove

That looks familiar, so I'm surprised it wasn't fixed.
Merci!

comment:3 Changed 6 years ago by Dave Love <d.love@…>

  • Owner set to Dave Love <d.love@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4495/sge:

Fix #1455: Fix load computation for 0 slots cluster queue (from Nicholas Joly)

Note: See TracTickets for help on using tickets.