Check each option against the object that accepts it. The driver reference covers driver factories, while encryption describes key loaders and change status.
Supply every option marked required. A dash in the default column means the option is absent unless you set it; the description explains that case.
Opening databases
SirannonOptions
Pass these options to new Sirannon(options). See getting started.
| Option | Type | Default | Description |
|---|---|---|---|
driver | SQLiteDriver | required | Sirannon opens connections through this driver. |
hooks | HookConfig | - | Sirannon calls these hooks around queries and connections. The server also calls them before subscriptions, snapshots, and device pushes. |
metrics | MetricsConfig | - | Sirannon reports query timing and row counts, database opens and closes, and delivered change events through these callbacks. |
lifecycle | LifecycleConfig | - | Sirannon applies these automatic-opening, idle-timeout, and open-database limits. |
migrations | MigrationSource | - | Sirannon applies this migration set, or the set returned by this function, before registering a writable database. |
writerWorker | boolean | WriterWorkerOptions | - | Every database in this registry inherits this writer-worker setting. |
cdcRetention | number | - | Sirannon applies this change-log retention in milliseconds unless a database overrides it. |
deviceCursorRetention | number | - | Sirannon applies this device-cursor retention in milliseconds unless a database overrides it. |
maxChangesHeldForDevice | number | - | Sirannon applies this limit to changes retained for one device unless a database overrides it. |
LifecycleConfig
See hooks, metrics, and lifecycle.
| Option | Type | Default | Description |
|---|---|---|---|
autoOpen.resolver | (id: string) => { path, options? } | undefined | - | Sirannon calls this resolver to obtain a path for an unknown database ID. |
idleTimeout | number | 0 | Sirannon closes an idle database after these milliseconds. Zero disables the timer. |
maxOpen | number | 0 | Sirannon evicts the least recently used database to enforce this limit. Zero leaves the count unbounded. |
createTenantResolver builds a resolver from a basePath, an optional file extension, and defaultOptions that it applies to every tenant that it opens.
DatabaseOptions
Pass these options to sirannon.open(id, path, options).
| Option | Type | Default | Description |
|---|---|---|---|
readOnly | boolean | false | Open the database read-only, which refuses every write. |
readPoolSize | number | 4 | A driver with multiple connections opens this many readers, with a minimum of one. |
walMode | boolean | true | Sirannon enables write-ahead logging when true. |
synchronous | 'off' | 'normal' | 'full' | 'extra' | 'normal' | Sirannon configures writer durability through PRAGMA synchronous. A bulk load restores this level when it finishes. |
cdcPollInterval | number | 50 | Sirannon polls for changes at this interval in milliseconds. |
cdcRetention | number | 3600000 | Sirannon retains change history for this many milliseconds. |
deviceCursorRetention | number | 2592000000 | Milliseconds that a device's cursor may hold changes back, 30 days by default. Sirannon deletes the cursor once the device's last acknowledgement, or the oldest change that the cursor holds back, is older than this, and that device then resyncs from a snapshot. |
maxChangesHeldForDevice | number | 0 | Sirannon deletes a device cursor when it retains more than this many changes from other writers. Zero sets no limit. |
writerWorker | boolean | WriterWorkerOptions | false | Sirannon can execute writes on a dedicated thread. See writer worker. |
backups | BackupCycleOptions | - | Capture this database's write-ahead log to a destination on an interval. See continuous backups. |
encryption | EncryptionOptions | - | Supply a function returning 32 raw key bytes, or { key, id }. See encryption. |
WriterWorkerOptions
| Option | Type | Default | Description |
|---|---|---|---|
maxPendingWrites | number | 1024 | Sirannon refuses new writes with WRITE_OVERLOADED when this many writes are in flight. |
writeTimeoutMs | number | 30000 | Sirannon applies this per-operation deadline in milliseconds. Zero disables it. |
maxRestarts | number | 5 | Sirannon allows this many worker restarts before refusing writes with WRITER_WORKER_FATAL. |
OpenOptions
Pass these options to driver.open(path, options) and to ConnectionPool.create, which application code reaches only when it opens a connection outside a Sirannon registry.
| Option | Type | Default | Description |
|---|---|---|---|
readonly | boolean | false | Open the connection read-only. |
encryption | { key: Uint8Array } | - | Supply the raw 32-byte key for this separate connection. |
walMode | boolean | true | Sirannon enables write-ahead logging when true. |
synchronous | SynchronousLevel | 'normal' | SQLite applies this durability level. |
walAutoCheckpoint | number | - | SQLite checkpoints after this many log frames. Zero disables automatic checkpoints, which Sirannon sets when continuous backups are enabled. |
Running statements
QueryOptions
Pass these options to local methods that accept QueryOptions. Remote methods accept the concerns described in the client guide.
| Option | Type | Default | Description |
|---|---|---|---|
readConcern | { level: 'local' | 'majority' | 'linearizable' } | - | Coordinator mode enforces this read concern, while static mode ignores it. |
writeConcern | { level, timeoutMs? } | a local commit in static mode, 'majority' in coordinator mode | This concern specifies how many nodes must acknowledge a write. timeoutMs defaults to 5,000. A replica that forwards the write sends this concern with it, and the primary waits for it. |
BulkLoadOptions
| Option | Type | Default | Description |
|---|---|---|---|
durability | 'off' | 'normal' | 'off' | SQLite applies this durability level during the load. |
checkpoint | boolean | true | Sirannon checkpoints after the load unless continuous backups control checkpointing. |
LiveQueryOptions
| Option | Type | Default | Description |
|---|---|---|---|
rereadJitterMs | number | 25 | Sirannon waits up to this many milliseconds before rereading. |
maxTransactionChanges | number | 10000 | Sirannon rereads the query when a transaction exceeds this change count. |
onError | (error: Error) => void | - | Sirannon reports a listener's throw or rejected promise through this callback. |
Only local queries use rereadJitterMs and maxTransactionChanges; remote queries use the server's defaults. Both local and remote queries accept onError. React's UseLiveQueryOptions adds enabled, which disables the query while false.
Backups
BackupCycleOptions
Pass these options as backups in DatabaseOptions. See continuous backups.
| Option | Type | Default | Description |
|---|---|---|---|
destination | BackupDestination | required | Sirannon stores full copies, change pieces, and chain records through this destination. |
intervalMs | number | 60000 | Sirannon captures at this interval. Zero disables the recurring timer, while startup, shutdown, and explicit captures remain. |
fullCopyIntervalMs | number | 86400000 | Sirannon starts a new full copy after the chain reaches this age. |
chainName | string | 'sirannon-backup-chain' | The destination stores the chain list under this name. |
namePrefix | string | 'sirannon-backup' | Sirannon prefixes each backup identifier with this value. |
pieceBytes | number | 16777216 | Sirannon uses this many bytes for each complete piece. A streamed copy needs a multiple of 512. |
fingerprint | boolean | true | Sirannon computes a SHA-256 digest when true. |
stagingDir | string | a directory beside the database file | Sirannon stages captures in this directory before transfer. |
maxUncapturedLogBytes | number | unbounded | Sirannon limits the write-ahead log to these bytes across turns that capture nothing. |
replicationGroup | BackupGroupSource | - | Sirannon obtains this node's group membership through this source. See backups in a replication group. |
preferredNode | 'replica' | 'primary' | { nodeId } | 'replica' | Sirannon uses this preference to select an eligible backup node. |
pagesPerStep | number | 256 | SQLite copies this many pages per step of a full copy. |
restartLimit | number | 3 | Sirannon refuses more full-copy restarts with BACKUP_RESTARTED. |
noProgressStepLimit | number | 256 | Sirannon limits consecutive steps without copying a new page. |
stallTimeoutMs | number | 30000 | Sirannon fails with BACKUP_STALLED after this many milliseconds without a completed step. |
destinationTimeoutMs | number | 600000 | Sirannon limits each destination call to these milliseconds. Zero removes the deadline. |
onRun | (report: BackupRunReport) => void | - | Sirannon calls this function with each completed backup report. |
onProgress | (progress: BackupProgress) => void | - | Sirannon calls this function after each copy step and stored piece. |
onSkip | (skip: BackupSkip) => void | - | Sirannon reports each skipped turn and its reason through this callback. |
onError | (error: Error) => void | - | Sirannon reports capture, transfer, and checkpoint failures through this callback. Configure it. |
BackupToDestinationOptions
Pass these options to db.backupTo(options). See backup destinations.
| Option | Type | Default | Description |
|---|---|---|---|
destination | BackupDestination | required | Sirannon stores and retrieves pieces through this destination. |
name | string | backup-{ISO timestamp}.db | The destination stores pieces under this name. |
chainId | string | A random identifier. | Sirannon includes this chain identifier in the report. |
pieceBytes | number | 16777216 | Sirannon uses this many bytes for each complete piece. |
fingerprint | boolean | true | Sirannon computes a SHA-256 digest over the copy. |
pagesPerStep | number | 256 | SQLite copies this many pages per step. |
restartLimit | number | 3 | Sirannon refuses more restarts after this count. |
noProgressStepLimit | number | 256 | Sirannon limits consecutive steps without copying a new page. |
stallTimeoutMs | number | 30000 | Sirannon fails after these milliseconds without a completed copy step. |
destinationTimeoutMs | number | 600000 | Sirannon limits each destination call to these milliseconds. |
stagingDir | string | the host temporary directory | Sirannon writes the staged local copy in this directory. |
onProgress | (progress: BackupProgress) => void | - | Sirannon reports copy steps and transferred pieces through this callback. |
BackupScheduleOptions
Pass these options to db.scheduleBackup(options). See backups.
| Option | Type | Default | Description |
|---|---|---|---|
cron | string | required | Supply five fields for minute resolution, or six to add seconds at the front. |
destDir | string | required | Sirannon writes scheduled copies into this directory. |
maxFiles | number | 5 | Sirannon keeps this many matching copies by modification time; zero or less disables rotation. |
timezone | string | the host zone | Sirannon evaluates the expression in this IANA time zone. |
onBackup | (report: BackupFileReport) => void | Promise<void> | - | Sirannon calls this function after each completed copy, before rotating older copies. |
onBackupTimeoutMs | number | 600000 | Sirannon waits these milliseconds for onBackup. Zero removes the deadline. |
onError | (error: Error) => void | - | Sirannon reports each failure through this callback. Configure it. |
BackupRestoreOptions
Pass these options to restoreBackup(options) from @delali/sirannon-db/backup. See restoring a database.
| Option | Type | Default | Description |
|---|---|---|---|
destination | BackupDestination | required | Sirannon retrieves backups and their records through this destination. |
driver | SQLiteDriver | required | Sirannon opens the restored database through this driver. |
destPath | string | required | Sirannon writes the restored database to this path. |
encryption | EncryptionOptions | - | Supply the key for the selected backup chain. |
moment | number | now | Supply the target time in epoch milliseconds. |
chainName | string | 'sirannon-backup-chain' | Sirannon reads the chain list under this destination name. |
replaceExisting | boolean | false | Sirannon replaces an existing target when true. |
batchSize | number | 16 | Sirannon replays this many change pieces between checkpoints, up to 4,096. |
destinationTimeoutMs | number | 600000 | Sirannon limits each destination call to these milliseconds. |
onProgress | (progress: BackupRestoreProgress) => void | - | Sirannon reports progress after each piece and batch. |
Serving over the network
ServerOptions
Pass these options to createServer(sirannon, options). See server.
| Option | Type | Default | Description |
|---|---|---|---|
host | string | '127.0.0.1' | The server binds to this address. |
port | number | 9876 | The server listens on this port. |
cors | boolean | CorsOptions | false | The server applies these cross-origin settings. |
maxBodyBytes | number | 1048576 | The server accepts bodies and messages up to these bytes, as a positive integer no larger than 4,294,967,295. |
maxWebSocketBackpressureBytes | number | the larger of 16777216 and maxBodyBytes | The server closes a connection when its outbound buffer exceeds these bytes. |
cdcRetentionMs | number | 3600000 | The server retains changes for these milliseconds, which limits cursor resumption. |
deviceCursorRetentionMs | number | 2592000000 | Milliseconds that a device's cursor may hold changes back before the server deletes it, 30 days by default. A database's explicit deviceCursorRetention overrides it. |
maxChangesHeldForDevice | number | 0 | The server deletes a cursor when it retains more than this many changes. Zero sets no limit, and a database's explicit option overrides it. |
maxUnacknowledgedChanges | number | 1000 | The server pauses delivery after this many unacknowledged changes. |
authenticate | AuthenticateHook<Identity> | - | The server calls this hook before database routes and WebSocket upgrades. |
operations | OperationRegistry<Identity> | - | The server exposes these registered reads and writes for each database ID. |
sharedOperations | DatabaseOperations<Identity> | - | The server exposes these shared reads and writes on every database, including one opened after startup. A database-specific operation takes precedence over a shared operation with the same identifier. |
acceptSql | boolean | false | The server accepts network SQL when true. It also accepts table subscriptions without an onBeforeSubscribe hook. |
acceptEncryptionChange | boolean | false | Open the encryption-change route; requires authenticate and encryptionKeys. |
encryptionKeys | (databaseId: string, keyRef: string) => EncryptionKey | Promise<EncryptionKey> | - | Resolve an operator's key reference inside the server. |
acceptBackupRestore | boolean | false | Whether the server rebuilds a database from its backups over the network. A server that sets it without authenticate refuses to start, with INVALID_BACKUP_RESTORE. |
acceptDeviceSync | boolean | false | Whether the server serves device sync. A server that sets it without authenticate refuses to start, with INVALID_DEVICE_SYNC. |
resolveExecutionTarget | ServerExecutionTargetResolver | - | The server calls this resolver to obtain the execution target that enforces replication authority. |
getReplicationStatus | () => ReplicationStatusInfo | null | - | The server calls this function for replication state at GET /health/ready. |
getClusterStatus | (databaseId: string) => ClusterStatusInfo | null | - | The server calls this function for routing metadata at GET /db/{id}/cluster. |
authorizeClusterStatus | ClusterStatusAuthorizer | - | The server calls this function to authorise access to node addresses in cluster status. |
ServerCloseOptions
Pass to server.close(options) before sirannon.shutdown().
| Option | Type | Default | Description |
|---|---|---|---|
timeoutMs | number | 30000 | Wait this many milliseconds for requests to drain; accepts whole numbers from 0 to 2,147,483,647. |
ClientOptions
Pass these options to new SirannonClient(url, options). See client SDK.
| Option | Type | Default | Description |
|---|---|---|---|
transport | 'websocket' | 'http' | 'websocket' | The client uses this transport. |
headers | Record<string, string> | - | The client sends these headers on HTTP requests and Node or Bun WebSocket upgrades. A browser client that sets it without webSocketProtocols on the WebSocket transport fails with INVALID_ARGUMENT. |
webSocketProtocols | string | string[] | - | The client offers these subprotocols during the upgrade so that a browser can send a credential. The client offers sirannon.v1 ahead of them. |
autoReconnect | boolean | true | The client reconnects after a recoverable WebSocket disconnect when true. |
reconnectInterval | number | 1000 | The client waits these milliseconds before reconnecting. |
requestTimeout | number | 30000 | The client waits these milliseconds for a WebSocket reply. Zero waits indefinitely. |
TopologyAwareClientOptions
Accepted by TopologyAwareClient from @delali/sirannon-db/client/topology, alongside every ClientOptions field. SirannonClient refuses each of these with INVALID_ARGUMENT. See topology-aware routing.
| Option | Type | Default | Description |
|---|---|---|---|
endpoints | string[] | - | The client requests coordinator routing metadata through these starter endpoints. |
primary | string | - | The client sends static-mode writes to this primary endpoint. |
replicas | string[] | - | The client uses these replica endpoints directly in static mode. |
readPreference | 'primary' | 'replica' | 'nearest' | 'primary' | The client selects a read node using this preference. |
discovery | 'static' | 'coordinator' | 'static' | The client obtains routes from configuration in static mode and from cluster metadata in coordinator mode. |
readConcern | 'local' | 'majority' | 'linearizable' | 'majority' in coordinator mode | The client applies this read concern when selecting a node. |
LoadAllOptions
| Option | Type | Default | Description |
|---|---|---|---|
batchSize | number | 1000 | The client sends up to this many rows per request. Each batch must fit within the server's maxBodyBytes. |
durability | 'off' | 'normal' | 'off' | The server applies this durability level while loading each batch. |
Device sync
SyncControllerOptions
Pass these options to new SyncController(db, options). See device sync.
| Option | Type | Default | Description |
|---|---|---|---|
url | string | required | Supply the server's base URL. |
databaseId | string | required | Supply the database ID that the server opened. |
tables | readonly string[] | required | Supply at least one table for the pull subscription. |
headers | Record<string, string> | - | The controller sends these headers on push, snapshot, and migration requests, and on Node or Bun pull upgrades. |
webSocketProtocols | string | string[] | - | The controller offers these subprotocols on the pull upgrade so that a browser device can send a credential. |
batchSize | number | 100 | Each push contains up to this many changes, with an integer limit from 1 to 1000. |
pushIntervalMs | number | 1000 | The controller schedules pushes at this interval and uses it as the base retry delay. |
ackIntervalMs | number | 2000 | The device acknowledges applied changes at this interval in milliseconds. |
maxPushRetryDelayMs | number | 30000 | The controller limits push and pull retry delays to these milliseconds. |
requestTimeout | number | 30000 | The controller limits each HTTP request to these milliseconds; zero removes the deadline. |
autoResync | boolean | true | The controller automatically downloads a snapshot when a resync is required. A new device needs an explicit first snapshot. |
snapshotRetryDelayMs | number | 5000 | The controller waits these milliseconds before retrying a failed snapshot. |
maxSnapshotRetryDelayMs | number | 300000 | The controller limits snapshot retry delays to these milliseconds. |
snapshotPageSize | number | 500 | Each page contains up to this many rows, with an integer limit from 1 to 1000. |
immediateAckAfterChanges | number | Half the server's window, or 500. | The device acknowledges when outstanding changes reach this count. |
resolver | ConflictResolver | ((table: string) => ConflictResolver) | LWWResolver | The controller resolves pulled changes through this resolver. |
onChange | (event: ChangeEvent) => void | - | The controller calls this function for each pulled change after local commit. |
onStatusChange | (status: SyncStatus) => void | - | The controller reports status changes, pushes, applied pulls, resync requirements, and error changes through this callback. |
onResyncRequired | () => void | - | The controller calls this function when it marks a resync as required. A manual download needs a separate application guard. |
onSnapshotProgress | (progress: SnapshotProgress) => void | - | The controller reports table and row progress through this callback. |
onSnapshotComplete | (outcome: SnapshotOutcome) => void | - | The controller reports whether the local database is usable after a snapshot load through this callback. |
SnapshotDownloadOptions
Accepted by downloadDatabaseSnapshot(db.deviceSync(), options), which copies a server database into a local one outside a SyncController. See device sync recovery.
| Option | Type | Default | Description |
|---|---|---|---|
url | string | required | Supply the server's base URL. |
databaseId | string | required | Supply the database ID to copy. |
headers | Record<string, string> | - | The downloader sends these headers on manifest and page requests. |
pageSize | number | 500 | Each page contains up to this many rows, with an integer limit from 1 to 1000. |
requestTimeoutMs | number | 30000 | The downloader limits each request to these milliseconds. |
onProgress | (progress: SnapshotProgress) => void | - | The downloader reports table and row progress through this callback. |
Replication
ReplicationOptions
Pass these options to new ReplicationEngine(db, writerConn, options). See distributed replication.
| Option | Type | Default | Description |
|---|---|---|---|
nodeId | string | generated in static mode | Supply a node identifier. Coordinator mode needs a stable, persisted value. |
topology | Topology | required | The engine applies this topology, such as PrimaryReplicaTopology. |
transport | ReplicationTransport | required | The engine sends peer traffic through this transport. |
transportConfig | TransportConfig | {} | Configure peer endpoints in static mode; coordinator mode refuses endpoints. |
writeForwarding | boolean | false | A replica forwards writes to the primary when true. |
defaultConflictResolver | ConflictResolver | LWWResolver | The engine resolves conflicts through this resolver by default. |
conflictResolvers | Record<string, ConflictResolver> | - | The engine applies these table-specific resolvers. |
batchSize | number | 100 | The engine sends up to this many changes per replication batch. |
batchIntervalMs | number | 100 | The engine schedules outgoing batches at this interval in milliseconds. |
maxClockDriftMs | number | 60000 | How far an incoming batch's newest timestamp may exceed the local clock. Older batches pass whatever their age. |
maxPendingBatches | number | 10 | The engine limits in-flight batches per peer to this count. |
maxBatchChanges | number | 1000 | The engine accepts up to this many changes per inbound batch. |
ackTimeoutMs | number | 5000 | The engine waits these milliseconds for a batch acknowledgement. |
initialSync | boolean | true | The engine requests a full snapshot when joining a cluster if true. |
syncBatchSize | number | 10000 | The source sends up to this many rows per first-sync batch. |
maxConcurrentSyncs | number | 2 | The source serves up to this many simultaneous sync sessions. |
maxSyncDurationMs | number | 1800000 | The source abandons a sync after these milliseconds. |
maxSyncLagBeforeReady | number | 100 | The engine requires catch-up lag at or below this count before readiness. |
syncAckTimeoutMs | number | 30000 | The source waits these milliseconds for each sync-batch acknowledgement. |
catchUpDeadlineMs | number | 600000 | Sirannon uses this catch-up deadline in milliseconds. |
resumeFromSeq | bigint | - | The engine starts replication from this sequence after an out-of-band sync. |
snapshotConnectionFactory | () => Promise<SQLiteConnection> | - | The source calls this factory for read-only snapshot connections. |
changeTracker | ChangeTracker | - | The source uses this change tracker during first sync. |
flowControl | { maxLagSeconds?, onLagExceeded? } | - | The engine reports replication lag through these callbacks. |
onBeforeForwardedQuery | (sql, params?) => void | - | The primary calls this validation hook before each forwarded statement. |
coordinator | CoordinatorModeConfig | - | The engine enables coordinator-backed authority and failover with this configuration. |
CoordinatorModeConfig
| Option | Type | Default | Description |
|---|---|---|---|
clusterId | string | required | The coordinator isolates this cluster under this identifier. |
groupId | string | required | This identifier selects the replication group for one database. |
endpoint | string | - | The node publishes this application endpoint for client discovery. |
replicationEndpoint | string | - | The node publishes this peer address in its coordinator session. |
votingDataBearingNodeIds | string[] | - | The coordinator uses this voter set to create an unregistered group and calculate write concerns. |
coordinator | ClusterCoordinator | required | The engine accesses cluster authority through this coordinator adapter. |
sessionTtlMs | number | 10000 | The node retains its session lease for these milliseconds between renewals. |
controller | boolean | CoordinatorControllerConfig | enabled | The engine enables the controller loop or applies the supplied controller configuration. |
compatibility | CoordinatorCompatibilityMetadata | - | The coordinator checks these package, specification, and protocol versions before promotion. |
CoordinatorControllerConfig accepts enabled, holderId, leaseTtlMs (10,000 milliseconds by default), and tickIntervalMs (1,000 milliseconds by default).
EtcdClusterCoordinatorOptions
Accepted by createEtcdCoordinator from @delali/sirannon-db/replication/coordinator/etcd.
| Option | Type | Default | Description |
|---|---|---|---|
hosts | string | string[] | required | Supply etcd endpoints with https unless allowInsecure is true. |
keyPrefix | string | required | The coordinator stores this cluster's keys under this prefix. |
credentials | etcd credentials | - | The coordinator authenticates through this root certificate, private key, and certificate chain. |
auth | etcd auth | - | The coordinator authenticates through this username and password. |
grpcOptions | Record<string, unknown> | - | The coordinator forwards these options to the etcd gRPC channel. |
dialTimeoutMs | number | The etcd client's default. | The coordinator limits connection setup to these milliseconds. |
defaultCallTimeoutMs | number | - | The coordinator limits each call to these milliseconds. |
allowInsecure | boolean | false | The coordinator accepts plain http endpoints when true. Restrict this setting to tests. |
onWatcherError | (error: Error) => void | - | The coordinator reports watcher failures through this callback. |
TransportConfig
ReplicationEngine.start() fills in the role, the group, the term, and the protocol version. Set them yourself only when you use a ReplicationTransport without the engine.
| Option | Type | Description |
|---|---|---|
endpoints | string[] | The transport connects to these peers in static mode; coordinator mode refuses this list. |
localRole | 'primary' | 'replica' | The engine supplies the local topology role. |
groupId | string | The engine identifies the replication group during coordinator-mode handshakes. |
primaryTerm | bigint | The engine supplies the current fencing term from coordinator state. |
protocolVersion | string | The engine supplies this protocol version to peers. |
encrypted | boolean | Announce whether this node's database is encrypted; the engine supplies it. |
metadata | Record<string, unknown> | The transport receives this application metadata. |
GrpcReplicationOptions
Accepted by GrpcReplicationTransport from @delali/sirannon-db/transport/grpc.
| Option | Type | Default | Description |
|---|---|---|---|
host | string | '0.0.0.0' | The transport listens for replication traffic on this address. |
port | number | 0 | The server listens on this port. Zero takes an ephemeral one. |
tlsCert | string | - | The transport loads this node's certificate from this path. |
tlsKey | string | - | The transport loads this node's private key from this path. |
tlsCaCert | string | - | The transport loads the certificate authority for peer verification from this path. |
insecure | boolean | false | The transport omits TLS when true; use that mode only in local development. |
forwardDeadlineMs | number | 30000 | The transport limits a forwarded write to these milliseconds, including the primary's wait for write concern. |