5.6 AMCFG Parameters and Flags

Moab's accounting manager policies are defined using the AMCFG[] parameter. All AMCFG parameters must use the same accounting manager name between the square brackets (e.g. AMCFG[mam]). The following AMCFG parameter values are supported:

ALWAYSCHARGERESERVATIONS

BACKUPHOST

BLOCKINGACTIONS

CHARGEPOLICY

CHARGERETRYCOUNT

CONTINUEFAILUREACTION

CONTINUEISBLOCKING

CONTINUEURL

CREATECRED

CREATEFAILUREACTION

CREATEISBLOCKING

CREATEURL

DELETEISBLOCKING

DELETEURL

DISABLEDACTIONS

ENDISBLOCKING

ENDURL

FALLBACKACCOUNT

FALLBACKQOS

FLAGS

FLUSHINTERVAL

HOST

LIENGRANULARITY

MODE

NODECHARGEPOLICY

PAUSEISBLOCKING

PAUSEURL

PORT

QUERYURL

REFRESHPERIOD

RESUMEFAILUREACTION

RESUMEISBLOCKING

RESUMEURL

RETRYFAILEDCHARGES

SERVER

STARTFAILUREACTION

STARTISBLOCKING

STARTURL

TIMEOUT

TYPE

UPDATEURL

VALIDATEJOBSUBMISSION

ALWAYSCHARGERESERVATIONS
Format <BOOLEAN>
Default

FALSE

Description If set to TRUE, idle cycles in reservations will be charged to the accounting manager by default, even if the ChargeAccount and ChargeUser are not specified for the reservation. For reservations that you do not want to be charged with the accounting manager, specify the reservation Charge attribute with a value of False. If set to FALSE (the default), idle cycles in reservations will not be charged to the accounting manager unless you specify the reservation ChargeAccount or ChargeUser attributes or set the reservation Charge attribute with a value of True.
Example
AMCFG[mam] ALWAYSCHARGERESERVATIONS=TRUE

By default, Moab will charge for idle cycles in reservations unless overridden with Charge=False.

BACKUPHOST
Format STRING
Default ---
Description Specifies the backup host name for the accounting manager server daemon.
Example
AMCFG[mam] BACKUPHOST=headnode2

Use the backup accounting manager server on headnode2 if the connection fails to the primary accounting manager server.

BLOCKINGACTIONS
Description

This parameter is deprecated. It may be removed in a future release.

Instead, specify the corresponding AMCFG[] CREATEISBLOCKING, DELETEISBLOCKING, ENDISBLOCKING, PAUSEISBLOCKING, RESUMEISBLOCKING, and STARTISBLOCKING parameters.

CHARGERETRYCOUNT
Format <INTERGER> (non-negative)
Default 24
Description

Only applicable if RETRYFAILEDCHARGES is enabled.

 

Specifies the maximum number of times that Moab will retry failed connection charges. Moab will continue to retry until the charge succeeds, the charge fails due to a non-connection failure, or until the CHARGERETRYCOUNT limit is reached. If set to zero, no retries will be performed, and all charge failures will be written to files in the SPOOL/am/failed/ directory.

Example
AMCFG[mam] RETRYFAILEDCHARGES=TRUE CHARGERETRYCOUNT=12

Moab will retry connection-oriented charge failures up to 12 times.

CHARGEPOLICY
Format One of DEBITALLWC, DEBITALLCPU, DEBITALLPE, DEBITALLBLOCKED, DEBITSUCCESSFULWC, DEBITSUCCESSFULCPU, DEBITSUCCESSFULPE, or DEBITSUCCESSFULBLOCKED
Default DEBITSUCCESSFULWC
Description

Specifies how consumed resources should be charged against the consumer's credentials. See 5.5.5.A Charge Metrics for details.

