Slurm Accounting Storage Plugin API

Overview

This document describes Slurm Accounting Storage plugins and the API that defines them. It is intended as a resource to programmers wishing to write their own Slurm Job Accounting Storage plugins. This is version 1 of the API.
このドキュメントでは、Slurm Accounting Storageプラグインとそれらを定義するAPIについて説明します。独自のSlurm Job Accounting Storageプラグインを作成したいプログラマーへのリソースとして意図されています。これはAPIのバージョン1です。

Slurm Accounting Storage plugins must conform to the Slurm Plugin API with the following specifications:
Slurm Accounting Storageプラグインは、次の仕様のSlurm Plugin APIに準拠している必要があります。

const char plugin_name[]="full text name"

A free-formatted ASCII text string that identifies the plugin.
プラグインを識別する自由形式のASCIIテキスト文字列。

const char plugin_type[]="major/minor"

The major type must be "accounting_storage." The minor type can be any suitable name for the type of accounting package. We currently use
主なタイプは「accounting_storage」である必要があります。マイナータイプは、会計パッケージのタイプに適した名前にすることができます。現在使用しています

  • filetxt — Information written to a text file.
    filetxt —テキストファイルに書き込まれた情報。
  • mysql — Store information in a mysql database (using the InnoDB storage engine).
    mysql — mysqlデータベースに情報を保存します(InnoDBストレージエンジンを使用)。
  • slurmdbd — Send information to the Slurm Database Daemon (SlurmDBD). Extra configuration is needed and described here.
    slurmdbd — Slurmデータベースデーモン(SlurmDBD)に情報を送信します。追加の構成が必要であり、ここで説明します。
  • none — Information is not stored anywhere.
    none —情報はどこにも保存されません。

const uint32_t plugin_version
If specified, identifies the version of Slurm used to build this plugin and any attempt to load the plugin from a different version of Slurm will result in an error. If not specified, then the plugin may be loaded by Slurm commands and daemons from any version, however this may result in difficult to diagnose failures due to changes in the arguments to plugin functions or changes in other Slurm functions used by the plugin.
指定した場合、このプラグインのビルドに使用されたSlurmのバージョンを識別し、異なるバージョンのSlurmからプラグインをロードしようとすると、エラーが発生します。指定されていない場合、プラグインはSlurmコマンドとデーモンによって任意のバージョンから読み込まれる可能性がありますが、プラグイン関数の引数の変更やプラグインによって使用される他のSlurm関数の変更が原因で、障害の診断が困難になる場合があります。

The programmer is urged to study src/plugins/accounting_storage/mysql for a sample implementation of a Slurm Accounting Storage plugin.
プログラマーは、Slurm Accounting Storageプラグインのサンプル実装についてsrc / plugins / accounting_storage / mysqlを調査することを強くお勧めします。

The Accounting Storage plugin was written to be an interface to storage data collected by the Job Accounting Gather plugin. When adding a new database you may want to add common functions in a common file in the src/database dir. Refer to src/database/mysql_common.c|.h for an example so other plugins can also use that database type to write out information.
Accounting Storageプラグインは、Job Accounting Gatherプラグインによって収集されたストレージデータへのインターフェイスとして作成されました。新しいデータベースを追加するとき、src / database dirの共通ファイルに共通関数を追加することができます。他のプラグインもそのデータベースタイプを使用して情報を書き出すことができるように、例についてはsrc / database / mysql_common.c | .hを参照してください。

API Functions

The Job Accounting Storage API uses hooks in the slurmctld.
Job Accounting Storage APIは、slurmctldでフックを使用します。

All of the following functions are required. Functions which are not implemented must be stubbed.
以下の機能がすべて必要です。実装されていない関数はスタブする必要があります。

int init (void)

Description:
Called when the plugin is loaded, before any other functions are called. Put global initialization here.
プラグインがロードされたとき、他の関数が呼び出される前に呼び出されます。ここにグローバル初期化を配置します。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

void fini (void)

Description:
Called when the plugin is removed. Clear any allocated storage here.
プラグインが削除されたときに呼び出されます。ここで割り当て済みのストレージをすべてクリアします。

Returns: None.

Note: These init and fini functions are not the same as those described in the dlopen (3) system library. The C run-time system co-opts those symbols for its own initialization. The system _init() is called before the Slurm init(), and the Slurm fini() is called before the system's _fini().
注:これらのinitおよびfini関数は、dlopen(3)システムライブラリで説明されているものと同じではありません。Cランタイムシステムは、独自の初期化のためにこれらのシンボルを選択します。システムの_init()はSlurm init()の前に呼び出され、Slurm fini()はシステムの_fini()の前に呼び出されます。

Functions called by the accounting_storage plugin

void *acct_storage_p_get_connection(bool make_agent, int conn_num, uint16_t *persist_conn_flags, bool rollback, char *location)

Description:
acct_storage_p_get_connection() is called to get a connection to the storage medium. acct_storage_p_close_connection() should be used to free the pointer returned by this function.
acct_storage_p_get_connection()は、ストレージメディアへの接続を取得するために呼び出されます。この関数によって返されたポインタを解放するには、acct_storage_p_close_connection()を使用する必要があります。

Arguments:
make_agent (input) to make an agent thread or not. This is primarily used in the slurmdbd plugin.
make_agent(入力)は、エージェントスレッドを作成するかどうかを指定します。これは主にslurmdbdプラグインで使用されます。

conn_num (input) connection number to the plugin. In many cases you should plan on multiple simultaneous connections to the plugin. This number is useful since the debug messages can print this out to determine which connection the message is from.
プラグインへのconn_num(入力)接続番号。多くの場合、プラグインへの複数の同時接続を計画する必要があります。デバッグメッセージがこれを出力して、メッセージの送信元の接続を判別できるため、この番号は便利です。

