We use a declining balance "charge" method for Slurm using the "billing" value of GrpTRESMins. Since we use decaying usage with fairshare we track this is QOS. Each account has a corresponding QOS and we set a limit on the billing value for GrpTRESMins on each QOS. From time to time we need to issue a "refund" and we expected we be able to do this by adjusting the usageraw value on the QOS, since usageraw is, as I understand it, the tracked billing x mins converted to seconds. However when we adjust the usageraw for a QOS it has no effect on the tracked billing value in GrpTRESMins. Is this expected? If this expected, we'd like to request that these values be associated, so that when UsageRaw is set the tracked billing value of GrpTRESMins is also set. Or that we be given a way to directly set the tracked billing value of GrpTRESMins. Thanks!
(In reply to Jake Rundall from comment #0) > We use a declining balance "charge" method for Slurm using the "billing" > value of GrpTRESMins. Since we use decaying usage with fairshare we track > this is QOS. Each account has a corresponding QOS and we set a limit on the > billing value for GrpTRESMins on each QOS. > > From time to time we need to issue a "refund" and we expected we be able to > do this by adjusting the usageraw value on the QOS, since usageraw is, as I > understand it, the tracked billing x mins converted to seconds. However when > we adjust the usageraw for a QOS it has no effect on the tracked billing > value in GrpTRESMins. Is this expected? > > If this expected, we'd like to request that these values be associated, so > that when UsageRaw is set the tracked billing value of GrpTRESMins is also > set. Or that we be given a way to directly set the tracked billing value of > GrpTRESMins. > > Thanks! Hello Jake! Yes, this is expected. "usageraw" and GrpTRESMins in accounting are calculated based on completed jobs. A possible workaround would be to temporarily add the refunded value back to the GrpTRESMins limit: sacctmgr modify qos <qos_name> set GrpTRESMins=billing=<current value + refund_value> I know this isn't ideal. As far as the change request - I'll need to look into it and let you know.
Thanks, Brian. Yep, the ability to set the billing value for GrpTRESMins on a QOS would be very helpful to us. Out of curiosity, what (if anything) would usageraw be used for on a QOS? Are there any features in Slurm that use that? Or is it simply a number for tracking?
(In reply to Jake Rundall from comment #3) > Thanks, Brian. Yep, the ability to set the billing value for GrpTRESMins on > a QOS would be very helpful to us. > > Out of curiosity, what (if anything) would usageraw be used for on a QOS? > Are there any features in Slurm that use that? Or is it simply a number for > tracking? It's just one of many accounting values for tracking.