DEBITALLBLOCKED or DEBITSUCCESSFULBLOCKED should only be used with policies that allow only a single job to dedicate a node such as with a Node Access Policy of SINGEJOB or SINGLETASK, or using a QOS with the DEDICATED flag. Using DEBITALLBLOCKED or DEBITSUCCESSFULBLOCKED with any policy allowing more than one job to dedicate a node (such as a Node Access Policy of SINGLEUSER, SINGLECLASS, SINGLEACCOUNT or UNIQUEUSER) is not supported

The DEBITSUCCESSFUL* policies require Torque to work. Additionally, the job scripts must return a negative number as the exit code on failure in order to be ignored for charging.

Example
AMCFG[mam] CHARGEPOLICY=DEBITALLCPU

Charges are based on actual CPU usage only, not dedicated CPU resources.

If the LOCALCOST flag (AMCFG[] FLAGS=LOCALCOST) is set, Moab uses the information gathered with CHARGEPOLICY to calculate charges. If LOCALCOST is not set, Moab sends this information to the accounting manager to calculate charges.

CONTINUEFAILUREACTION
Format <GeneralFailureAction>[,<FundsFailureAction>[,<ConnectionFailureAction>]] where the action is one of CANCEL or IGNORE
Default

IGNORE,IGNORE,IGNORE

Description

If periodic charging is enabled (via the AMCFG[] FLUSHINTERVAL parameter), this parameter specifies the action to be taken if a failure is detected when Moab performs its periodic accounting update (e.g. to determine whether the job should be continued).

  • Moab applies <ConnectionFailureAction> to a job if it is rejected due to a connection failure to MAM.
  • Moab applies <FundsFailureAction> to a job if it is rejected due to insufficient funds.
  • Moab applies <GeneralFailureAction> to a job if the account manager rejects it for any other reason.

  • If you do not specify a <ConnectionFailureAction>, or if you do not specify a <FundsFailureAction>, then Moab will apply the <GeneralFailureAction> for the unspecified case.

If the action is set to CANCEL, Moab cancels the job; for IGNORE, Moab ignores the failure and continues running the job.

Example
AMCFG[mam] CONTINUEFAILUREACTION=IGNORE,CANCEL,IGNORE

A job will be canceled if there are insufficient funds when Moab performs its periodic accounting update; but will be allowed to continue running if MAM is down, or for any other reason.

CONTINUEISBLOCKING
Format <BOOLEAN>
Default

TRUE

Description If set to TRUE, the scheduler will block while authorizing the continuation of a job with the accounting manager. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue; but application of the failure action will be delayed until a response is received.
Example
AMCFG[mam] CONTINUEISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when checking to see if a job should be continued after a periodic accounting update.

CONTINUEURL
Format exec://<fullPathToContinueScript> or null:
Default

exec://$TOOLSDIR/mam/usage.reserve.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)

Description

If periodic charging is enabled (via AMCFG[] FLUSHINTERVAL), when Moab performs a periodic accounting update for a job, this script is invoked to determine whether there are sufficient allocations for it to continue running for another period.

For jobs, the CONTINUEFAILUREACTION attribute specifies the action that Moab should take if the authorization fails (such as for insufficient funds). If you use a DebitSuccessful{Blocked,CPU,PE,WC} charge policy, Moab will not call the script because it does not yet know the completion status of the job.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] CONTINUEURL=exec://$TOOLSDIR/mam/usage.continue.custom.pl

Moab calls the usage.continue.custom.pl script for authorization when checking to see if a job should be continued after a periodic accounting update.

CREATECRED
Format <BOOLEAN>
Default FALSE
Description

If set to TRUE, Moab will be enabled to query accounts, users, user membership in accounts, and users' default accounts from Moab Accounting Manager and define them in Moab. These credentials can be manually updated by running mrmctl -R AM or automatically updated be setting the AMCFG[] REFRESHPERIOD parameter.

If you want Moab to enforce the imported account-user memberships, you will need to set the ENFORCEACCOUNTACCESS parameter to TRUE. See Appendix A Moab Parameters for more information on the ENFORCEACCOUNTACCESS parameter.

Example
AMCFG[mam] CREATECRED=TRUE REFRESHPERIOD=30:00