persist_conn_flags (output) Flags passed back from the server if talking to the dbd (optional).
persist_conn_flags(出力)dbdと通信する場合にサーバーから返されるフラグ(オプション)。

rollback (input) Allow rollback to happen or not (in use with databases that support rollback).
ロールバック(入力)ロールバックが発生するかどうかを許可します(ロールバックをサポートするデータベースで使用中)。

Returns:
void * which is an opaque structure used inside the plugin to connect to the storage type on success, or
NULL on failure.
void *これは、成功した場合にストレージタイプに接続するためにプラグイン内で使用される不透明な構造であり、失敗した場合はNULLです。

int acct_storage_p_close_connection(void **db_conn)

Description:
acct_storage_p_close_connection() is called at the end of the program that has called acct_storage_p_get_connection(). This function closes the connection to the storage type.
acct_storage_p_get_connection()を呼び出したプログラムの最後にacct_storage_p_close_connection()が呼び出されます。この関数は、ストレージタイプへの接続を閉じます。

Arguments:
db_conn (input/output) connection to the storage type; all memory will be freed inside this function and set to NULL.
ストレージタイプへのdb_conn(入力/出力)接続。すべてのメモリはこの関数内で解放され、NULLに設定されます。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_commit(void *db_conn, bool commit)

Description:
acct_storage_p_commit() is called at a point where you would either want changes to storage to be committed or rolled back. This function should also send appropriate update messages to the various slurmctlds.
acct_storage_p_commit()は、ストレージへの変更をコミットまたはロールバックしたい時点で呼び出されます。この関数は、適切な更新メッセージをさまざまなslurmctldsに送信する必要もあります。

Arguments:
db_conn (input) connection to the storage type.
commit (input) true for commit, false to rollback if connection was set up to rollback.
ストレージタイプへのdb_conn(入力)接続.commit(入力)コミットの場合はtrue、接続がロールバックに設定されている場合はロールバックの場合はfalse。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_users(void *db_conn, uint32_t uid, List user_list)

Description:
Called to add users to the storage type.
ユーザーをストレージタイプに追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
user_list (input) list of acct_user_rec_t *'s containing information about the users being added.
ストレージタイプへのdb_conn(入力)接続。関数を呼び出すユーザーのuid(入力)uid。追加されるユーザーに関する情報を含むacct_user_rec_t *のuser_list(入力)リスト。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_coord(void *db_conn, uint32_t uid, List acct_list, acct_user_cond_t *user_cond)

Description:
Called to link specified users to the specified accounts as coordinators.
指定されたユーザーをコーディネーターとして指定されたアカウントにリンクするために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
acct_list (input) list of acct_account_rec_t *'s containing information about the accounts to add the coordinators to.
user_cond (input) contain a list of users to add to be coordinators of the acct_list.
ストレージタイプへのdb_conn(入力)接続.uid(入力)関数を呼び出すユーザーのuid.acct_account_rec_t *のリストには、コーディネーターを追加するアカウントに関する情報が含まれます.user_cond(入力)には、 acct_listのコーディネーターになるために追加するユーザー。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_accts(void *db_conn, uint32_t uid, List acct_list)

Description:
Called to add accounts to the storage type.
ストレージタイプにアカウントを追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
acct_list (input) list of acct_account_rec_t *'s containing information about the accounts to add.
ストレージタイプへのdb_conn(入力)接続。追加するアカウントに関する情報を含むacct_account_rec_t *のリストを含むfunction.acct_list(入力)リストを呼び出すユーザーのuid(入力)uid。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_clusters(void *db_conn, uint32_t uid, List cluster_list)

Description:
Called to add clusters to the storage type.
クラスターをストレージタイプに追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
cluster_list (input) list of acct_cluster_rec_t *'s containing information about the clusters to add.
ストレージタイプへのdb_conn(入力)接続。追加するクラスターに関する情報を含むacct_cluster_rec_t *のfunction.cluster_list(入力)リストを呼び出すユーザーのuid(入力)uid。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_assocs(void *db_conn, uint32_t uid, List assoc_list)

Description:
Called to add associations to the storage type.
ストレージタイプに関連付けを追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
assoc_list (input) list of acct_assoc_rec_t *'s containing information about the associations to add.
ストレージタイプへのdb_conn(入力)接続.uid(入力)functionを呼び出すユーザーのuid.assoc_list(入力)acct_assoc_rec_t *の、追加する関連付けに関する情報を含むリスト。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_qos(void *db_conn, uint32_t uid, List qos_list)

Description:
Called to add QOS's to the storage type.
QOSをストレージタイプに追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
qos_list (input) list of acct_qos_rec_t *'s containing information about the qos to add.
ストレージタイプへのdb_conn(入力)接続uid(入力)functionを呼び出すユーザーのuid.qos_list(入力)acct_qos_rec_t *の、追加するqosに関する情報を含むリスト。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_wckeys(void *db_conn, uint32_t uid, List wckey_list)

Description:
Called to add wckeys to the storage type.
ストレージタイプにwckeysを追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
wckey_list (input) list of acct_wckey_rec_t *'s containing information about the wckeys to add.
ストレージタイプへのdb_conn(入力)接続.uid(入力)functionを呼び出すユーザーのuid.wckey_list(入力)acct_wckey_rec_t *のリストには、追加するwckeyに関する情報が含まれています。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

int acct_storage_p_add_reservation(void *db_conn, acct_reservation_rec_t *resv)

Description:
Called to add reservations to the storage type.
ストレージタイプに予約を追加するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
resv (input) Reservation to be added.
ストレージタイプへのdb_conn(入力)接続。resv(入力)追加する予約。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

List acct_storage_p_modify_users(void *db_conn, uint32_t uid, acct_user_cond_t *user_cond, acct_user_rec_t *user)

