# Config file

The config file is `~/.config/fleetjobs/config.json`. Every field is optional, and so is the file. fleetjobs reads it again on every scheduler tick, every half second for each waiting job, so a change applies to queued jobs at once. If the file does not parse, for example while an editor is writing it, fleetjobs keeps the last good copy, or the defaults when there was none, and prints one warning for each distinct error.

```json
{
  "local": { "heavy": 2, "idle": 1, "light": 1, "lightExtra": 1 },
  "hosts": [{ "name": "build-box", "address": "me@build-box", "slots": 2, "speed": 0.5 }],
  "never": ["quiverdk/*"]
}
```

## `local`

Slot counts on this machine. See [placement](https://fleetjobs.loadsheet.dev/guide/placement#lanes-and-slots).

| Field | Default | Meaning |
| --- | --- | --- |
| `heavy` | `2` | Heavy slots that are always open |
| `idle` | `1` | Extra heavy slots while the machine is idle |
| `light` | `1` | Light slots that are always open |
| `lightExtra` | `1` | Extra light slots while CPU pressure is low |

Setting `heavy` and `idle` both to `0` sends every heavy job to a host.

## `hosts`

A list of machines that may run jobs. A host without a `name` or an `address` is an error.

| Field | Default | Meaning |
| --- | --- | --- |
| `name` | none | Names the host in `status`, in job records and in the `--host` flag of `replay` |
| `address` | none | What `ssh` takes, such as `me@build-box`. An absolute folder path runs the host on this machine with that folder as its home, which the tests use |
| `slots` | `1` | Jobs the host runs at once |
| `speed` | `1` | Speed against this machine; `0.5` is half as fast |

## `never`

A list of `owner/repo` patterns, with `*` for any part. A job in a checkout whose `origin` matches never leaves this machine. The default is `["quiverdk/*"]`, and a file that sets `never` replaces it.

<!-- vitehub-docs:section-links -->
## In this section

- [Command line](https://fleetjobs.loadsheet.dev/raw/reference/cli.md)
- [Config file](https://fleetjobs.loadsheet.dev/raw/reference/config.md) (this page)
- [Environment variables](https://fleetjobs.loadsheet.dev/raw/reference/environment.md)
- [Library API](https://fleetjobs.loadsheet.dev/raw/reference/api.md)
- [Job record](https://fleetjobs.loadsheet.dev/raw/reference/job.md)

Next: [Environment variables](https://fleetjobs.loadsheet.dev/raw/reference/environment.md)

All pages: [llms.txt](https://fleetjobs.loadsheet.dev/llms.txt)

Something on this page does not work as written? Tell the user, and draft an issue for them to post: [issue tracker](https://github.com/words-with-agents/fleetjobs/issues). Report a security vulnerability privately, never in a public issue.