Moab will automatically update account credential information from MAM every half hour.

CREATEFAILUREACTION
Format <AMFailureAction>[,<FundsFailureAction>] where the action is one of CANCEL, DEFER, HOLD, or IGNORE
Default IGNORE,IGNORE
Description

Before creating a job that should be tracked or charged within the accounting manager, Moab contacts the accounting manager for authorization. If the job creation is rejected due to lack of funds, Moab applies the FundsFailureAction to the job. For any other rejection reason including a connection problem, Moab applies the AMFailureAction to the job. If you do not specify a FundsFailureAction, Moab will apply the AMFailureAction for an insufficient funds failure. If the action is set to CANCEL, Moab cancels the job; DEFER, defers the job; HOLD, puts the job on hold; and IGNORE, ignores the failure and continues to start the job.

In order for the CREATEFAILUREACTION policy to be applied, the AMCFG[] VALIDATEJOBSUBMISSION parameter must be set to true.

If you have either the AMCFG[] FALLBACKQOS or FALLBACKACCOUNT parameter defined and a job is submitted that has insufficient funds to run, the fallback credential will be applied and the configured CREATEFAILUREACTION action will be ignored.

Example
AMCFG[mam] CREATEFAILUREACTION=HOLD

A job will be placed on hold when submitted if there are insufficient funds for it to start.

CREATEISBLOCKING
Format <BOOLEAN>
Default

TRUE

Description If set to TRUE, the scheduler will block while authorizing the creation of a job with the accounting manager. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue, but further consideration for the job will be delayed until a response is received.
Example
AMCFG[mam] CREATEISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when creating jobs.

CREATEURL
Format exec://<fullPathToCreateScript> or null:
Default exec://$TOOLSDIR/mam/usage.quote.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

Moab runs this script at the time a job or reservation is being created.

For jobs, the CREATEFAILUREACTION attribute specifies the action that should be taken if the authorization fails (such as for insufficient funds).

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] CREATEURL=exec://$TOOLSDIR/mam/usage.create.custom.pl

Moab calls the usage.create.custom.pl script for authorization before starting a job or reservation.

DELETEISBLOCKING
Format <BOOLEAN>
Default

TRUE

Description If set to TRUE, the scheduler will block while contacting the accounting manager to clean up after a failed job start. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue.
Example
AMCFG[mam] DELETEISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when cleaning up after failed job starts.

DELETEURL
Format exec://<fullPathToDeleteScript> or null:
Default exec://$TOOLSDIR/mam/lien.delete.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

Moab runs this script to clean up after an interrupted job or reservation life-cycle. The default behavior is to remove outstanding liens.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] DELETEURL=exec://$TOOLSDIR/mam/usage.delete.custom.pl

Moab calls the usage.delete.custom.pl script to clean up after an interrupted job or reservation.

DISABLEDACTIONS
Description

This parameter is deprecated. It may be removed in a future release.

Instead, specify an empty value or a protocol of 'null:' for the corresponding AMCFG[] CREATEURL, DELETEURL, ENDURL, PAUSEURL, RESUMEURL, STARTURL, and UPDATEURL parameters.


ENDISBLOCKING
Format <BOOLEAN>
Default

FALSE

Description If set to TRUE, the scheduler will block while registering the end of a job with the accounting manager. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue.
Example
 AMCFG[mam] ENDISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when a job ends.

ENDURL
Format exec://<fullPathToEndScript> or null:
Default exec://$TOOLSDIR/mam/usage.charge.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

Moab runs this script after the end of a chargeable job or reservation in order to make a final charge or update the accounting record. The default behavior is to make a prorated charge for the job or reservation.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] ENDURL=exec://$TOOLSDIR/mam/usage.end.custom.pl

Moab calls the usage.end.custom.pl script to make the final charge for a job or reservation.