Description:
Used to modify existing users in the storage type. The condition could include very vague information about the user, so this function should be robust in the ability to give everything the user is asking for. This is the reason a list of modified users is returned so the caller knows what has been changed, sometimes by mistake.
ストレージタイプの既存のユーザーを変更するために使用されます。条件には、ユーザーに関する非常にあいまいな情報が含まれる可能性があるため、この関数は、ユーザーが求めているすべての情報を提供する機能において堅牢でなければなりません。これが、変更されたユーザーのリストが返されるので、発信者は何が変更されたか、誤って変更されたことがわかります。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
user_cond (input) conditional about which users need to change. User names or ids should not need to be stated.
user (input) what the changes should be on the users identified by the conditional.
ストレージのtype.uid(入力)uidへのdb_conn(入力)接続ユーザーが変更する必要がある関数を条件とするfunction.user_cond(入力)を呼び出すユーザーのuid。ユーザー名またはIDを指定する必要はありません。ユーザー(入力)条件によって識別されたユーザーの変更内容。

Returns:
List containing names of users modified on success, or
NULL on failure.
成功した場合は変更されたユーザーの名前、失敗した場合はNULLを含むリスト。

List acct_storage_p_modify_accounts(void *db_conn, uint32_t uid, acct_account_cond_t *acct_cond, acct_account_rec_t *acct)

Description:
Used to modify existing accounts in the storage type. The condition could include very vague information about the account, so this function should be robust in the ability to give everything the account is asking for. This is the reason a list of modified accounts is returned so the caller knows what has been changed, sometimes by mistake.
ストレージタイプの既存のアカウントを変更するために使用されます。条件には、アカウントに関する非常にあいまいな情報が含まれる可能性があるため、この関数は、アカウントが要求するすべてのものを提供する機能において堅牢でなければなりません。変更されたアカウントのリストが返されるのはこのためです。これにより、呼び出し元は変更内容を、場合によっては誤って認識します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
acct_cond (input) conditional about which accounts need to change. Account names should not need to be stated.
acct (input) what the changes should be on the accounts identified by the conditional.
ストレージのタイプへのdb_conn(入力)接続。どのアカウントを変更する必要があるかを条件としてfunction.acct_cond(入力)を呼び出すユーザーのuid(入力)uid。アカウント名は明記する必要はありません。acct(入力)条件によって識別されたアカウントの変更内容を入力してください。

Returns:
List containing names of users modified on success, or
NULL on failure.
成功した場合は変更されたユーザーの名前、失敗した場合はNULLを含むリスト。

List acct_storage_p_modify_clusters(void *db_conn, uint32_t uid, acct_cluster_cond_t *cluster_cond, acct_cluster_rec_t *cluster)

Description:
Used to modify existing clusters in the storage type. The condition could include very vague information about the cluster, so this function should be robust in the ability to give everything the cluster is asking for. This is the reason a list of modified clusters is returned so the caller knows what has been changed, sometimes by mistake.
ストレージタイプの既存のクラスターを変更するために使用されます。条件には、クラスターに関する非常にあいまいな情報が含まれる可能性があるため、この関数は、クラスターが要求するすべてのものを提供する機能において堅牢でなければなりません。これが、変更されたクラスターのリストが返される理由です。これにより、呼び出し元は、何が誤って変更されたかを知ることができます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
cluster_cond (input) conditional about which clusters need to change. Cluster names should not need to be stated.
cluster (input) what the changes should be on the clusters identified by the conditional.
ストレージタイプへのdb_conn(入力)接続。どのクラスターを変更する必要があるかを条件とするfunction.cluster_cond(入力)を呼び出すユーザーのuid(入力)uid。クラスター名を指定する必要はありません。クラスター(入力)条件によって識別されるクラスターでの変更内容。

Returns:
List containing names of clusters modified on success, or
NULL on failure.
成功した場合は変更されたクラスターの名前を含むリスト、失敗した場合はNULL。

List acct_storage_p_modify_assocs(void *db_conn, uint32_t uid, acct_assoc_cond_t *assoc_cond, acct_assoc_rec_t *assoc)

Description:
Used to modify existing associations in the storage type. The condition could include very vague information about the association, so this function should be robust in the ability to give everything the association is asking for. This is the reason a list of modified associations is returned so the caller knows what has been changed, sometimes by mistake.
ストレージタイプの既存の関連付けを変更するために使用されます。条件には、関連付けに関する非常にあいまいな情報が含まれる可能性があるため、この関数は、関連付けが要求するすべてのものを提供する機能が強力でなければなりません。これが、変更された関連付けのリストが返される理由です。これにより、呼び出し元は、何が誤って変更されたかを知ることができます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
assoc_cond (input) conditional about which associations need to change. Association ids should not need to be stated.
assoc (input) what the changes should be on the associations identified by the conditional.
ストレージタイプへのdb_conn(入力)接続。ユーザーは、関連付けを変更する必要があることを条件としてfunction.assoc_cond(入力)を呼び出すユーザーのuid(入力)uid。アソシエーションIDを記述する必要はありません。assoc(入力)条件によって識別されたアソシエーションにどのような変更を加える必要があるか。

Returns:
List containing names of associations modified on success, or
NULL on failure.
成功時に変更された関連付けの名前を含むリスト、または失敗時にNULL。

List acct_storage_p_modify_job(void *db_conn, uint32_t uid, acct_job_modify_cond_t *job_cond, acct_job_rec_t *job)

Description:
Used to modify two fields (the derived exit code and the comment string) of an existing job in the storage type. Can only modify one job at a time.
ストレージタイプの既存のジョブの2つのフィールド(派生した終了コードとコメント文字列)を変更するために使用されます。一度に変更できるジョブは1つだけです。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
job_cond (input) conditional about which job need to change.
job (input) what the changes should be on the job identified by the conditional.
ストレージタイプへのdb_conn(入力)接続。ユーザーがfunction.job_cond(入力)を呼び出すユーザーのuid(入力)uid変更する必要のあるジョブについての条件。ジョブ(入力)条件によって識別されるジョブの変更内容。

