Skip to main content
Version: 0.1

Limits and defaults

The numbers the gateway enforces or starts with, grouped by area. A default can be changed where the table says; a limit cannot. Durations in configuration keys are .NET TimeSpan strings (d.hh:mm:ss).

Live data (/sync)​

ItemValueNotes
Sockets per user32Limit
Subscriptions per socket10,000Limit
Socket closed after its session endswithin 30 sAlso when the session no longer holds a known role
Slow clientOldest queued frames dropped; a client too far behind is disconnected
WebSocket keep-aliveping every 30 s, timeout 60 s

See Sync.

Replay​

ItemValueNotes
Replays at once, gateway-wide8Limit; one per socket, a second request ends the first
Gap shorteningGaps over 5 s play as 5 s
Checkpoint interval1 hourEventBackbone__CheckpointInterval, a whole fraction of an hour
Checkpoint retentionvalue retention + 2 hours
Checkpoint lookback at startup to 6 hours back; with none, the last hour of values is folded in
replay.status while playingabout 4 per second
Alarm history available to a replayAlarms__EventRetention (365 days)Further back shows no alarms

See History and replay.

Event backbone​

ItemDefaultKey
Value retention7 daysEventBackbone__ValueRetention
Metadata retention30 daysEventBackbone__MetadataRetention
Batch size256 valuesEventBackbone__BatchMaxCount
Batch latency25 msEventBackbone__BatchMaxLatencyMs
tag.replay from the backboneat most 10,000 stored batches read from the start of a range (truncated)Limit
History module answer timeout15 s, then the backbone answersLimit
SQLite checkpointevery 5 sWAL mode, synchronous=NORMAL

See Configuration.

Scripts​

Script kindStatementsMemoryCPU time
Expression tag50,00016 MiB250 ms
Screen script500,00032 MiB2 s
Module script (cron)2,000,00032 MiB5 s
ItemValue
Source length64 KiB
A script's tag reads, in all5 s
Worker pool2 ready from start, up to 4 on a machine with the cores, about 50 to 60 MiB each
Worker heap256 MiB; running out ends that worker
Stuck scriptkilled 1 s after its limit
Refusal after a crash5 s, doubling each time up to 5 min
Module scriptsone at a time across the gateway

See Scripting.

Alarms​

ItemValueNotes
Severity1 to 1000, default 500
On-delayup to one day (onDelayMs)On the gateway's clock
Evaluation queue32,768 valuesIn memory; a burst past it is not evaluated, the state converges on the newest value
Renames, tag disables and deletes picked upwithin 5 s
History retention365 daysAlarms__EventRetention

See Alarms.

Alarm pipelines and event streams​

ItemValue
Pipeline deliveries kept in the loglast 500
Pipeline webhook timeout10 s
Event stream batches kept in memory (log)last 200
Event stream batches held for resending when the receiver is downup to 50 per stream, resent every 10 s, oldest first; lost on restart
Event stream webhook timeout10 s
Response detail kept300 characters

See Alarm pipelines and Event streams.

Historian and cron​

ItemValueNotes
Historian retention90 days default, up to 36,500retentionDays on the historian's settings; shortening prunes at once, otherwise hourly
Cron runs kept90 days, at most 2,000 per job
Cron schedulefive fields, per-job time zone; nothing below a minute

See Historian and Cron.

Modules​

ItemValueNotes
Upload size200 MBLimit, 400 when exceeded
Files in a package5,000Limit
Unpacked size400 MBLimit
Stop timeout30 sModules__StopTimeoutSeconds
Start timeout120 sModules__StartTimeoutSeconds
Log lines in memory, per module2,000
Log files, per module5 of 2 MB eachModules__LogFileBytes
Log stream keepaliveevery 15 sServer-sent events
Default log levelinformationChangeable at run time

See Modules.

Tags and tag types​

ItemValue
Type inheritance depth8 types
Derived bit number0 to 63
@gateway.performance.* publish intervalevery 10 s
@gateway.timeonce a second
Connection state gathered for @gateway.connection tagsevery 2 s

See Tags and Tag types.

Security and audit​

ItemValueNotes
Session lifetime7 days from sign-inNot sliding; cookie scadex.session
Write audit valuecut to 4 KBNothing prunes the table yet
Gateway log buffernewest 2,000 linesIn memory, not persisted
Screen presence heartbeatevery 15 s, expires after 45 sWho has a screen open in the editor

See Security and Audit log.