FALLBACKACCOUNT
Format <STRING>
Default ---
Description If specified, Moab verifies adequate allocations for all new jobs. If adequate allocations are not available in the job's primary account, Moab changes the job's credentials to use the fallback account. If not specified, Moab places a hold on jobs that do not have adequate allocations in their primary account.
Example
AMCFG[mam] FALLBACKACCOUNT=freecycle

Moab assigns the account freecycle to jobs that do not have adequate allocations in their primary account.

FALLBACKQOS
Format <STRING>
Default ---
Description If specified, Moab verifies adequate allocations for all new jobs. If adequate allocations are not available in the job's primary QoS, Moab changes the job's credentials to use the fallback QoS. If not specified, Moab places a hold on jobs that do not have adequate allocations in their primary QoS.
Example
AMCFG[mam] FALLBACKQOS=freecycle

Moab assigns the QoS freecycle to jobs that do not have adequate allocations in their primary QoS.

FLAGS
Format <STRING>
Default ---
Description AMCFG flags are used to enable special services.
Example
AMCFG[mam] FLAGS=LOCALCOST

Moab calculates the charge for the job locally and sends that as a charge to the accounting manager, which then charges that amount for the job.

FLUSHINTERVAL
Format

[[[DD:]HH:]MM:]SS or INFINITY

The former values of HOUR, DAY, WEEK, MONTH, or NONE are deprecated and may be removed in a future release.

Default INFINITY
Description Indicates the amount of time between accounting manager updates for long running reservations and jobs. If FLUSHINTERVAL is set to a positive time period, Moab will update the accounting manager (e.g. make an incremental charge) on the specified period relative to the start of the job or reservation. If FLUSHINTERVAL is set to INFINITY, the update will only occur at the end of the job or reservation.
Example
AMCFG[mam] FLUSHINTERVAL=1:00:00:00

Moab will make periodic accounting updates every 24 hours for long running jobs and reservations.

HOST
Format <STRING>
Default localhost
Description Specifies the host name for the accounting manager server daemon.
Example
AMCFG[mam] HOST=my-mam-server

Moab will communicate with the MAM server running on my-mam-server.

LIENGRANULARITY
Format One of: Partial or Combined
Default Partial
Description

When periodic charging is enabled via AMCFG[] FLUSHINTERVAL, lien granularity controls whether a combined lien is sought for the duration of the entire job (Combined) or whether partial liens are sought for the duration of each periodic charge interval (Partial).

  • When using a lien granularity of Partial, a job or reservation may get started if if has enough funds to run for the FLUSHINTERVAL, but it may trigger a CONTINUEFAILUREACTION if it runs out of funds before completion.
  • When using a lien granularity of Combined, the funds for the entire job or reservation must be available before it starts, but the funds will be protected by the lien and consumed on a periodic interval.
Example
AMCFG[mam] LIENGRANULARITY=Combined

When using periodic charging, Moab will seek to obtain a lien for the entire duration of the job or reservation before starting it.

MODE
Format One of: strict-allocation, fast-allocation, notional-charging or usage-tracking
Default strict-allocation
Description Specifies the accounting mode. The accounting mode modifies the way in which accounting-relevant job stages (e.g. create, start, end, etc.) are processed. See 5.5.2 Accounting Mode for details on the behavior of the accounting modes.
Example
AMCFG[mam] MODE=notional-charging

Configures Moab to use the notional-charging accounting mode when interacting with the accounting manager.

NODECHARGEPOLICY
Format One of AVG, MAX, or MIN
Default MIN
Description

When charging for resource usage, the accounting manager will charge by node allocation according to the specified policy. For AVG, MAX, and MIN, the accounting manager will charge by the average, maximum, and minimum node charge rate of all allocated nodes. See CHARGEPOLICY.

If you use this feature in conjunction with the AMCFG[] LOCALCOST flag, Moab will include the calculation of the node charge value sent to MAM. See LOCALCOST.