Returns:
List containing ID of job modified on success, or
NULL on failure.
成功した場合は変更されたジョブのID、失敗した場合はNULLを含むリスト。

List acct_storage_p_modify_qos(void *db_conn, uint32_t uid, acct_qos_cond_t *qos_cond, acct_qos_rec_t *qos)

Description:
Used to modify existing qos in the storage type. The condition could include very vague information about the qos, so this function should be robust in the ability to give everything the qos is asking for. This is the reason a list of modified qos is returned so the caller knows what has been changed, sometimes by mistake.
ストレージタイプの既存のQoSを変更するために使用されます。条件にはqosに関する非常にあいまいな情報が含まれる可能性があるため、この関数はqosが要求するすべてを提供する機能において堅牢でなければなりません。これが、変更されたQoSのリストが返されるので、呼び出し側は変更された内容を、場合によっては誤って認識します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
qos_cond (input) conditional about which qos need to change. Qos names should not need to be stated.
qos (input) what the changes should be on the qos identified by the conditional.
ストレージタイプへのdb_conn(入力)接続.uid(入力)ユーザーが関数を呼び出すユーザーのuid.qos_cond(入力)どのqosを変更する必要があるかについて条件付き。QoS名を指定する必要はありません。qos(入力)条件によって識別されたQoSの変更内容。

Returns:
List containing names of qos modified on success, or
NULL on failure.
成功した場合は変更されたqosの名前を含むリスト、失敗した場合はNULL。

List acct_storage_p_modify_wckeys(void *db_conn, uint32_t uid, acct_wckey_cond_t *wckey_cond, acct_wckey_rec_t *wckey)

Description:
Used to modify existing wckeys in the storage type. The condition could include very vague information about the wckeys, so this function should be robust in the ability to give everything the wckey is asking for. This is the reason a list of modified wckey is returned so the caller knows what has been changed, sometimes by mistake.
ストレージタイプの既存のwckeyを変更するために使用されます。条件には、wckeyに関する非常にあいまいな情報が含まれる可能性があるため、この関数は、wckeyが要求するすべての機能を提供できるように堅牢でなければなりません。これが、変更されたwckeyのリストが返されるので、呼び出し元は変更された内容を(場合によっては)誤って認識します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
wckey_cond (input) conditional about which wckeys need to change. Wckey names should not need to be stated.
wckey (input) what the changes should be on the wckey identified by the conditional.
ストレージタイプへのdb_conn(入力)接続。関数を呼び出すユーザーのuid(入力)uid。wckeysを変更する必要があることを条件として、wckey_cond(入力)。wckeyの名前を指定する必要はありません。wckey(入力)条件によって識別されるwckeyの変更内容。

Returns:
List containing names of wckeys modified on success, or
NULL on failure.
成功した場合は変更されたwckeysの名前を含むリスト、失敗した場合はNULL。

int acct_storage_p_modify_reservation(void *db_conn, acct_reservation_rec_t *resv)

Description:
Called to modify reservations in the storage type.
ストレージタイプの予約を変更するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
resv (input) Reservation to be modified (id) must be set in the structure.
ストレージタイプへのdb_conn(入力)接続。resv(入力)変更する予約(id)を構造体に設定する必要があります。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.

List acct_storage_p_remove_users(void *db_conn, uint32_t uid, acct_user_cond_t *user_cond)

Description:
Used to remove users from the storage type. This will remove all associations. Must check to make sure all running jobs are finished before this is allowed to execute.
ストレージタイプからユーザーを削除するために使用されます。これにより、すべての関連付けが削除されます。これを実行する前に、実行中のすべてのジョブが完了していることを確認する必要があります。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
user_cond (input) conditional about which users to be removed. User names or ids should not need to be stated.
削除するユーザーを条件とするfunction.user_cond(入力)を呼び出すユーザーのストレージtype.uid(入力)uidへのdb_conn(入力)接続。ユーザー名やIDを記載する必要はありません。

Returns:
List containing names of users removed on success, or
NULL on failure.
成功した場合は削除されたユーザーの名前、失敗した場合はNULLを含むリスト。

List acct_storage_p_remove_coord(void *db_conn, uint32_t uid, List acct_list, acct_user_cond_t *user_cond)

Description:
Used to remove coordinators from the storage type.
ストレージタイプからコーディネーターを削除するために使用されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
acct_list (input) list of accounts associated with the users.
user_cond (input) conditional about which users to be removed as coordinators. User names or ids should be stated.
ストレージタイプへのdb_conn(入力)接続。uidは、コーディネーターとして削除されるユーザーに関する条件付きのusers.user_cond(入力)に関連付けられたアカウントのfunction.acct_list(入力)リストを呼び出すユーザーのuid(入力)uid。ユーザー名またはIDを記載する必要があります。

Returns:
List containing names of users removed as coordinators on success, or
NULL on failure.
成功した場合はコーディネーターとして削除されたユーザーの名前、失敗した場合はNULLを含むリスト。

List acct_storage_p_remove_accounts(void *db_conn, uint32_t uid, acct_account_cond_t *acct_cond)

Description:
Used to remove accounts from the storage type. This will remove all associations from these accounts. You need to make sure no jobs are running with any association that is to be removed. If any of these accounts are default accounts for users that must also change before an account can be removed.
ストレージタイプからアカウントを削除するために使用されます。これにより、これらのアカウントからすべての関連付けが削除されます。削除する関連でジョブが実行されていないことを確認する必要があります。これらのアカウントのいずれかが、アカウントを削除する前に変更する必要があるユーザーのデフォルトアカウントである場合。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
acct_cond (input) conditional about which accounts to be removed. Account names should not need to be stated.
ストレージのtype.uid(入力)uidへのdb_conn(入力)接続。削除するアカウントを条件としてfunction.acct_cond(入力)を呼び出します。アカウント名を記載する必要はありません。

