Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#1549 closed defect (fixed)

Project usage is not saved across qmaster restarts

Reported by: markdixon Owned by: Mark Dixon <m.c.dixon@…>
Priority: normal Milestone:
Component: sge Version: 8.1.8
Severity: minor Keywords:



A restart of the qmaster throws away sharetree project usage. This is because project usage is stored in the spool by user objects and not project objects.

The attached patch initialises project usage by walking through the user objects.

It's only been tested against 8.1.5, but this patch has been prepared against 8.1.8 (and checked that it compiles ok).



Attachments (2)

0001-Preserve-project-usage-across-qmaster-restarts.patch (2.8 KB) - added by markdixon 5 years ago.
0001-Fix-1549-sge_calc_tickets-preserve-project-usage-aft.patch (2.3 KB) - added by markdixon 4 years ago.
Second attempt at fix

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by markdixon

Sorry, not quite right yet - something odd happening here with usage decay.

usage decay is only calculated when it's needed, so any inactive users will have a timestamp plus a usage from that epoch in its spool object.

Will need to decay the usage held in the user spool objects before adding up and giving to the project objects.


Changed 4 years ago by markdixon

Second attempt at fix

comment:2 Changed 4 years ago by markdixon

OK, new attachment should correctly sum the project usage held in user objects after an initial decay.

comment:3 Changed 4 years ago by Mark Dixon <m.c.dixon@…>

  • Owner set to Mark Dixon <m.c.dixon@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4842/sge:

Fix #1549 sge_calc_tickets - preserve project usage after qmaster restart

comment:4 Changed 4 years ago by Dave Love <…>

In 4844/sge:

Fix #1560: revert "Fix #1549 sge_calc_tickets - preserve project usage after qmaster restart"

Note: See TracTickets for help on using tickets.