If you do not use this feature in conjunction with the AMCFG[] LOCALCOST flag, you must perform the following MAM commands to include node charges in charge calculations:

  1. Add NodeCharge as a usage record property.
    mam-shell Attribute Create Object=UsageRecord Name=NodeCharge DataType=Float Description="\"Node Charge\""
  2. Add NodeCharge as a multiplier charge rate.
    mam-create-chargerate -n NodeCharge -z "*1" -d "Node Charge Multiplier"
Example
NODECFG[node01]  CHARGERATE=1.5
NODECFG[node02]  CHARGERATE=1.75
AMCFG[mam] NODECHARGEPOLICY=MAX

Charge jobs by the maximum allocated node's charge rate.

PAUSEISBLOCKING
Format <BOOLEAN>
Default

TRUE

Description If set to TRUE, the scheduler will block while registering the suspension of a job with the accounting manager. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue.
Example
AMCFG[mam] PAUSEISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when suspending jobs.

PAUSEURL
Format exec://<fullPathToPauseScript> or null:
Default exec://$TOOLSDIR/mam/usage.charge.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

Moab runs this script after preempting a job that might be resumed later. The default behavior is to make an incremental charge but not create a fresh lien. If you use a DebitSuccessful{Blocked,CPU,PE,WC} charge policy, Moab will not call the script because it does not yet know the completion status of the job.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] PAUSEURL=exec://$TOOLSDIR/mam/usage.pause.custom.pl

Moab calls the usage.pause.custom.pl script after pausing a job.

PORT
Format <INTEGER>
Default 7112
Description Specifies the listening port for the accounting manager server daemon.
Example
AMCFG[mam] PORT=7731		

Moab will communicate with the MAM server listening on port 7731.

QUERYURL
Format

exec://<fullPathToQueryScript> or null:

Default exec://$TOOLSDIR/mam/account.query.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

Moab runs this script to customize and forward the Moab query to the accounting manager. The standard input to the script will be an XML Request in SSS format and is used directly between Moab and Moab Accounting Manager. Its primary purpose is to synchronize accounts and user information with the accounting manager if the CREATECRED parameter is specified.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] QUERYURL=exec://$TOOLSDIR/mam/cred.query.custom.pl

Moab calls the cred.query.custom.pl script in order to obtain account and user information from the accounting manager.

REFRESHPERIOD
Format [[[DD:]HH:]MM:]SS or INFINITY

The former values of MINUTE, HOUR, DAY or NONE are deprecated and may be removed in a future release.

Default INFINITY
Description

Indicates the period at which Moab will poll for updated information from Moab Accounting Manager (MAM).

  • If AMCFG[] CREATECRED is set to TRUE, Moab will update the accounting credentials from MAM on the specified period.
  • If AMCFG[] MODE is set to fast-allocation, Moab will update the account balance cache from MAM on the specified period.

Moab will poll MAM for updated information when it first starts up unless REFRESHPERIOD is set to 0. If REFRESHPERIOD is set to a positive time period, Moab will refresh the accounting credentials on the specified period relative to the scheduler start time. If REFRESHPERIOD is set to INFINITY, Moab will only request updated information from MAM when first started. Use mrmctl -R am to force an immediate refresh.

Example
AMCFG[mam] REFRESHPERIOD=2:00:00

Moab will request an update from MAM every two hours..

RESUMEFAILUREACTION
Format <GeneralFailureAction>[,<FundsFailureAction>[,<ConnectionFailureAction>]] where the action is one of CANCEL, DEFER, HOLD, IGNORE, or RETRY
Default IGNORE,IGNORE,IGNORE
Description

This action is applied after a failure with the accounting manager when a job is being resumed (e.g. after being suspended).

  • Moab will apply <ConnectionFailureAction> to a job if there is a connection failure between Moab and the accounting manager.
  • Moab applies <FundsFailureAction> to the job if it is rejected due to insufficient funds.
  • Moab applies <GeneralFailureAction> to a job if the account manager rejects it for any other reason.

  • If you do not specify a <ConnectionFailureAction>, or if you do not specify a <FundsFailureAction>, then Moab will apply the <GeneralFailureAction> for the unspecified case.

