can you explain how I get slurm accounting up and running? I have slurm already installed
- User
can you explain how I get slurm accounting up and running? I have slurm already installed
Assistant
To set up Slurm accounting, you'll need to configure the accounting database (typically MySQL/MariaDB) and connect it to Slurm. Here's a straightforward approach:
- Install and configure the database:
sudo apt install mariadb-server sudo mysql_secure_installation- Create the Slurm database and user:
CREATE DATABASE slurm_acct_db; CREATE USER 'slurm'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON slurm_acct_db.* TO 'slurm'@'localhost'; FLUSH PRIVILEGES;- Configure slurm.conf to enable accounting:
AccountingStorageType=accounting_storage/mysql AccountingStorageHost=localhost AccountingStorageUser=slurm AccountingStoragePass=password AccountingStorageLoc=slurm_acct_db JobAcctGatherType=jobacct_gather/linux
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.