Configuration

A kdb Insights Database's configuration is composed of a schema, a stream, and multiple data tiers for real-time and historical data. In kdb Insights, a database can be configured using a configuration file called an assembly file.

At a minimum, an kdb Insights Database needs:

Once the database has been configured, the database can be deployed.

Configuration methods

In kdb Insights, configuration for a database can be submitted through an assembly file.

Example

labels:
 region: us-east-1
tables:
 trace:
 description: Manufacturing trace data
 type: partitioned
 blockSize: 10000
 prtnCol: updateTS
 sortColsOrd: [sensorID]
 sortColsDisk: [sensorID]
 columns:
 - name: sensorID
 description: Sensor Identifier
 type: int
 attrMem: grouped
 attrDisk: parted
 attrOrd: parted
 - name: readTS
 description: Reading timestamp
 type: timestamp
 - name: captureTS
 description: Capture timestamp
 type: timestamp
 - name: valFloat
 description: Sensor value
 type: float
 - name: qual
 description: Reading quality
 type: byte
 - name: alarm
 description: Enumerated alarm flag
 type: byte
 - name: updateTS
 description: Ingestion timestamp
 type: timestamp
mounts:
 rdb:
 type: stream
 baseURI: none
 partition: none
 idb:
 type: local
 partition: ordinal
 hdb:
 type: local
 partition: date
elements:
 sm:
 size: 1
 source: south
 tiers:
 - name: streaming
 mount: rdb
 - name: interval
 mount: idb
 schedule:
 freq: 00:10:00
 - name: historical
 mount: hdb
 schedule:
 freq: 1D00:00:00
 snap: 01:35:00
 retain:
 time: 3 Months
 dap:
 instances:
 da:
 source: south
 mountList:
 - idb
 - rdb
 - hdb