Returns:
List containing names of accounts removed on success, or
NULL on failure.
成功した場合は削除されたアカウントの名前を含むリスト、失敗した場合はNULL。

List acct_storage_p_remove_clusters(void *db_conn, uint32_t uid, acct_cluster_cond_t *cluster_cond)

Description:
Used to remove clusters from the storage type. This will remove all associations from these clusters. You need to make sure no jobs are running with any association that is to be removed.
ストレージタイプからクラスターを削除するために使用されます。これにより、これらのクラスターからすべての関連付けが削除されます。削除する関連でジョブが実行されていないことを確認する必要があります。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
cluster_cond (input) conditional about which clusters to be removed. Cluster names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。削除するクラスターを条件とするfunction.cluster_cond(入力)を呼び出すユーザーのuid(入力)uid。クラスター名を指定する必要はありません。

Returns:
List containing names of clusters removed on success, or
NULL on failure.
成功した場合は削除されたクラスターの名前を含むリスト、失敗した場合はNULL。

List acct_storage_p_remove_assocs(void *db_conn, uint32_t uid, acct_assoc_cond_t *assoc_cond)

Description:
Used to remove associations from the storage type. You need to make sure no jobs are running with any association that is to be removed.
ストレージタイプから関連付けを削除するために使用されます。削除する関連でジョブが実行されていないことを確認する必要があります。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
assoc_cond (input) conditional about which associations to be removed. Association ids should not need to be stated.
ストレージタイプへのdb_conn(入力)接続.uid(入力)削除する関連付けについて条件付きでfunction.assoc_cond(入力)を呼び出すユーザーのuid 関連付けIDを指定する必要はありません。

Returns:
List containing names of associations removed on success, or
NULL on failure.
成功時に削除された関連付けの名前を含むリスト、または失敗時にNULL。

List acct_storage_p_remove_qos(void *db_conn, uint32_t uid, acct_qos_cond_t *qos_cond)

Description:
Used to remove qos from the storage type.
ストレージタイプからQoSを削除するために使用されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
qos_cond (input) conditional about which qos to be removed. Qos names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続.uid(入力)削除するqosを条件とするfunction.qos_cond(入力)を呼び出すユーザーのuid QoS名を指定する必要はありません。

Returns:
List containing names of qos removed on success, or
NULL on failure.
成功した場合は削除されたQoSの名前を含むリスト、失敗した場合はNULL。

List acct_storage_p_remove_wckeys(void *db_conn, uint32_t uid, acct_wckey_cond_t *wckey_cond)

Description:
Used to remove wckeys from the storage type.
ストレージタイプからwckeysを削除するために使用されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
wckey_cond (input) conditional about which wckeys to be removed. Wckey names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。どのwckeyを削除するかを条件としてfunction.wckey_cond(入力)を呼び出すユーザーのuid(入力)uid。Wckeyの名前を記載する必要はありません。

Returns:
List containing names of wckeys removed on success, or
NULL on failure.
成功した場合は削除されたwckeysの名前を含むリスト、失敗した場合はNULL。

int acct_storage_p_remove_reservation(void *db_conn, acct_reservation_rec_t *resv)

Description:
Called to remove reservations in the storage type.
ストレージタイプの予約を削除するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
resv (input) Reservation to be removed (id) must be set in the structure.
ストレージタイプへのdb_conn(入力)接続。resv(入力)削除する予約(id)を構造体に設定する必要があります。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

List acct_storage_p_get_users(void *db_conn, uint32_t uid, acct_user_cond_t *user_cond)

Description:
Get a list of acct_user_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_user_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
user_cond (input) conditional about which users are to be returned. User names or ids should not need to be stated.
ストレージタイプへのdb_conn(入力)接続.uid(入力)関数を呼び出すユーザーのuid.user_cond(入力)返されるユーザーについて条件付き。ユーザー名やIDを記載する必要はありません。

Returns:
List containing acct_user_rec_t *'s on success, or
NULL on failure.
acct_user_rec_t *を含むリスト(成功した場合)、またはNULL(失敗した場合)。

List acct_storage_p_get_accts(void *db_conn, uint32_t uid, acct_account_cond_t *acct_cond)

Description:
Get a list of acct_account_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_account_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
acct_cond (input) conditional about which accounts are to be returned. Account names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。どのアカウントが返されるかを条件とするfunction.acct_cond(入力)を呼び出すユーザーのuid(入力)uid。アカウント名を記載する必要はありません。

Returns:
List containing acct_account_rec_t *'s on success, or
NULL on failure.
acct_account_rec_t *を含むリスト。成功した場合はNULL、失敗した場合はNULL。

List acct_storage_p_get_clusters(void *db_conn, uint32_t uid, acct_cluster_cond_t *cluster_cond)

Description:
Get a list of acct_cluster_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_cluster_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
cluster_cond (input) conditional about which clusters are to be returned. Cluster names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。どのクラスターが返されるかを条件とするfunction.cluster_cond(入力)を呼び出すユーザーのuid(入力)uid。クラスター名を指定する必要はありません。

Returns:
List containing acct_cluster_rec_t *'s on success, or
NULL on failure.

List acct_storage_p_get_assocs(void *db_conn, uint32_t uid, acct_assoc_cond_t *assoc_cond)

Description:
Get a list of acct_assoc_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_assoc_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
assoc_cond (input) conditional about which associations are to be returned. Association names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。どの関連付けが返されるかを条件とするfunction.assoc_cond(入力)を呼び出すユーザーのuid(入力)uid。協会名を記載する必要はありません。

Returns:
List containing acct_assoc_rec_t *'s on success, or
NULL on failure.

