Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

amphi init

Creates a new data directory.

Synopsis

amphi init <dir> [--page-size 8k] [--set name=value]...
           [--wal-segment-bytes <n>] [--segment-bytes <n>] [--extent-bytes <n>]
           [--tls-self-signed]

Description

Creates the selected data directory with a control file, base, global, wal, and tmp directories, plus the generated amphi.conf. Invalid arguments produce usage exit code 2.

Options

–page-size <4k|8k|16k|32k|64k> sets the page size; the default is 8k and it cannot be changed later. –wal-segment-bytes, –segment-bytes, and –extent-bytes set immutable layout values. Repeat –set name=value to add bootstrap settings.

–tls-self-signed creates development certificates under tls/ and sets tls_mode = required. Do not use these certificates in production.

$ amphi init /var/lib/amphi --page-size 16k --set name=value