# packs-server.properties

> What each setting in /etc/packs/packs-server.properties does.

Source: https://oasis-protection.com/docs/packs-server/properties/

Packs Server keeps its settings in `/etc/packs/packs-server.properties`. It writes the file at its first start, so you don’t have to make it.

Packs Server writes the file again at each start. It keeps every value you set and adds each new setting with its default, so a new version’s settings show up there by themselves. It also writes its own comment above each line, so comments you add yourself don’t stay. A line it doesn’t know stays below its own settings, under a comment that says so. Packs Server ignores that line and warns about it on stderr, so a misspelt setting shows up in `journalctl -u packs-server`.

Below is the whole file with its default values. Click any setting to see what it does and what it accepts. Most servers only ever change `listen`.

Packs Server reads the file only when it starts. After you edit it, run `systemctl restart packs-server`.

## listen

Default: `127.0.0.1:7650`

The address where Packs Server listens for Oasis. Put the same address in `storage.server.address` in [Oasis's config](/docs/reference/config/#storage-server-address). The default only lets in connections from the same machine, which is right when Minecraft runs on that machine and outside a panel.

For Pterodactyl or Pelican, see [Pterodactyl and Pelican](/docs/packs-server/setup/#pterodactyl-and-pelican). For a Minecraft server on another machine, see [Packs Server on another machine](/docs/packs-server/setup/#packs-server-on-another-machine). The connection over this address is encrypted.

Accepts: `host:port`

## socket

Default: `/run/packs/packs-server.sock`

The Unix socket. The [`packs` command](/docs/packs-server/cli/) talks to Packs Server here, and it reads this line to find the socket. Oasis can use it too, with a `unix:` address, but only when Minecraft runs as the same user as Packs Server.

Every `packs` command works through this socket only, never over `listen`. So whoever can open the socket file can manage Packs Server. The default sits in `/run/packs`, which belongs to the `packs` user, so you run `packs` as root.

Accepts: a file path

## data

Default: `/var/lib/packs`

Where Packs Server keeps everything. `stores/` holds one folder for each store, `keys/` holds the keys you made with `packs key add`, and `server.key` is Packs Server's own key. The `packs` user must be able to write here.

Packs Server makes `server.key` at its first start. If that file is lost, Packs Server makes a new one, and every Minecraft server then needs the new server key in its config. Run `packs key server` to print it.

Accepts: a directory path

## libraries

Default: `""`

Where Packs Server keeps the database driver jars that an [import from CoreProtect](/docs/guides/importing/) loads the first time it needs one. Empty means `libraries/` in the data directory. To import with no download, put the jar in this folder at its path in the repository.

Accepts: a directory path, or empty

## repository

Default: `https://repo1.maven.org/maven2/`

The Maven repository that Packs Server downloads those driver jars from. The default is Maven Central. Change it if the machine reaches the internet only through a mirror.

Accepts: an `http` or `https` address

## read-threads

Default: `6`

How many threads answer lookups and the other reads. All stores share them.

Accepts: a whole number, 1 or more

## cache-bytes

Default: `67108864`

How much memory each store keeps for the parts of its history it read recently. The default is 64 MiB. Every store has a cache of its own, so three stores can use three times this.

The caches live in Packs Server's memory. If you raise this, give Packs Server more memory too, with [`PACKS_HEAP`](/docs/packs-server/operations/#give-packs-server-more-memory).

Accepts: a number of bytes

## seal-rows

Default: `65536`

Packs Server writes new history to a journal first, then packs it into its long-term files. That packing is called sealing. A seal starts when this many new rows are waiting.

Accepts: a number of rows

## seal-idle-millis

Default: `5000`

A seal also starts when no new rows arrive for this long, so a quiet server doesn't leave rows in the journal. The default is 5 seconds.

Accepts: a number of milliseconds

## sync-interval-millis

Default: `200`

How often Packs Server makes sure the journal is on disk. The edits that arrive in one interval go to disk together. The default suits most servers. Oasis keeps each batch until Packs Server confirms it is on disk.

Accepts: a number of milliseconds

## merge-bytes-per-second

Default: `33554432`

In the background, Packs Server merges its long-term files into fewer, bigger ones. This is the most it writes for that each second, on average, so the merge doesn't hog the disk. The default is 32 MiB.

Accepts: a number of bytes

## merge-rows

Default: `8000000`

The most rows one merged file holds. It keeps the memory a merge needs small.

Accepts: a number of rows