List acct_storage_p_get_events(void *db_conn, uint32_t uid, acct_event_cond_t *event_cond)

Description:
Get a list of acct_event_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_event_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
event_cond (input) conditional about which events are to be returned.
ストレージタイプへのdb_conn(入力)接続.uid(入力)ユーザーがfunction.event_cond(入力)を呼び出すユーザーのuidは、どのイベントが返されるかについて条件付きです。

Returns:
List containing acct_event_rec_t *'s on success, or
NULL on failure.
acct_event_rec_t *を含むリスト。成功した場合はNULL、失敗した場合はNULL。

List acct_storage_p_get_qos(void *db_conn, uint32_t uid, acct_qos_cond_t *qos_cond)

Description:
Get a list of acct_qos_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_qos_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
qos_cond (input) conditional about which qos are to be returned. Qos names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。uid(入力)返されるqosを条件とするfunction.qos_cond(入力)を呼び出すユーザーのuid。QoS名を指定する必要はありません。

Returns:
List containing acct_qos_rec_t *'s on success, or
NULL on failure.
acct_qos_rec_t *を含むリスト(成功した場合)、または失敗した場合はNULL。

List acct_storage_p_get_wckeys(void *db_conn, uint32_t uid, acct_wckey_cond_t *wckey_cond)

Description:
Get a list of acct_wckey_rec_t *'s based on the conditional sent.
送信された条件に基づいてacct_wckey_rec_t *のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
wckey_cond (input) conditional about which wckeys are to be returned. Wckey names should not need to be stated.
ストレージタイプへのdb_conn(入力)接続.uid(入力)関数を呼び出すユーザーのuid.wckey_cond(入力)どのwckeyが返されるかを条件とする。Wckeyの名前を記載する必要はありません。

Returns:
List containing acct_wckey_rec_t *'s on success, or
NULL on failure.
acct_wckey_rec_t *を含むリスト(成功した場合)、または失敗した場合はNULL。

List acct_storage_p_get_txn(void *db_conn, uint32_t uid, acct_txn_cond_t *txn_cond)

Description:
Get a list of acct_txn_rec_t *'s (transactions) based on the conditional sent.
送信された条件に基づいてacct_txn_rec_t *(トランザクション)のリストを取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
txn_cond (input) conditional about which transactions are to be returned. Transaction ids should not need to be stated.
ストレージタイプへのdb_conn(入力)接続。uid(入力)関数を呼び出すユーザーのuid。txn_cond(入力)返されるトランザクションを条件とする。トランザクションIDを指定する必要はありません。

Returns:
List containing acct_txn_rec_t *'s on success, or
NULL on failure.
acct_txn_rec_t *を含むリスト(成功した場合)、または失敗した場合はNULL。

int acct_storage_p_get_usage(void *db_conn, uint32_t uid, void *in, int type, time_t start, time_t end)

Description:
Get usage for a specific association or wckey.
特定の関連付けまたはwckeyの使用状況を取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
in (input/out) can be anything that gathers usage like acct_assoc_rec_t * or acct_wckey_rec_t *.
type (input) really slurmdbd_msg_type_t should let the plugin know what the structure is that was sent in some how.
start (input) start time of the usage.
end (input) end time of the usage.
ストレージタイプへのdb_conn(入力)接続。関数を呼び出すユーザーのuid(入力)uidは、acct_assoc_rec_t *またはacct_wckey_rec_t * .type(入力)などの使用法を収集するものであれば何でもかまいません。構造がどのように送信されたかを知っています。使用方法の開始(入力)開始時間。使用方法の終了(入力)終了時間。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int acct_storage_p_roll_usage(void *db_conn, time_t sent_start, time_t sent_end, uint16_t archive_data, rollup_stats_t *rollup_stats)

Description:
roll up association, cluster, and wckey usage in the storage.
ストレージ内の関連付け、クラスター、およびwckeyの使用状況をロールアップします。

Arguments:
db_conn (input) connection to the storage type.
sent_start (input) start time of the rollup.
sent_end (input) end time of the rollup.
archive_data (input) archive the results if not zero.
rollup_stats (input/output) performance statistics.
ストレージタイプへのdb_conn(入力)接続.sent_start(入力)ロールアップの開始時間.sent_end(入力)ロールアップの終了時間.archive_data(入力)ゼロでない場合、結果をアーカイブします.rollup_stats(入力/出力)パフォーマンス統計。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int clusteracct_storage_p_node_down(void *db_conn, char *cluster, node_record_t *node_ptr, time_t event_time, char *reason)

Description:
Mark nodes down in the storage type.
ストレージタイプでノードをマークダウンします。

Arguments:
db_conn (input) connection to the storage type.
cluster (input) name of cluster node is on.
node_ptr (input) pointer to the node structure marked down.
event_time (input) time event happened.
reason (input) if different from what is set in the node_ptr, the reason the node is down.
ストレージタイプへのdb_conn(入力)接続。クラスターノードのクラスター(入力)名はonです.node_ptr(入力)ダウンとマークされたノード構造へのポインター。event_time(入力)時間イベントが発生しました。理由(入力)が異なる場合node_ptrに設定され、ノードがダウンしている理由。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int clusteracct_storage_p_node_up(void *db_conn, char *cluster, node_record_t *node_ptr, time_t event_time)

Description:
Mark nodes up in the storage type.
ストレージタイプでノードをマークアップします。

Arguments:
db_conn (input) connection to the storage type.
cluster (input) name of cluster node is on.
node_ptr (input) pointer to the node structure marked up.
event_time (input) time event happened.
ストレージタイプへのdb_conn(入力)接続。クラスターノードのクラスター(入力)名はonです。node_ptr(入力)upとマークされたノード構造へのポインター。event_time(入力)時間イベントが発生しました。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int clusteracct_storage_p_cluster_procs(void *db_conn, char *cluster, char *cluster_nodes, uint32_t procs, time_t event_time)

