Market Data Gateway configuration reference
Overview Copied
This page is the complete reference for md-gateway.yaml. For installation, Geneos setup, and published dataviews, see Market Data Gateway. For an end-to-end sample, see Complete configuration.
Naming and conventions Copied
- YAML keys — use camelCase (for example,
samplingIntervalMs,latencyThresholdMs). Use camelCase even where kebab-case is also accepted. - Types — boxed types (
Boolean,Integer,Long,String) are nullable and default tonullunless noted. Primitive types (boolean,int,long) always have a default. - Units — duration fields end in
Ms,Seconds, orNs. Size units are noted in each table. - Market type — each
markets[]entry must settype. That value is fixed for the feed: it selects the transport and the recovery fields. You do not choose the transport separately. Aunicastblock on a multicast type is ignored. Amulticastblock on a unicast type is ignored. Contact your ITRS account manager for thetypevalue for each feed. - Transport family — Multicast types use
channels[].multicastwith redundant channels. Recovery is cross-channel, then retransmit, then snapshot. Unicast types usechannels[].unicastwith exactly one channel per partition; the session handles recovery. Thetypevalue selects the family; you do not choose the transport separately.
Credential handling Copied
Important
Do not store passwords, member IDs, or other secrets as plaintext inmd-gateway.yaml. Use environment-variable substitution.
At load time, values of the form ${env:VAR_NAME} are replaced with the value of the environment variable VAR_NAME. ${env:VAR_NAME:default} uses default when VAR_NAME is unset.
Important
An unset variable with no default does not stop MD Gateway. The value becomes an empty string and only a WARN line is logged. A missing secret then fails later, for example, when logging in to a feed. After you change the process environment, check the startup log for these warnings.
Typical fields to inject:
- Snapshot recovery credentials supplied with the feed:
username,password - Unicast session:
username,password - Host-specific values such as interface names or hostnames when they differ by environment
unicast:
username: ${env:FEED_USER}
password: ${env:FEED_PASS}
Set each variable in the environment of the process that starts MD Gateway. A systemd service does not inherit the shell you use to run systemctl.
On Linux, add the variables to a drop-in:
sudo systemctl edit md-gateway
[Service]
Environment=FEED_USER=...
Environment=FEED_PASS=...
Restart the service afterward. This is the same drop-in as Configure JVM options. A foreground start can export the variables in the shell that runs md-gateway.sh.
On Windows, a foreground start can set the variables in that Command Prompt before md-gateway.bat. For an NSSM service, one AppEnvironmentExtra value replaces the whole list, so include every variable in that one command, including JAVA_OPTS if you set it this way:
nssm set MDGateway AppEnvironmentExtra "JAVA_OPTS=-Xms4g -Xmx4g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError" FEED_USER=... FEED_PASS=...
nssm restart MDGateway
See also Market Data Gateway.
Top-level configuration Copied
The fields in this table are the top level of md-gateway.yaml.
| Field | Type | Description |
|---|---|---|
licensing |
LicensingConfig | Licence Daemon connection, or evaluation with Mandatory: Yes |
instrumentation |
InstrumentationConfig | Geneos dataview publishing. Mandatory: Yes |
statusServer |
StatusServerConfig | Built-in HTTP Status UI and JSON API. Omit or set enabled: false to disable. |
search |
SearchConfig | Optional message-search store. Omit or set enabled: false to disable. |
offlineIngest |
OfflineIngestConfig | Optional offline capture lane for supported capture files. Omit the section, or set enabled: false, to turn it off. See Offline ingest. |
markets |
list of MarketDataMonitorConfig | One entry per market feed. Must contain at least one market, unless Mandatory: Yes (or empty when offline ingest is enabled) |
Licensing Copied
YAML key: licensing
Each enabled market requests a Licence Daemon token of the form plugin/md-gateway-<type>, where <type> is that market’s YAML type value. Licence Daemon administrators need that token name for every feed you run. At startup, markets stay dark until each token is granted.
| Token state | Behavior |
|---|---|
AVAILABLE |
Build and start that market. Cancels any pending grace stop. |
UNAVAILABLE |
Stop and discard that market immediately. |
PENDING or UNKNOWN |
Keep the market running for a 24-hour grace period, then stop and discard it. A return to AVAILABLE before the timer fires cancels the stop. |
The grace period rides out transient Licence Daemon reconnects. An explicit UNAVAILABLE grant loss stops immediately. The grace period is not user-configurable.
In normal mode, MD Gateway connects to the Licence Daemon. When demoMode is true, the Licence Daemon is not contacted: every configured market is granted locally for seven days from the start of the license service, and other Licence Daemon fields such as host and port are ignored.
| Field | Type | Description |
|---|---|---|
demoMode |
boolean | When Default: |
host |
string | Hostname or IP of the Licence Daemon. Mandatory: Yes, unless |
port |
int | TCP port of the Licence Daemon. Default: |
instanceId |
string | Unique instance identity. When omitted, derived from the binary ID ( Default: derived |
tls |
boolean | Use TLS for the Licence Daemon connection. Certificate material in Default: |
tlsConfig |
TlsConfig | Client TLS for the Licence Daemon connection. Same shape as instrumentation.geneos.tlsConfig. See Licensing TLS configuration. |
heartbeatIntervalMs |
int | Heartbeat interval for the Licence Daemon connection. Default: |
autoReconnect |
boolean | Reconnect automatically after a Licence Daemon disconnect. Default: |
Licensing TLS configuration Copied
YAML key: licensing.tlsConfig
Optional TLS settings for the outbound Licence Daemon connection. TLS is enabled when licensing.tls is true, or when certFile or trustChainFile is set. Ignored when demoMode is true.
| Field | Type | Description |
|---|---|---|
certFile |
String | Path to the client X.509 certificate PEM presented to the Licence Daemon. |
keyFile |
String | Path to the matching PKCS#8 private key PEM (BEGIN PRIVATE KEY). Requires certFile. |
trustChainFile |
String | Path to a CA trust-chain PEM used to verify the Licence Daemon server certificate. |
requireClientAuth |
boolean | Ignored for licensing (server-only field shared with Geneos probe TLS). Default: |
minTlsVersion |
String | Minimum TLS protocol version ( Default: |
licensing:
host: licd.example.com
port: 7041
tls: true
tlsConfig:
trustChainFile: /certs/licd-ca.pem
minTlsVersion: "1.2"
Evaluation without a Licence Daemon:
licensing:
demoMode: true
Instrumentation Copied
YAML key: instrumentation
MD Gateway refuses to start if this section is absent or if geneos.enabled is not true.
| Field | Type | Description |
|---|---|---|
geneos |
GeneosConfig | Geneos dataview publishing configuration. Mandatory: Yes |
Geneos instrumentation Copied
YAML key: instrumentation.geneos
MD Gateway listens on listenPort acting as a Netprobe. Geneos Gateway connects to that port and pushes sampler configuration. Dataview publishing activates after the probe receives a sampler whose name matches samplerName and whose managed entity matches managedEntity. Define that sampler with the api-streams plugin. For probe, managed entity, and sampler setup on the Geneos side, see Configure the Gateway Setup Editor. For listen-socket TLS fields, see Geneos TLS configuration.
| Field | Type | Description |
|---|---|---|
enabled |
boolean | Enable Geneos dataview publishing. Startup fails if absent or Default: Mandatory: Yes (must be |
listenPort |
int | TCP port on which MD Gateway listens for the Geneos Gateway connection. Default: Mandatory: Yes if enabled |
probeName |
String | Netprobe name registered in the Gateway configuration. Mandatory: Yes if enabled |
managedEntity |
String | Managed entity name under which dataviews are published. Mandatory: Yes if enabled |
samplerName |
String | Sampler name used for the published dataviews. Mandatory: Yes if enabled |
selfMonitoringIntervalMs |
long | Publish interval for self-monitoring dataviews (ms). Default: |
marketDataIntervalMs |
long | Publish interval for market-data dataviews (ms). Default: |
rateWindowSeconds |
int | Rolling window (seconds) for the windowed rate columns of the market-data dataviews (for example, the feeds Default: |
jvmMetrics |
boolean | Publish the JVM Self Monitoring dataview. Set Default: |
tlsConfig |
TlsConfig | TLS or mTLS for the probe listen socket. Omit (or omit certFile) for plaintext. See Geneos TLS configuration. |
books |
BooksConfig | Top-of-book (BBO) dataview configuration. |
protocolStatus |
ProtocolStatusConfig | Windows and thresholds for the Protocol-Status dataview. Defaults apply when omitted. See Protocol Status. |
searchCommands |
SearchCommandsConfig | Probe-published Geneos search commands and per-search Search-Results-NNN dataviews. Wired when search or offline ingest is enabled. See Search commands. |
instrumentation:
geneos:
enabled: true
listenPort: 7036
probeName: MDGatewayProbe
managedEntity: md-gateway
samplerName: MDGateway
selfMonitoringIntervalMs: 10000
marketDataIntervalMs: 5000
rateWindowSeconds: 60
Geneos TLS configuration Copied
YAML key: instrumentation.geneos.tlsConfig
TLS or mTLS for the Geneos probe listen socket. MD Gateway is the TLS server; Geneos Gateway is the client. Same field shape as licensing.tlsConfig.
| Mode | MD Gateway | Geneos Gateway |
|---|---|---|
| Plaintext | Omit tlsConfig, or omit certFile |
Probe without <secure> |
| TLS | certFile + keyFile (PKCS#8) |
<secure>true</secure> plus Gateway SSL certificate and chain that trusts the probe certificate |
| mTLS | TLS material + trustChainFile + requireClientAuth: true |
Same as TLS; Gateway must present a client certificate |
| Field | Type | Description |
|---|---|---|
certFile |
String | Path to the probe X.509 certificate PEM. When set, MD Gateway presents this certificate on the listen socket. |
keyFile |
String | Path to the matching PKCS#8 private key PEM (BEGIN PRIVATE KEY). PKCS#1 keys are not supported; convert with openssl pkcs8 -topk8 -nocrypt -in key.pem -out key-pkcs8.pem. If omitted, EMF2 looks for the key in the certificate file. |
trustChainFile |
String | Path to a CA trust-chain PEM used to verify the Gateway client certificate (mTLS). Required when requireClientAuth is true. |
requireClientAuth |
boolean | When Default: |
minTlsVersion |
String | Minimum TLS protocol version ( Default: |
TLS example:
instrumentation:
geneos:
enabled: true
listenPort: 7036
probeName: MDGatewayProbe
managedEntity: md-gateway
samplerName: MDGateway
tlsConfig:
certFile: /path/to/md-gateway.crt
keyFile: /path/to/md-gateway-key.pem
minTlsVersion: "1.3"
mTLS example:
instrumentation:
geneos:
enabled: true
listenPort: 7036
probeName: MDGatewayProbe
managedEntity: md-gateway
samplerName: MDGateway
tlsConfig:
certFile: /path/to/md-gateway.crt
keyFile: /path/to/md-gateway-key.pem
trustChainFile: /path/to/rootCA.pem
requireClientAuth: true
minTlsVersion: "1.3"
On the Geneos Gateway side, mark the probe secure and supply SSL identity plus a CA chain that trusts the probe certificate. For example:
gateway2.linux_64 ... \
-ssl-certificate /path/to/gateway.pem \
-ssl-certificate-key /path/to/gateway-key.pem \
-ssl-certificate-chain /path/to/rootCA.pem
For the probe XML and Gateway Setup Editor steps, see Add the probe.
Books configuration Copied
YAML key: instrumentation.geneos.books
Controls top-of-book (BBO) dataview publishing.
| Field | Type | Description |
|---|---|---|
mode |
Enum | BBO publishing mode: Default: |
topN |
int | When Default: |
instrumentation:
geneos:
enabled: true
books:
mode: TOP_N
topN: 20
Protocol Status Copied
YAML key: instrumentation.geneos.protocolStatus
Windows and thresholds for the Protocol-Status dataview: one row per running market instance (row key: market name). The block is optional; defaults apply when omitted. For the published columns and headlines, see Protocol-Status.
| Field | Type | Units | Description |
|---|---|---|---|
rateWindowSeconds |
int | s | Rolling window for Default: |
channelUpThresholdSeconds |
int | s | A channel counts as up when any packet (data or heartbeat) arrived within this age. Must be at least 1. Default: |
staleFeedThresholdSeconds |
int | s |
Default: |
instrumentation:
geneos:
protocolStatus:
rateWindowSeconds: 10
channelUpThresholdSeconds: 5
staleFeedThresholdSeconds: 30
Only messagesToday and peakRate (/s) reset at local midnight in the market’s tradingDayZone (when unset: the MD Gateway-wide search.tradingDayZone if search is enabled, otherwise the host’s system default zone). Other counters are since MD Gateway start.
Search commands Copied
YAML key: instrumentation.geneos.searchCommands
Exposes message search as probe-published Geneos commands. When enabled is true and either search or offline ingest is enabled, the probe publishes Search Messages, clear commands, Compare Messages, and (depending on features) Search Latency, offline capture commands, and Export Search Result. Each search creates its own results dataview named <resultsDataviewName>-NNN (for example, Search-Results-001). Beyond maxResultViews, the oldest view of that kind is removed. For Active Console usage, see Search Messages.
| Field | Type | Description |
|---|---|---|
enabled |
boolean | Enable the search commands. They are wired only when Default: |
resultsDataviewName |
String | Name prefix of the per-search results dataviews ( Default: |
exportDir |
String | Directory on the MD Gateway host that Export Search Result writes CSV files to. Created on first use. Leave unset to omit the export command. |
queryTimeoutMs |
long | Maximum time the pop-up waits for the query before returning a “still running” note. Default: |
defaultLookbackMinutes |
int | Default lookback when the live search or latency search command supplies no Default: |
maxResultViews |
int | Maximum number of result dataviews kept live per kind. Search results, comparison results, and latency search results are capped independently; the oldest of that kind is removed when a new run exceeds the cap. Default: |
instrumentation:
geneos:
enabled: true
searchCommands:
enabled: true
resultsDataviewName: Search-Results
exportDir: /var/lib/md-gateway/reports
maxResultViews: 5
queryTimeoutMs: 10000
defaultLookbackMinutes: 30
Status server Copied
YAML key: statusServer
Built-in HTTP server for the Status UI and JSON snapshot endpoints. See Status UI.
Important
The Status UI has no authentication and listens on all interfaces. There is no bind-address setting. Leave it disabled unless you need it for diagnostics, and restrict access to its port with a firewall when you enable it.
| Field | Type | Units | Description |
|---|---|---|---|
enabled |
boolean | — | Enable the Status UI HTTP server. Default: |
port |
int | — | HTTP listen port. Default: |
snapshotIntervalMs |
long | ms | MD Gateway-wide minimum interval between internal order-book snapshot publishes. Markets use this value unless they set their own Default: |
refreshIntervalMs |
long | ms | Auto-refresh interval for the browser UI. Default: |
# No authentication; listens on all interfaces. Leave enabled: false unless
# you need it for diagnostics, and firewall the port when you turn it on.
statusServer:
enabled: true
port: 8080
snapshotIntervalMs: 500
refreshIntervalMs: 1000
Search Copied
YAML key: search
Optional message-search subsystem. Captures received messages into an embedded store for retrieval through GET /api/search and the Geneos Search Messages command. Omit the section or set enabled: false for zero footprint.
Note
Enablingsearchadds JVM heap demand and substantial native memory outside-Xmx. Use at least 4 GB heap and size the host limit with headroom. See Host sizing.
| Field | Type | Units | Description |
|---|---|---|---|
enabled |
boolean | — | Enable message-search capture and the Default: |
questdbDir |
String | — | Filesystem directory for the embedded search store. Mandatory: Yes if enabled |
minFreeDiskMb |
long | MiB | Free-space floor on the Default: |
ringSizeBytes |
int | bytes | Per-partition capture ring capacity in bytes. Must be a power of two. Default: |
retentionDays |
int | days | Drop day partitions older than this. Default: |
retentionCheckIntervalMinutes |
int | min | How often the retention task runs. Default: |
retentionInitialDelayMinutes |
int | min | Delay before the first retention run after start. Default: |
walApplyIdleSleepMs |
int | ms | Idle-sleep interval for the background write-apply workers. Default: |
walApplyWorkers |
int | — | Number of write-apply worker threads. Clamped to at least 1. Set to Default: |
commitMaxFrames |
int | frames | Commit after this many appended frames (or Default: |
commitMaxIntervalMs |
int | ms | Time-based commit trigger for pending rows. Default: |
maxLatencyWindowMinutes |
int | min | Widest Default: |
tradingDayZone |
String | — | Gateway-wide IANA time zone for the instrument trading-day boundary and for Protocol-Status Default: |
webConsole |
object | — | Optional diagnostic SQL console over the search store ( Default: disabled |
channelAudit |
ChannelAuditConfig | Optional per-line raw-packet capture for multicast channels. Omit the section, or set enabled: false, for zero footprint. See Channel audit. |
Channel audit Copied
YAML key: search.channelAudit
When enabled, channel audit stores what each redundant multicast feed line received (one row per raw packet per line), upstream of arbitration. It complements the normalized message-search store. It has no effect on unicast markets. Both search.enabled and channelAudit.enabled must be true.
| Field | Type | Description |
|---|---|---|
enabled |
boolean | Turns channel audit on or off. When Default: |
retentionDays |
int | Retention for the high-volume capture tables. Independent of Default: |
ringSizeBytes |
int | Capacity of each capture ring. If a ring is too small, jumbo packets are dropped without a warning. Default: |
To exclude a line from capture, set capture: false on that channel under markets[].partitions[].channels[].
When channel audit is on, MD Gateway publishes the Channel Capture dataview and Status UI routes under /api/search/channels/ (packets, discrepancies, and recovery). The recovery table exists, but this release does not write recovery events to it.
Important
Per-channel capture multiplies write and storage load by the number of lines. Before you enable it, budget extra heap (start at about 6 GB), raisewalApplyWorkersif needed, size-XX:MaxDirectMemorySizefor the capture rings, and size host memory for the QuestDB off-heap page cache.
search:
enabled: true
questdbDir: /var/lib/md-gateway/search
minFreeDiskMb: 4096
channelAudit:
enabled: true
retentionDays: 3
ringSizeBytes: 8388608
Create /var/lib/md-gateway/search and give it to the service user before the first start. See Enable search.
Offline ingest Copied
YAML key: offlineIngest
The offline capture lane decodes supported capture files for the types supplied to you from a watched folder into a second, separate embedded store, and then exposes them to the Geneos search, comparison, and export commands. It does not connect to a market. Omit the section, or set enabled: false, for zero footprint.
When enabled is true, you can set markets: [] so an analysis-only instance runs with no feed. Use a dedicated offline instance with no live search block. For setup and operator steps, see Offline instance and log ingestion.
| Field | Type | Units | Description |
|---|---|---|---|
enabled |
boolean | — | Enables the offline capture lane. When Default: |
dataDir |
String | — | Root drop folder. Swept once after start, and then polled. The lane never writes to this folder. Mandatory: Yes if enabled |
sources |
map of String to String | — | Pinned lanes: subfolder name (a plain name with no Default: empty |
ledgerFile |
String | — | Path of the TSV ledger of already-ingested files. Must resolve outside Default: none |
pollIntervalMs |
long | ms | Delay between the end of one drop-folder poll and the start of the next. Must be positive. Default: |
questdbDir |
String | — | Directory for the offline lane’s embedded store. Must differ from Mandatory: Yes if enabled |
minFreeDiskMb |
long | MiB | Free-space floor on the offline Default: |
retentionDays |
int | days | Day partitions older than this value are dropped. The default keeps data effectively indefinitely. Default: |
tradingDayZone |
String | — | IANA time zone whose midnight bounds the instrument trading day for the offline store (symbol resolution). Default: |
offlineIngest:
enabled: true
dataDir: /var/lib/md-gateway/offline/incoming
sources:
order-level: "<type>"
price-level: "<type>"
ledgerFile: /var/lib/md-gateway/offline/ingest.ledger
pollIntervalMs: 1000
questdbDir: /var/lib/md-gateway/offline/search
minFreeDiskMb: 4096
retentionDays: 36500
tradingDayZone: UTC
markets: []
Important
If you enableofflineIngesttogether with livesearch, the process runs two embedded QuestDB engines and roughly doubles native off-heap memory. For production, run the offline lane in its own dedicated instance with nosearchblock and withmarkets: [].
Markets Copied
YAML key: markets[]
Each entry defines one market to monitor. The type value is fixed for the feed and selects the transport and the recovery fields. You do not choose the transport separately. The market starts only after the Licence Daemon grants that type. Contact your ITRS account manager for the type value for each feed. When offlineIngest.enabled is true, you can declare markets: [] for an analysis-only instance.
Common market fields Copied
| Field | Type | Units | Description |
|---|---|---|---|
type |
String | — | Market type supplied for this feed. Selects the transport and the recovery fields. The market starts only when the Licence Daemon grants this type. Mandatory: Yes |
name |
String | — | Unique market name used in metrics, logs, and UI. Mandatory: Yes |
enabled |
Boolean | — | Set Default: |
slo |
SloConfig | — | Per-market SLO thresholds and windows. |
recovery |
RecoveryConfig | — | Gap recovery parameters for multicast feeds (cross-channel, then retransmit, then snapshot). |
probeConfig |
RecoveryServiceMonitorConfig | — | Health-probe interval settings for retransmit and snapshot services on multicast feeds. |
snapshotIntervalMs |
long | ms | Minimum interval between internal order-book snapshot publishes for this market. When omitted, the value is taken from statusServer.snapshotIntervalMs, or 200 when there is no statusServer block. The Complete configuration sets statusServer.snapshotIntervalMs: 500 and does not set this field on its markets, so those markets use 500. |
tradingDayZone |
String | — | Per-market IANA time zone whose midnight bounds the market’s trading day for message-search instrument boundaries and for the Protocol-Status dataview ( Default: |
matchingStates |
list of String | — | Exchange state names during which a crossed or locked book is a fault for the Default: |
partitions |
list of PartitionConfig | — | One entry per exchange partition. Must contain at least one. Mandatory: Yes |
Multicast feeds Copied
The type value supplied for the feed selects this transport. Channels use multicast with redundant channels. Recovery is cross-channel, then retransmit, then snapshot. A unicast block on this type is ignored. Retransmit and snapshot settings are in the configuration supplied for the feed. Each of those services runs only when its enabled flag is explicitly true. If omitted, the feature is disabled. See Complete configuration for the fields.
Unicast session Copied
The type value supplied for the feed selects this transport. Use exactly one channel per partition and a unicast block. The session handles recovery. A multicast block on this type is ignored.
SLO configuration Copied
YAML key: markets[].slo
Service-level objective thresholds for latency and inter-channel drift.
| Field | Type | Units | Description |
|---|---|---|---|
latencyThresholdMs |
int | ms | Exchange-to-receive latency SLO. Default: |
lagDriftThresholdMs |
int | ms | Cross-channel receive-timestamp LAG threshold (peer behind the reference channel). Default: |
leadDriftThresholdMs |
int | ms | Cross-channel receive-timestamp LEAD threshold (peer ahead of the reference channel). Default: |
shortWindowSeconds |
int | s | Length of the short rolling window. Default: |
longWindowSeconds |
int | s | Length of the long rolling window. Should be at least Default: |
staleBookThresholdSeconds |
int | s | A book with no updates within this period is counted as stale. Default: |
latencyDescription |
String | — | Human-readable description exported with the latency SLO metric. Default: (sensible default) |
driftDescription |
String | — | Human-readable description exported with the drift SLO metric. Default: (sensible default) |
Recovery configuration Copied
YAML key: markets[].recovery
Tunes gap recovery for multicast feeds (cross-channel, then retransmit, then snapshot).
| Field | Type | Units | Description |
|---|---|---|---|
crossChannelBufferSize |
int | entries | Circular buffer size for tier-1 cross-channel fill. Default: |
crossChannelWaitMs |
long | ms | How long to wait for the other channel before escalating to retransmit. Default: |
retransmitThreshold |
long | messages | Maximum gap size eligible for retransmit. Larger gaps skip to snapshot. Default: |
retransmitTimeoutMs |
long | ms | Timeout per retransmit request attempt. Default: |
maxRetransmitRetries |
int | — | Retransmit attempts after a transport failure before escalating to snapshot. A retransmit that completes but leaves the gap escalates at once. Default: |
Probe configuration Copied
YAML key: markets[].probeConfig
Periodic health probes against retransmit and snapshot services.
| Field | Type | Units | Description |
|---|---|---|---|
enabled |
boolean | — | Master switch for recovery-service probing. Default: |
retransmitEnabled |
boolean | — | Enable retransmit probing. Default: |
retransmitIntervalSeconds |
int | s | Retransmit probe interval. Default: |
snapshotLoginEnabled |
boolean | — | Enable a lightweight snapshot probe (connection and log-in only). Default: |
snapshotLoginIntervalSeconds |
int | s | Lightweight probe interval. Default: |
snapshotRecoveryEnabled |
boolean | — | Enable a deep snapshot probe. Default: |
snapshotRecoveryIntervalSeconds |
int | s | Deep probe interval. Default: |
snapshotRecoveryMaxMessages |
int | messages | Messages to read during each deep probe. Default: |
rollingWindowSize |
int | samples | Number of recent probes retained for health statistics. Default: |
Partitions Copied
YAML key: markets[].partitions[]
| Field | Type | Description |
|---|---|---|
number |
Integer | Partition number, as supplied for the feed. MD Gateway does not check range, contiguity, or uniqueness. Give each partition of a market a distinct number. It keys that partition’s metrics, dataview rows, and search scope ( Mandatory: Yes |
channels |
list of ChannelConfig | Channels for this partition. Multicast typically uses two ( Mandatory: Yes |
Channels Copied
YAML key: markets[].partitions[].channels[]
| Field | Type | Description |
|---|---|---|
name |
String | Channel name. Conventionally Mandatory: Yes |
enabled |
Boolean | For multicast feeds, start this channel only when the value is explicitly Default: |
reference |
Boolean | Mark as the reference channel. For multicast feeds, exactly one enabled channel per partition must set Default: |
crossChannelFill |
Boolean | Whether this channel contributes to tier-1 cross-channel fill. Default: |
driftMetrics |
Boolean | Whether this channel is included in pairwise drift metrics. Default: |
sloMode |
Enum |
Default: derived |
capture |
Boolean | Include this redundant line in Default: |
multicast |
MulticastConfig | UDP multicast receive settings. Required for a multicast feed. On a unicast type, this block is ignored. |
unicast |
UnicastConfig | Unicast session settings. Required for a unicast feed. On a multicast type, this block is ignored. |
If no enabled multicast channel sets reference: true, the partition still starts, but there is no tier-2 or tier-3 recovery, and every channel’s default sloMode is DRIFT_ADJUSTED. The first-enabled-channel fallback applies only to cross-channel drift and payload comparison.
Multicast channels Copied
Multicast feeds receive over UDP. Each channel carries a multicast block. Retransmit and snapshot settings for the feed are supplied with that feed’s configuration.
Multicast Copied
YAML key: channels[].multicast
| Field | Type | Units | Description |
|---|---|---|---|
address |
String | — | IPv4 multicast group address (for example, Mandatory: Yes for channels with |
port |
Integer | — | UDP port. Mandatory: Yes for channels with |
networkInterface |
String | — | Local NIC name to bind (for example, eth1). If omitted, the OS default is used. |
receiveBufferSize |
Integer | bytes | OS-level SO_RCVBUF. Large values (for example, 8388608) are recommended at line rate. |
Reception follows the channel-level enabled setting. Disable a channel there, not under multicast.
Unicast channels Copied
Unicast feeds receive over a point-to-point session. Use a single channel per partition with a unicast block. A multicast block on a unicast feed is ignored.
Unicast Copied
YAML key: channels[].unicast
| Field | Type | Units | Description |
|---|---|---|---|
enabled |
Boolean | — | Must be Mandatory: Yes, and must be |
hostname |
String | — | Unicast server hostname or IP. Mandatory: Yes if enabled |
port |
Integer | — | Unicast server TCP port. Mandatory: Yes if enabled |
username |
String | — | Log-in username (maximum 6 characters). Use Mandatory: Yes if enabled |
password |
String | — | Log-in password (maximum 10 characters). Use Mandatory: Yes if enabled |
connectTimeoutMs |
Integer | ms | TCP connect timeout. Default: |
readTimeoutMs |
Integer | ms | Socket read timeout (including between server heartbeats). Default: |
reconnectDelayMs |
Integer | ms | Initial delay before reconnecting after disconnect. Doubles on each failure up to Default: |
maxReconnectDelayMs |
Integer | ms | Ceiling for reconnect backoff. Default: |
startOfDaySequence |
Long | — | Sequence requested on the first (start-of-day) connect. Some exchanges expect Default: |
replayCatchUpMs |
Integer | ms | After every log-in, the server replays its backlog. The partition treats the feed as caught up at the first message that arrives within this many ms of its exchange time, or at the first server heartbeat. Until then, no latency is recorded for Channels-Feeds or Search Latency. Keep it above normal live latency and below the age of a replayed backlog. Must be positive. Default: |
Example configurations Copied
Important
<type>stands for the value supplied for that feed. It selects the transport in the example. Do not copy<type>into a running config, and do not reuse a multicast type on a unicast feed, or the reverse.
Complete configuration Copied
The following example shows a full file with licensing, Geneos instrumentation, Status UI, search, and two multicast markets. Replace hostnames, multicast addresses, interfaces, and type values for your environment. Use environment-variable substitution for credentials. Add the retransmit and snapshot settings supplied for each feed; those fields are not in this example.
# Market Data Gateway configuration.
# Licence Daemon connection. For evaluation without licd, use demoMode: true instead.
licensing:
host: localhost
port: 7041
# demoMode: true
instrumentation:
geneos:
enabled: true
listenPort: 7036
probeName: MDGatewayProbe
managedEntity: md-gateway
samplerName: MDGateway
selfMonitoringIntervalMs: 20000
marketDataIntervalMs: 2000
# Rolling window (seconds) for rate columns.
rateWindowSeconds: 60
# TLS for the probe listen socket. Omit tlsConfig (or omit certFile) for plaintext.
#tlsConfig:
# certFile: /path/to/md-gateway.crt
# keyFile: /path/to/md-gateway-key.pem
# # trustChainFile: /path/to/rootCA.pem
# # requireClientAuth: true
# minTlsVersion: "1.3"
books:
# OFF | TOP_N
mode: TOP_N
topN: 20
searchCommands:
enabled: false
resultsDataviewName: Search-Results
# exportDir: /var/lib/md-gateway/reports
maxResultViews: 5
queryTimeoutMs: 10000
# No authentication; listens on all interfaces. Leave enabled: false unless
# you need it for diagnostics, and firewall the port when you turn it on.
statusServer:
enabled: true
port: 8080
snapshotIntervalMs: 500
refreshIntervalMs: 1000
# Message search (optional — off by default when omitted or enabled: false).
search:
enabled: true
questdbDir: data/search
minFreeDiskMb: 4096
ringSizeBytes: 8388608
retentionDays: 7
tradingDayZone: UTC
# webConsole: leave disabled for normal deployments
markets:
- name: order-level
type: "<type>" # supplied value for this multicast order-level feed
recovery:
crossChannelBufferSize: 2048
crossChannelWaitMs: 500
retransmitThreshold: 1000
retransmitTimeoutMs: 500
maxRetransmitRetries: 3
slo:
latencyThresholdMs: 20
latencyDescription: >-
Percentage of messages with receive latency under threshold.
lagDriftThresholdMs: 25
leadDriftThresholdMs: 25
driftDescription: >-
Percentage of cross-channel comparisons where the receive-timestamp
difference was under the drift threshold.
shortWindowSeconds: 10
longWindowSeconds: 300
staleBookThresholdSeconds: 30
partitions:
- number: 1
channels:
- name: A
enabled: true
reference: true
crossChannelFill: true
driftMetrics: true
sloMode: STRICT
multicast:
address: 239.1.2.3
port: 5000
networkInterface: eth0
- name: B
enabled: true
reference: false
crossChannelFill: true
driftMetrics: true
sloMode: DRIFT_ADJUSTED
multicast:
address: 239.1.2.4
port: 5001
networkInterface: eth0
- name: price-level
type: "<type>" # supplied value for this multicast price-level feed
partitions:
- number: 1
channels:
- name: A
enabled: true
reference: true
crossChannelFill: true
driftMetrics: true
sloMode: STRICT
multicast:
address: 239.1.2.5
port: 5002
networkInterface: eth0
- name: B
enabled: true
reference: false
crossChannelFill: true
driftMetrics: true
sloMode: DRIFT_ADJUSTED
multicast:
address: 239.1.2.6
port: 5003
networkInterface: eth0