enabled | If true, enables the JetStream subsystem. | boolean | true | Yes* |
store_dir | Directory to use for file-based storage. | string | /tmp/nats/jetstream | Yes* |
max_memory_store | Maximum size of the memory storage. Defaults to 75% of available memory. | storage | - | Yes* |
max_file_store | Maximum size of the file storage. Defaults to up to 1TB if available. | storage | - | Yes* |
domain | The JetStream domain the server is part of. | string | - | No |
encryption_key | If defined, enables JetStream filestore encryption using the value as the encryption key. A key length of at least 32 bytes is recommended. Note, this key is HMAC-256 hashed on startup which reduces the byte length to 64. | string | - | No |
cipher | Defines the encryption algorithm to use if an encryption key is defined. | string | - | No |
extension_hint | | string | - | No |
prev_encryption_key | Previous encryption key, kept so existing filestore data can be read and re-encrypted after encryption_key changes. | string | - | No |
strict | Reject API requests containing unknown fields instead of ignoring them. | boolean | true | No |
max_buffered_msgs | Messages the server buffers for a stream whose storage is temporarily unavailable, before it starts discarding. | integer | 10000 | No |
max_buffered_size | Byte ceiling for that same buffer. | storage | 128MB | No |
request_queue_limit | Queued JetStream API requests allowed before new ones are rejected. | integer | 10000 | No |
info_queue_limit | Queued stream-info requests allowed before new ones are rejected. | integer | 100000 | No |
meta_compact | Metalayer Raft entries to accumulate before the log is compacted. | integer | - | Yes |
meta_compact_size | Metalayer Raft log size that triggers compaction. | storage | - | Yes |
meta_compact_sync | Compact the metalayer Raft log synchronously rather than in the background. | boolean | false | Yes |
tpm | Seal the filestore encryption key in the machine's TPM, so it cannot be read off disk. | object | - | No |
limits | Default cross-account JetStream limits. | object | - | No |
unique_tag | Defines a tag prefix as a constraint for placement of assets across a JetStream domain. For example, if the value is az: then replicas of an assets will be required to be placed on servers having different az: tags. | string | - | No |
max_outstanding_catchup | Max in-flight bytes for stream catch-up. This was introduced to control how much bandwidth should be dedicated during catch-up to guard against saturating and degrading performance of the network. | storage | 32M | No |
sync_interval | Defines the internal to force sync file-based stream and consumer data to disk. The filestore relies on the operating system's filesystem buffers to periodically sync to disk. However, the server will still periodically force sync files based on this interval. For use cases where unclean shutdowns are common, this can provide more control over how frequently to force sync data when written. If a value always is used, a explicit sync will occur on every write. Do note that this will degrade the max throughput due to the additional I/O calls. | (multiple) | 2m | No |