Skip to content

TracingStore

Configures the storage backend for tracing data.

This object can be configured from the WebUI under Settings › Storage › Tracing Store

TracingStore is a multi-variant object: each instance has an @type discriminator selecting one of the variants below, and each variant carries its own set of fields.

Do not store tracing data

Use data store

FoundationDB

Type: FoundationDbCluster · default: {"@type":"File"}

How the FoundationDB cluster is located: from a cluster file or from coordinators entered manually

Type: FoundationDbTls · default: {"@type":"Default"}

TLS certificates and policy used for coordinators and servers with a ':tls' address

Type: FoundationDbProtocol · default: "negotiate"

FoundationDB protocol version to speak. Negotiate accepts every supported version; a fixed version refuses clusters running any other

Type: String?

Data center ID (optional)

Type: String?

Machine ID in the FoundationDB cluster (optional)

Type: Duration?

Transaction maximum retry delay

Type: UnsignedInt? · max: 1000 · min: 1

Transaction retry limit

Type: Duration?

Transaction timeout

PostgreSQL

Type: Duration? · default: 15000

Maximum time to wait for a connection to the database server to be established

Type: Duration? · default: 120000

Maximum time to wait for the database server to start answering a request before the connection is closed and the request fails. When unset, requests wait indefinitely.

Type: Boolean · default: false

Use TLS to connect to the store

Type: Boolean · default: false

Allow invalid TLS certificates when connecting to the store

Type: TlsClientSettings · default: {"@type":"Default"}

Trusted certificate authorities, revocation lists and client certificate used when TLS is enabled

Type: UnsignedInt? · max: 8192 · min: 1

Maximum number of connections to the store. When unset, 4 per CPU core, between 16 and 32.

Type: PostgreSqlRecyclingMethod · default: "fast"

Method to use when recycling connections in the pool

Type: List<PostgreSqlSettings> · enterprise

List of read replicas for the store

Type: String · required

Hostname of the database server

Type: UnsignedInt · default: 5432 · max: 65535 · min: 1

Port of the database server

Type: String · default: "stalwart"

Name of the database

Type: String? · default: "stalwart"

Username to connect to the store

Type: SecretKeyOptional · default: {"@type":"None"}

Password to connect to the store

Type: String?

Additional connection options

mySQL

Type: Duration? · default: 15000

Time an idle connection may stay open before the server closes it (sets the MySQL wait_timeout session variable)

Type: Boolean · default: false

Use TLS to connect to the store

Type: Boolean · default: false

Allow invalid TLS certificates when connecting to the store

Type: TlsClientSettings · default: {"@type":"Default"}

Trusted certificate authorities, revocation lists and client certificate used when TLS is enabled

Type: UnsignedInt? · max: 1073741824 · min: 1024

Maximum size of a packet in bytes

Type: UnsignedInt? · max: 8192 · min: 1

Maximum number of connections to the store. When unset, 4 per CPU core, between 16 and 32.

Type: UnsignedInt? · default: 5 · max: 8192 · min: 1

Minimum number of connections to the store

Type: List<MySqlSettings> · enterprise

List of read replicas for the store

Type: String · required

Hostname of the database server

Type: UnsignedInt · default: 3306 · max: 65535 · min: 1

Port of the database server

Type: String · default: "stalwart"

Name of the database

Type: String? · default: "stalwart"

Username to connect to the store

Type: SecretKeyOptional · default: {"@type":"None"}

Password to connect to the store

The TracingStore singleton is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

For singletons, the ids argument should be the literal singleton (or null to return the single instance).

