Skip to main content

SM Database

Introduction

The database provides API to store/retrieve local services configuration and other persistent SM data.

The database consists of the following tables:

Table list

DatabaseDescription
configstores the current Aos system state and version
servicesstores the Aos services configuration
instancesstores instances info
trafficmonitorstores the accumulated traffic monitor statistics
layersstores the Aos service layers available in the system

Tables formats

config

Field NameTypeKeyDescription
operationVersionINTEGERCurrent system version
cursorTEXT
envvarsTEXToverride services environment variables

services

Field NameTypeKeyDescription
idTEXT*Service ID
AosVersionINTEGER*Service Aos version
serviceProviderTEXTService provider name
descriptionTEXTService description
imagePathTEXTService image location
gidINTEGERservice group id
manifestDigestBLOBManifest file checksum
cachedINTEGERTrue if service cached
timestampTIMESTAMPLast service use timestamp
sizeINTEGERService image size

instances

Field NameTypeKeyDescription
instanceIDTEXT*Service instance id
serviceIDTEXTService UUID
subjectIDTEXTSubject UUID
instanceINTEGER
priorityINTEGERInstance priority
uidINTEGERSystem uid for the instance
storagePathTEXTPath of the instance storage
statePathTEXTPath of the instance state

trafficmonitor

Field NameTypeKeyDescription
chainTEXT*Iptables chain on which traffic is counted
timeTIMESTAMPThe time when the value was updated
valueINTEGERTraffic value

layers

Field NameTypeKeyDescription
digestTEXT*Layer unique digest
layerIdTEXTHuman-readable layer identification
pathTEXTLocation of the layer in the FS
osVersionTEXTCompatible system version
vendorVersionTEXTLayer vendor version
descriptionTEXTLayer description
aosVersionINTEGERLayer's AosEdge version
timestampTIMESTAMPLast layer use timestamp
cachedINTEGERIs layer cached
sizeINTEGERLayer image size