> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I set up Slurm accounting for priority scheduling?

SUNK enables Slurm accounting by default: `accounting.enabled` is `true` and SUNK deploys a local `slurmdbd` with MySQL automatically. Accounting collects the job data that Slurm uses for fair-share priority calculations, so most clusters do not need any additional configuration to support priority-based scheduling. Verify accounting is collecting data by running `sacct` from a login pod.

To use a remote `slurmdbd` instead of the local instance, set the external accounting parameters in `values.yaml`:

```yaml theme={"system"}
accounting:
  external:
    enabled: true
    host: "[SLURMDBD-HOST]"
    port: "[SLURMDBD-PORT]"
    user: "[SLURMDBD-USER]"
```

For all accounting parameters (replicas, resource requests, priority class, security context, external database), see the `accounting.*` and `accounting.external.*` entries in [Slurm parameters](/products/sunk/reference/slurm-parameters).

***

<Badge stroke shape="pill" color="blue" size="md">[Nodes](/support/sunk/tags/nodes)</Badge><Badge stroke shape="pill" color="blue" size="md">[Server Errors](/support/sunk/tags/server-errors)</Badge>