If the action is set to CANCEL, Moab cancels the job; DEFER, Moab defers the job; HOLD, Moab puts the job on hold; IGNORE, Moab ignores the failure and continues to resume the job; RETRY, Moab does not resume the job on this attempt but will continue to try to resume the job at the next opportunity.

Example
AMCFG[mam] RESUMEFAILUREACTION=HOLD,HOLD,IGNORE

A job will be resumed if Moab is unable to contact the accounting manager. Otherwise, the job will be placed on hold if there is any other failure with the accounting manager when Moab tries to resume it.

RESUMEISBLOCKING
Format <BOOLEAN>
Default

TRUE

Description If set to TRUE, the scheduler will block while authorizing the resumption of a job with the accounting manager. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue, but resumption of the job will be delayed until a response is received.
Example
 AMCFG[mam] RESUMEISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when resuming jobs.

RESUMEURL
Format exec://<fullPathToResumeScript> or null:
Default exec://$TOOLSDIR/mam/usage.reserve.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

Moab runs this script before resuming a suspended job to determine whether there it has authorization to resume (e.g. has sufficient funds).

For jobs, the RESUMEFAILUREACTION attribute specifies the action that Moab should take if the authorization fails (such as for insufficient funds). If you use a DebitSuccessful{Blocked,CPU,PE,WC} charge policy, Moab will not call the script because it does not yet know the completion status of the job.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] RESUMEURL=exec://$TOOLSDIR/mam/usage.resume.custom.pl

Moab calls the usage.resume.custom.pl script for authorization before resuming a suspended job.

RETRYFAILEDCHARGES
Format <BOOLEAN>
Default TRUE
Description

If set to TRUE, job charges will be retried if they have failed due to a connection failure. When a job charge or usage record update (such as might occur when a job is suspended, at the periodic charge interval, or when a job completes) results in a connection failure between Moab and the accounting manager, then the charge request will be saved to a file in SPOOLDIR/am/retrying/. Once Moab detects that the connection with the accounting manager has been restored, the charge will be retried up tp CHARGERETRYCOUNT times. Charges that fail due to reasons other than a connection failure, or connection failures that surpass the CHARGERETRYCOUNT, will be saved to files in SPOOLDIR/am/failed/.

Example
AMCFG[mam] RETRYFAILEDCHARGES=TRUE

Moab will retry connection-oriented charge failures.

SERVER
Format <URL>
Default N/A
Description Specifies the type and location of the accounting manager service.
Example
AMCFG[mam] SERVER=mam://tiny.supercluster.org:4368
STARTFAILUREACTION
Format: <GeneralFailureAction>[,<FundsFailureAction>[,<ConnectionFailureAction>]] where the action is one of CANCEL, DEFER, HOLD, IGNORE, or RETRY
Default: IGNORE,IGNORE,IGNORE
Description:

Moab applies the appropriate failure action if there is a failure when registering the job start with the accounting manager.

  • Moab applies <ConnectionFailureAction> to the job if there is a communication problem with the accounting manager.
  • Moab applies <FundsFailureAction> to the job if it is rejected due to insufficient funds.
  • Moab applies <GeneralFailureAction> to a job if the account manager rejects it for any other reason.
  • If you do not specify a <ConnectionFailureAction>, or if you do not specify a <FundsFailureAction>, then Moab will apply the <GeneralFailureAction> for the unspecified case.

If the action is set to CANCEL, Moab cancels the job; DEFER, Moab defers the job; HOLD, Moab puts the job on hold; IGNORE, Moab ignores the failure and continues to start the job; and RETRY, Moab does not start the job on this attempt but attempts to start the job at the next opportunity.

Example:
AMCFG[mam] STARTFAILUREACTION=CANCEL,HOLD,IGNORE

A job will be placed on hold if there are insufficient funds when it is time for it to start. It will be allowed to start if Moab is unable to reach the accounting manager. For all other failures with the accounting manager, the job will be canceled.

 