This method requires the sysTracingStoreGet permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:TracingStore/get",
{
"ids": [
"singleton"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.

This method requires the sysTracingStoreUpdate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:TracingStore/set",
{
"update": {
"singleton": {
"description": "updated value"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Terminal window
stalwart-cli get TracingStore
Terminal window
stalwart-cli update TracingStore --field description='updated value'

How the FoundationDB cluster is located.

Locates the cluster from a FoundationDB cluster file. FoundationDB environment variables such as FDB_CLUSTER_FILE are not read.

Type: String?

Path to the cluster file. When empty, the platform default (/etc/foundationdb/fdb.cluster on Linux, /usr/local/etc/foundationdb/fdb.cluster on macOS and FreeBSD, C:\ProgramData\foundationdb\fdb.cluster on Windows)

Locates the cluster from coordinators entered manually, without a cluster file. Coordinator changes made in the cluster are followed until restart only, so update these settings after changing coordinators.

Type: String · required

Cluster description, the part of the connection string before ’:’ (letters, digits and underscores)

Type: String · required

Cluster ID, the part of the connection string between ’:’ and ’@’ (letters and digits)

Type: Set<String> · min items: 1 · max items: 64

Coordinators as ip:port or hostname:port, with a ':tls' suffix for coordinators that require TLS

TLS settings for connections to FoundationDB.

  • Default: FoundationDB default files. No additional fields.
  • Manual: Manual. Carries the fields of FoundationDbTlsManual.

TLS settings entered manually. Only the values given here are used: no default files and no FoundationDB environment variables (FDB_TLS_*) are read.

Type: PublicTextOptional · default: {"@type":"None"}

Client certificate chain in PEM format, leaf certificate first. Certificates read from a file are reloaded when the file changes

Type: SecretTextOptional · default: {"@type":"None"}

Client private key in PEM format (PKCS#8, optionally encrypted). Keys read from a file are reloaded when the file changes

Type: SecretKeyOptional · default: {"@type":"None"}

Passphrase of an encrypted private key

Type: PublicTextOptional · default: {"@type":"None"}

Trusted CA certificates in PEM format. When empty, the last certificate of the client chain is the trusted certificate

Type: Set<String> · max items: 16

Peer verification rules in FoundationDB tls_verify_peers syntax; a peer is accepted when any rule matches. When empty, Check.Valid=1

Type: Boolean · default: false

Refuse coordinators and servers that do not use TLS

An optional text value provided directly, from an environment variable, or from a file, or none.

  • None: No value. No additional fields.
  • Text: Text value. Carries the fields of PublicTextValue.
  • EnvironmentVariable: Text value read from environment variable. Carries the fields of SecretKeyEnvironmentVariable.
  • File: Text value read from file. Carries the fields of SecretKeyFile.

A text value provided directly.

Type: Text · required

Text value

A secret value read from an environment variable.

Type: String · required

Environment variable name to read the secret from

A secret value read from a file.

Type: String · required

File path to read the secret from

An optional secret text value, or none.

A secret text value provided directly.

Type: Text · required · secret

Password or secret value

An optional secret value, or none.

  • None: No secret. No additional fields.
  • Value: Secret value. Carries the fields of SecretKeyValue.
  • EnvironmentVariable: Secret read from environment variable. Carries the fields of SecretKeyEnvironmentVariable.
  • File: Secret read from file. Carries the fields of SecretKeyFile.

A secret value provided directly.

Type: String · required · secret

Password or secret value

TLS settings for outgoing connections.

  • Default: Default trust store, no client certificate. No additional fields.
  • Custom: Custom. Carries the fields of TlsClientSettingsCustom.

Trusted certificate authorities and client certificate for outgoing TLS connections.

Type: PublicTextOptional · default: {"@type":"None"}

Trusted certificate authorities in PEM format. When set, they replace the system trust store

Type: PublicTextOptional · default: {"@type":"None"}

Certificate revocation lists in PEM format, checked against the trusted certificate authorities. Certificates issued by an authority without a matching list are accepted

Type: Boolean · default: true

Whether the server certificate must be valid for the hostname. When disabled, the certificate only needs to chain to a trusted certificate authority

Type: PublicTextOptional · default: {"@type":"None"}

Client certificate chain in PEM format, leaf certificate first, presented to the remote server

Type: SecretTextOptional · default: {"@type":"None"}

Private key of the client certificate in PEM format

PostgreSQL connection settings.

Type: String · required

Hostname of the database server

Type: UnsignedInt · default: 5432 · max: 65535 · min: 1

Port of the database server

Type: String · default: "stalwart"

Name of the database

Type: String? · default: "stalwart"

Username to connect to the store

Type: SecretKeyOptional · default: {"@type":"None"}

Password to connect to the store

Type: String?

Additional connection options

MySQL connection settings.

Type: String · required

Hostname of the database server

Type: UnsignedInt · default: 3306 · max: 65535 · min: 1

Port of the database server

Type: String · default: "stalwart"

Name of the database

Type: String? · default: "stalwart"

Username to connect to the store

Type: SecretKeyOptional · default: {"@type":"None"}

Password to connect to the store

ValueLabel
negotiateNegotiate with the cluster
v71FoundationDB 7.1
v72FoundationDB 7.2
v73FoundationDB 7.3
v74FoundationDB 7.4
v80FoundationDB 8.0
ValueLabel
fastFast recycling method
verifiedVerified recycling method
cleanClean recycling method