Workload Characterization Key (WCKey) Management
A WCKey is an orthogonal way to do accounting against possibly
unrelated accounts. This can be useful where users from different
accounts are all working on the same project.
WCKeyは、関係のない可能性のあるアカウントに対してアカウンティングを実行する直交する方法です。これは、異なるアカウントのユーザーがすべて同じプロジェクトで作業している場合に役立ちます。
slurm(dbd).conf settings
Including "WCKey" in your AccountingStorageEnforce option in
your slurm.conf file will enforce WCKeys per job. This means only
jobs with valid WCKeys (WCKeys previously added through sacctmgr)
will be allowed to run.
slurm.confファイルのAccountingStorageEnforceオプションに「WCKey」を含めると、ジョブごとにWCKeyが適用されます。つまり、有効なWCKey(以前にsacctmgrを介して追加されたWCKey)を持つジョブのみが実行を許可されます。
If you wish to track the value of a jobs WCKey you must set
the TrackWCKey option in both the slurm.conf as well as the
slurmdbd.conf files. This will assure the WCKey is tracked on each
job. If you set "WCKey" in your AccountingStorageEnforce
line TrackWCKey is set automatically, it still needs to be
added to your slurmdbd.conf file though.
ジョブのWCKeyの値を追跡する場合は、slurm.confファイルとslurmdbd.confファイルの両方でTrackWCKeyオプションを設定する必要があります。これにより、WCKeyが各ジョブで追跡されます。AccountingStorageEnforce行で「WCKey」を設定した場合、TrackWCKeyは自動的に設定されますが、slurmdbd.confファイルに追加する必要があります。
sbatch/salloc/srun
Each submitting tool has the --wckey= option that can set the WCKey for a
job. [SBATCH|SALLOC|SLURM]_WCKEY can also be set in the environment
to set the WCKey. If no WCKey is given the WCKey for the job will be
set to the users default WCKey for the cluster, which can be set up
with sacctmgr. Also if no WCKey is specified the accounting record
is appended with a '*' to signify the WCKey was not specified. This
is useful for a manager to determine if a user is specifying their
WCKey or not.
各送信ツールには、ジョブのWCKeyを設定できる--wckey =オプションがあります。[SBATCH | SALLOC | SLURM] _WCKEYは、WCKeyを設定する環境でも設定できます。WCKeyが指定されていない場合、ジョブのWCKeyはクラスターのユーザーのデフォルトのWCKeyに設定されます。これはsacctmgrで設定できます。また、WCKeyが指定されていない場合は、アカウンティングレコードに「*」が追加され、WCKeyが指定されなかったことを示します。これは、ユーザーがWCKeyを指定しているかどうかをマネージャーが判断するのに役立ちます。
sacct
Sacct can be used to view the WCKey by adding "wckey" to the
--format option. You can also single out jobs by using the
--wckeys= option which would only send information about jobs that
ran with specific WCKeys.
--formatオプションに「wckey」を追加すると、Sacctを使用してWCKeyを表示できます。特定のWCKeyで実行されたジョブに関する情報のみを送信する--wckeys =オプションを使用して、ジョブを単一化することもできます。
sacctmgr
Sacctmgr is used to manage WCKeys. You can add and remove WCKeys
from users or list them.
Sacctmgrは、WCKeyの管理に使用されます。WCKeyをユーザーに追加および削除したり、リストしたりできます。
You add a user to a WCKey much like you do an account, only the
WCKey doesn't need to be created before hand. i.e.
アカウントを作成する場合と同じように、WCKeyにユーザーを追加します。事前にWCKeyを作成する必要はありません。すなわち
sacctmgr add user da wckey=secret_project
You can remove them from a WCKey in the same fashion.
同じ方法でWCKeyから削除できます。
sacctmgr del user da wckey=secret_project
To alter the users default WCKey you can run a line like
ユーザーのデフォルトのWCKeyを変更するには、次のような行を実行します。
sacctmgr mod user da cluster=snowflake set defaultwckey=secret_project
Which will change the default WCKey for user "da" on cluster
"snowflake" to be "secret_project". If you want this for all clusters
just remove the cluster= option.
これにより、クラスター「snowflake」上のユーザー「da」のデフォルトのWCKeyが「secret_project」に変更されます。すべてのクラスターでこれが必要な場合は、cluster =オプションを削除してください。
sreport
Information about reports available for WCKeys can be
found on the sreport manpage.
WCKeysで利用可能なレポートに関する情報は、sreportマンページにあります。
Last modified 14 November 2014