Description:
Update storage type with the current number of processors on a given cluster.
特定のクラスターの現在のプロセッサ数でストレージタイプを更新します。

Arguments:
db_conn (input) connection to the storage type.
cluster (input) name of cluster.
cluster_nodes (input) ranged list of nodes on system.
procs (input) number of processors on system.
event_time (input) time event happened.
ストレージタイプへのdb_conn(入力)接続。cluster(入力)cluster.cluster_nodes(入力)の範囲のリストsystem.procs(入力)のノードの範囲リストsystem.event_time(入力)タイムプロセッサのプロセッサの数。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int clusteracct_storage_p_get_usage(void *db_conn, uint32_t uid, void *cluster_rec, int type, time_t start, time_t end)

Description:
Get usage for a specific cluster.
特定のクラスターの使用状況を取得します。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
cluster_rec (input/out) acct_cluster_rec_t * already set with the cluster name. Usage will be filled in.
type (input) really slurmdbd_msg_type_t should let the plugin know what the structure is that was sent in some how for this it is just DBD_GET_CLUSTER_USAGE.
start (input) start time of the usage.
end (input) end time of the usage.
ストレージタイプへのdb_conn(入力)接続。関数を呼び出すユーザーのuid(入力)uid。cluster_rec(入力/出力)acct_cluster_rec_t *クラスター名がすでに設定されている。使用法が入力されます。タイプ(入力)本当にslurmdbd_msg_type_tは、プラグインに構造体が何であるかを通知する必要があります。これには、DBD_GET_CLUSTER_USAGE.start(入力)の使用開始時刻だけです。終了(入力)終了時刻使用法の。

Arguments:
db_conn (input) connection to the storage type.
ストレージタイプへのdb_conn(入力)接続。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int clusteracct_storage_p_register_ctld(void *db_conn, char *cluster, uint16_t port)

Description:
Used when a controller is turned on to tell the storage type where the slurmctld for a given cluster is located at.
コントローラーがオンになっているときに使用され、特定のクラスターのslurmctldが配置されているストレージタイプを通知します。

Arguments:
db_conn (input) connection to the storage type.
cluster (input) name of cluster.
port (input) port on host cluster is running on the host is grabbed from the connection.
ストレージタイプへのdb_conn(入力)接続。クラスター(入力)ホストのcluster.port(入力)ポートの名前clusterは、ホストで実行されており、接続から取得されます。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int clusteracct_storage_p_fini_ctld(void *db_conn, char *ip, uint16_t port, char *cluster_nodes)

Description:
Used when a controller is turned off to tell the storage type the slurmctld has gone away.
コントローラがオフになっているときに使用され、slurmctldがなくなったストレージタイプを通知します。

Arguments:
db_conn (input) connection to the storage type.
ip (input) ip of connected slurmctld.
port (input) port on host cluster is running on the host is grabbed from the connection.
cluster_nodes (input) name of all nodes currently on the cluster.
ストレージタイプへのdb_conn(入力)接続.ip(入力)接続されているslurmctld.portのIP(入力)IPは、ホスト上で実行されているホストクラスター上で実行されていますconnection.cluster_nodes(入力)現在クラスターにあるすべてのノードの名前。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int jobacct_storage_p_job_start(void *db_conn, job_record_t *job_ptr)

Description:
Note that a job is about to begin execution or has just changed size. The job's state will include the JOB_RESIZING flag if and only if it has just changed size. Otherwise the job is beginning execution for the first time. Note the existance of resize_time in the job record if one wishes to record information about a job at each size (i.e. a history of the job as its size changes through time).
ジョブが実行を開始するか、サイズを変更したことに注意してください。ジョブの状態には、サイズが変更された場合に限り、JOB_RESIZINGフラグが含まれます。それ以外の場合、ジョブは初めて実行を開始します。各サイズでジョブに関する情報を記録したい場合は、ジョブレコードにresize_timeが存在することに注意してください(つまり、時間とともにサイズが変化するときのジョブの履歴)。

Arguments:
db_conn (input) connection to the storage type.
job_ptr (input) information about the job in slurmctld.
ストレージタイプへのdb_conn(入力)接続。slurmctld内のジョブに関するjob_ptr(入力)情報。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int jobacct_storage_p_job_complete(void *db_conn, job_record_t *job_ptr)

Description:
Note that a job is about to terminate or change size. The job's state will include the JOB_RESIZING flag if and only if it is about to change size. Otherwise the job is terminating. Note the existance of resize_time in the job record if one wishes to record information about a job at each size (i.e. a history of the job as its size changes through time).
ジョブが終了しようとしている、またはサイズを変更しようとしていることに注意してください。ジョブの状態には、サイズを変更しようとしている場合にのみ、JOB_RESIZINGフラグが含まれます。そうでない場合、ジョブは終了します。各サイズでジョブに関する情報を記録したい場合は、ジョブレコードにresize_timeが存在することに注意してください(つまり、時間とともにサイズが変化するときのジョブの履歴)。

Arguments:
db_conn (input) connection to the storage type.
job_ptr (input) information about the job in slurmctld.
ストレージタイプへのdb_conn(入力)接続。slurmctld内のジョブに関するjob_ptr(入力)情報。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int jobacct_storage_p_step_start(void *db_conn, step_record_t *step_ptr)

Description:
jobacct_storage_p_step_start() is called in the jobacct plugin at the allocation of a new step in the slurmctld, this inserts info about the beginning of a step.
jobacct_storage_p_step_start()は、slurmctldの新しいステップの割り当て時にjobacctプラグインで呼び出されます。これにより、ステップの開始に関する情報が挿入されます。

