Skip to main content

Local database

Local Database

A local database is where the data will be stored on the local device. You can set up multiple buckets and choose the Default retention policy and Default downsample retention policy. You can also select if the data stored is important or not. (explanation below)

Database configuration

When the advanced settings are enabled in the General tab, the following settings are enabled:

FieldFunction
NameName used in config platform db for this db config
AddressLocal db instance ip address
PortLocal db instance port

Local database buckets

FieldFunction
IDUnique identifier for the bucket, is used in the measurements section
DB nameName of he local database. Pattern: ^[a-zA-Z][a-zA-Z0-9]*$
RP nameName of the retention policy. Pattern: ^[a-zA-Z]*$
RP durationThe duration of the local retention policy. Pattern: ^(\d)*[smhd]$
Default RPMake this bucket the default RP for raw data
Default downsample RPMake this bucket the default RP for downsampled data
ImportantIf this is checked, capture will not delete data from this bucket in case the Min storage available threshold is almost reached (see more info below)

Automatic data deletion

When your plc is almost running out of available data storage, the Capture system will start deleting data. In the General tab, under Advanced settings, you were able to choose the Min storage available. Capture will start deleting data when the available storage is less than 1.5 times this value (e.g. 150 MB when MSA is 100 MB). However, if you select the important option for a bucket, this will not be done for that bucket.