Expand description
The server’s configuration: one TOML file. A configuration error stops the start and names its key, and an unknown key is an error.
Structs§
- Config
- The configuration
serveruns with. Durations are written in whole seconds and sizes in bytes; each must be more than zero, and each has a default. - Config
Error - A configuration that could not be read, naming the key at fault.
- Export
- The
[export]table. - Export
S3 - How to reach the S3-compatible service an export writes to: every key
of
[storage.s3]but the bucket and prefix, which--tonames, andallow_versioning, which only the server’s own storage reads. - Operator
- The operator listener: the
[operator]table. With it,servelistens on a second address that serves operator keys only, andlistenserves tenant keys only. - Parquet
Settings - The
[storage.parquet]table. - Postgres
Settings - How to reach the PostgreSQL database: the
[catalog.postgres]table. TLS, with the server’s certificate chain and host name verified, is the only way it is reached. - S3Settings
- How to reach the bucket: the
[storage.s3]table. - Storage
- Where the server keeps its data: the
[storage]table. A file without it keeps everything indata_dir. - Storage
Error - Why the storage the configuration names cannot be used: the message says which setting or step.
Enums§
- Catalog
Store - Where the catalogs and the registry are kept:
catalog.backend. - Object
Store - Where the sealed vCon objects are kept:
storage.objects.
Constants§
- BODY_
LIMIT - The largest request body unless configured: 16 MiB. The largest of 34,885 vCon files measured (public datasets and recorded test calls) was 5,141,813 bytes, a two-minute recording held inline; nearly all of their recordings are referenced by URL instead.
- CONNECTIONS_
MAX - The most connections
limits.connectionsmay be set to: a bound that keeps a mistyped number from asking for millions of file descriptors. - CONNECTION_
LIMIT_ MAX - The most seconds a connection limit may be set to: an hour. A limit meant to close a stalled connection that waits longer than this closes none in practice.
- CSP_
REPORTS_ MAX - The most reports a minute
limits.csp_reportsandlimits.csp_reports_per_addressmay be set to. Each report taken costs one write to the registry, so a larger number would bound nothing. - INFLATED_
LIMIT - The largest inflation unless configured: four times
BODY_LIMIT, so any vCon accepted plain is also accepted gzipped, with room left for gzipped payloads inside its signed layers. - PACK_
INTERVAL - Time between pack runs unless configured.
- PACK_
LIMIT - The largest sealed object packed unless configured: 16 MiB, the default largest request body.
- POSTGRES_
CONNECT_ TIMEOUT - How long a connection, or a wait for a free one, may take unless configured.
- POSTGRES_
LOCK_ TIMEOUT - The longest a statement may wait for a lock unless configured.
- POSTGRES_
NAME_ LIMIT - The longest database or role name: PostgreSQL cuts a longer one to this many bytes (NAMEDATALEN - 1), which would name another database or role.
- POSTGRES_
POOL - The most connections open at once unless configured.
- POSTGRES_
PORT - The PostgreSQL port unless configured.
- POSTGRES_
STATEMENT_ TIMEOUT - The longest a statement may run unless configured.
- POSTGRES_
TIMEOUT_ LIMIT - The longest
statement_timeoutandlock_timeout, in whole seconds: PostgreSQL holds each as milliseconds in a 32-bit integer. - PURGE_
INTERVAL - Time between purge sweeps unless configured: a version is purged within an hour of falling due.
- READER_
GRACE - How long an older manifest, and a file a compaction stopped naming, stays for readers outside the server unless configured: 15 minutes.
- READ_
TIMEOUT - How long a request body may take to arrive unless configured: a body at
BODY_LIMITneeds about 2.2 Mbit/s. - ROTATION_
WARN - Age of the oldest work waiting for key rotation before
servewarns, unless configured: 30 days. - S3_
TIMEOUT - How long one S3 request may take unless configured.
Functions§
- load
- Reads the configuration file at
path. - parse
- Reads a configuration from its TOML text.
- same_
socket - Whether two listening addresses would take the same socket: the same port, other than the port 0 that asks the system for a free one, on the same address, or on addresses of one family of which one is the unspecified address, which takes every address of the family.