STARTISBLOCKING
Format <BOOLEAN>
Default

TRUE

Description

If set to TRUE, the scheduler will block while authorizing the starting of a job with the accounting manager. If set to FALSE, the accounting operation will be queued to the accounting thread pool and scheduling will continue, but the start of the job will be delayed until a response is received.

If using Moab in a Peer-to-Peer grid, do not set this parameter to FALSE. The Start action is not supported as a non-blocking action in Peer-to-Peer grids.
Example
 AMCFG[mam] STARTISBLOCKING=FALSE

Specifies that Moab should use non-blocking calls with the accounting manager when starting jobs.

STARTURL
Format: exec://<fullPathToStartScript> or null:
Default: exec://$TOOLSDIR/mam/usage.reserve.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description:

Moab runs this script on a chargeable job or reservation to determine whether it should start.

For jobs, the STARTFAILUREACTION attribute specifies the action that Moab should take if the authorization fails (such as for insufficient funds).

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example:
AMCFG[mam] STARTURL=exec://$TOOLSDIR/mam/usage.start.custom.pl

Moab calls the usage.start.custom.pl script for authorization before starting a job or reservation.

THREADPOOLSIZE
Description

This parameter is undocumented in 9.0.

TIMEOUT
Format: [[[DD:]HH:]MM:]SS
Default: 15
Description: Specifies the maximum delay allowed for communications with the accounting manager.
Example:
AMCFG[mam] TIMEOUT=30
TYPE
Format One of MAM or Native
Default MAM
Description Specifies the accounting manager interface type.
Example
AMCFG[mam] TYPE=MAM

Configures Moab to interact with MAM using the direct SSS wire protocol.

UPDATEURL
Format exec://<fullPathToUpdateScript> or null:
Default exec://$TOOLSDIR/mam/usage.charge.mam.pl if TYPE=Native, otherwise it will make a direct call to MAM (mam:)
Description

If you have FLUSHINTERVAL set, Moab runs this script every flush interval for each chargeable job or reservation to charge for the previous interval. This call is usually followed by a call to the CONTINUEURL script, if defined, to check whether there are sufficient funds to run for the next interval. If you use a DebitSuccessful{Blocked,CPU,PE,WC} charge policy, Moab will not call the script because it does not yet know the completion status of the job.

To disable a script from being run at this stage, use 'null:' as the parameter value.

Example
AMCFG[mam] UPDATEURL=exec://$TOOLSDIR/mam/usage.update.custom.pl

Moab calls the usage.update.custom.pl script for authorization to continue a job or reservation.

VALIDATEJOBSUBMISSION
Format <BOOLEAN>
Default FALSE
Description If set to TRUE, when a new job is submitted, Moab will execute the CREATEURL script (for TYPE=Native) or seek a job quote from Moab Accounting Manager (TYPE=MAM) before allowing the job to be submitted. Otherwise, the fund validation step is just utilized by reservations and fallback account checks. If the call fails (for example, if the user's account does not have sufficient funds or specifies an invalid account), Moab applies the CREATEFAILUREACTION.
Example
AMCFG[mam] VALIDATEJOBSUBMISSION=True CREATEFAILUREACTION=Hold

Verify jobs have sufficient funds to run at the time they are submitted.

5.6.0.A AMCFG Flags

AMCFG flags can be used to enable special services and to disable default services. These services are enabled/disabled by setting the AMCFGFLAGS attribute (see FLAGS).

Flag Name Description
ACCOUNTFAILASFUNDS When this flag is set, logic failures within the accounting manager are treated as fund failures and are canceled. When ACCOUNTFAILASFUNDS is not set, accounting manager failures are treated as a server failure and the result is a job which requests an account to which the user does not have access.
LOCALCOST Moab calculates the charge for the job locally and sends that as a charge to the accounting manager, which then charges the amount for the job.
STRICTQUOTE Sends an estimated process count to the accounting manager when an initial quote is requested for a newly-submitted job.

Related Topics 

© 2016 Adaptive Computing