040-schema-description.md

October 1, 2024 ยท View on GitHub

tablecolumndata typeEncrypteddescription
actual_lrpsprocess_guidcharacter varying(255)NoDesiredLRP unique identifier (foreign key)
instance_indexintegerNoActualLRP index
evacuatingbooleanNoDeprecated in favor of presence. True if the LRP is on an evacuating cell, false otherwise.
domaincharacter varying(255)NoDomain to which the DesiredLRP belong (either cf-apps or cf-tasks)
statecharacter varying(255)NoOne of UNCLAIMED, CLAIMED, RUNNING OR CRASHED
instance_guidcharacter varying(255)NoGlobally unique id for this row
internal_routestextYESInternal route hostnames used for generating cert SANs in support of C2C TLS
cell_idcharacter varying(255)NoId of the cell on which the LRP is CLAIMED OR RUNNING
placement_errorcharacter varying(1024)NoMost recent placement error that the Auctioneer encountered
sincebigintNoTime when the ActualLRP state was last updated
net_infotextYESInformation about the host ip, the internal interface ip address of the container as well as (host -> container) port mappings
metric_tagstextYESMetadata used for tagging logs and metrics
modification_tag_epochcharacter varying(255)NoGUID generated when the record is created
modification_tag_indexintegerNoInteger incremented everytime there is an update to the record
crash_countintegerNoNumber of crashes
crash_reasoncharacter varying(1024)NoReason for the most reason crash (e.g. app failed the healthcheck)
expire_timebigintNoUnused
presenceintegerNoDescribes the presence of the cell hosting the ActualLRP. 0 for Ordinary, 1 for Evacuating, and 2 for Suspect.
routablebooleanNoTrue if the ActualLRP is ready to serve traffic, i.e. the LRP has passed any defined readiness checks or no readiness checks provided. False otherwise.
configurationsidcharacter varying(255)NoConfiguration table holds configuration values for BBS. Currently id can be one of "version" or "encryption_key_label"
valuecharacter varying(255)NoFor "version" it is the current version of the database. "encryption_key_label" holds the label of the active encryption key
desired_lrpsprocess_guidcharacter varying(255)NoUnique identifier of the DesiredLRP
domaincharacter varying(255)NoDomain to which the DesiredLRP belong (either cf-apps or cf-tasks)
log_guidcharacter varying(255)NoIdentifier to use when emitting application logs
annotationtextNoOptional field for clients of the Diego BBS Api (currently used by CC. set to the timestamp when CC app was last updated)
instancesintegerNoNumber of instances
memory_mbintegerNoMemory Quota in MB
disk_mbintegerNoDisk Quota in MB
max_pidsintegerNoProcess ids Quota
rootfscharacter varying(1024)NoScheme of RootFS to use for the LRP (for example "docker://some/image" or "preloaded:cflinuxfs3")
routestextYESRoutes bound to the DesiredLRP
volume_placementtextYESVolumes to be mounted for the LRP (passed through to the persistence layer)
modification_tag_epochcharacter varying(255)NoGUID generated when the record is created
modification_tag_indexintegerNoInteger incremented everytime there is an update to the record
run_infotextYESMetadata on how to run the application
placement_tagstextNoSpecify the isolation segment used to run the application
domainsdomaincharacter varying(255)NoDomain name
expire_timebigintNoAbsolute time after which the Domain is considered stale
tasksguidcharacter varying(255)NoUnique identifier of the Task
domaincharacter varying(255)NoDomain to which the DesiredLRP belong (either cf-apps or cf-tasks)
task_definitiontextYESMetadata on how to run the task
first_completed_atbigintNoTimestamp when the task was completed
failedbooleanNoTrue if the task completed with failures
failure_reasoncharacter varying(255)NoReason for the failure (if failed is true), for example (task exited with non zero status code)
stateintegerNoState of the task one of 0: "Invalid", 1: "Pending", 2: "Running", 3: "Completed", 4: "Resolving"
cell_idcharacter varying(255)NoId of the cell on which the Task is Running
resulttextNoThe content of the task's result file (result file is specified in the task_definition)
created_atbigintNoTimestamp when the task was first created
updated_atbigintNoTimestamp when the task was last updated