Arguments:
db_conn (input) connection to the storage type.
step_ptr (input) information about the step in slurmctld.
ストレージタイプへのdb_conn(入力)接続。slurmctldのステップに関するstep_ptr(入力)情報。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int jobacct_storage_p_step_complete(void *db_conn, step_record_t *step_ptr)

Description:
jobacct_storage_p_step_complete() is called in the jobacct plugin at the end of a step in the slurmctld, this updates the ending information about a step.
jobacct_storage_p_step_complete()は、slurmctldのステップの最後にjobacctプラグインで呼び出されます。これにより、ステップに関する終了情報が更新されます。

Arguments:
db_conn (input) connection to the storage type.
step_ptr (input) information about the step in slurmctld.
ストレージタイプへのdb_conn(入力)接続。slurmctldのステップに関するstep_ptr(入力)情報。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int jobacct_storage_p_job_suspend(void *db_conn, job_record_t *job_ptr)

Description:
jobacct_storage_p_suspend() is called in the jobacct plugin when a job is suspended or resumed in the slurmctld, this updates the database about the suspended time of the job.
jobacct_storage_p_suspend()は、slurmctldでジョブが一時停止または再開されるときにjobacctプラグインで呼び出されます。これにより、ジョブの一時停止時間に関するデータベースが更新されます。

Arguments:
db_conn (input) connection to the storage type.
job_ptr (input) information about the job in slurmctld.
ストレージタイプへのdb_conn(入力)接続。slurmctld内のジョブに関するjob_ptr(入力)情報。

Returns:
none
なし

List jobacct_storage_p_get_jobs_cond(void *db_conn, uint32_t uid, acct_job_cond_t *job_cond)

Description:
jobacct_storage_p_get_jobs_cond() is called to get a list of jobs from the database given the conditional.
jobacct_storage_p_get_jobs_cond()は、条件付きのデータベースからジョブのリストを取得するために呼び出されます。

Arguments:
db_conn (input) connection to the storage type.
uid (input) uid of user calling the function.
job_cond (input) conditional about which jobs to get. Job ids should not need to be stated.
取得するジョブに関する条件付きのfunction.job_cond(入力)を呼び出すユーザーのストレージtype.uid(入力)uidへのdb_conn(入力)接続。ジョブIDを指定する必要はありません。

Returns:
List of job_rec_t's on success, or
NULL on failure.
成功した場合はjob_rec_tのリスト、失敗した場合はNULL。

int jobacct_storage_p_archive(void *db_conn, acct_archive_cond_t *arch_cond)

Description:
used to archive old data.
古いデータをアーカイブするために使用されます。

Arguments:
db_conn (input) connection to the storage type.
arch_cond (input) conditional about what to archive.
ストレージタイプへのdb_conn(入力)接続.arch_cond(入力)アーカイブの条件付き

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int jobacct_storage_p_archive_load(void *db_conn, acct_archive_rect *arch_rec)

Description:
used to load old archive data.
古いアーカイブデータをロードするために使用されます。

Arguments:
db_conn (input) connection to the storage type.
arch_rec (input) information about what to load.
何をロードするかに関するストレージタイプへのdb_conn(入力)接続.arch_rec(入力)情報。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int acct_storage_p_update_shares_used(void *db_conn, List acct_list)

Description:
Used to update shares used in the storage type.
ストレージタイプで使用される共有を更新するために使用されます。

Arguments:
db_conn (input) connection to the storage type.
acct_list (input) List of shares_used_object_t.
ストレージタイプへのdb_conn(入力)接続.acct_list(入力)shares_used_object_tのリスト。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int acct_storage_p_flush_jobs_on_cluster(void *db_conn, char *cluster, time_t event_time)

Description:
used to mark all jobs in the storage type as finished.
ストレージタイプのすべてのジョブを完了としてマークするために使用されます。

Arguments:
db_conn (input) connection to the storage type.
cluster (input) name of cluster to apply end to.
event_time (input) when the flush happened.
ストレージタイプへのdb_conn(入力)接続。クラスター(入力)フラッシュが発生したときに終了する.event_time(入力)に適用するクラスターの名前。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

int acct_storage_p_reconfig(void *db_conn)

Description:
Reconfigure the plugin.
プラグインを再構成します。

Arguments:
db_conn (input) connection to the storage type.
ストレージタイプへのdb_conn(入力)接続。

Returns:
SLURM_SUCCESS on success, or
SLURM_ERROR on failure.
成功した場合はSLURM_SUCCESS、失敗した場合はSLURM_ERROR。

Parameters

These parameters can be used in the slurm.conf to set up connections to the database all have defaults based on the plugin type used.
これらのパラメーターをslurm.confで使用して、データベースへの接続をセットアップできます。すべてのプラグインタイプに基づいてデフォルトが設定されています。

AccountingStorageType
Specifies which plugin should be used.
使用するプラグインを指定します。
AccountingStorageLoc
Let the plugin the name of the logfile/database name to use.
使用するログファイル/データベースの名前をプラグインに割り当てます。
AccountingStorageHost
Let the plugin know the host where the database is.
データベースがあるホストをプラグインに知らせます。
AccountingStoragePort
Let the plugin know the port to connect to.
接続するポートをプラグインに知らせます。
AccountingStorageUser
Let the plugin know the name of the user to connect to the database with.
プラグインに、データベースへの接続に使用するユーザーの名前を知らせます。
AccountingStoragePass
Let the plugin know the password of the user connecting to the database.
データベースに接続するユーザーのパスワードをプラグインに知らせます。
AccountingStorageEnforce
Specifies if we should enforce certain things be in existence before allowing job submissions and such valid options are "associations, limits, qos, and wckeys". You can use any combination of those listed.
ジョブの送信を許可する前に特定のものを存在させる必要があるかどうかを指定します。そのような有効なオプションは「関連付け、制限、qos、およびwckeys」です。リストされているものを任意に組み合わせて使用​​できます。

Last modified 23 October 2019