Skip to main content

database_price

Managed database SKUSKU: Stock Keeping UnitAn identifier of a product a vendor sells, e.g. a server type, or a component that its price is built from, such as a vCPU or a GB of memory in a region. Cloud vendors' price lists are made of SKUs, which the Crawler combines into the price of each server type.Glossary prices per Region.

Primary key: vendor_id, region_id, database_id, allocation, ha, ha_strategy. See the version history of this table on dbdocs.io⁠ (opens in a new tab).

Columns​

ColumnTypeConstraintsReferencesDescription
vendor_idVARCHAR(255)PKvendor.vendor_idReference to the Vendor.
region_idVARCHAR(255)PKregion.region_idReference to the Region.
database_idVARCHAR(255)PKdatabase.database_idReference to the Database.
allocationENUMPKAllocation method, e.g. on-demandon-demandA pricing model of cloud servers that charges for the time a server runs, without a commitment, typically per second or hour. The server runs until you stop it, unlike a spot instance, but it costs more than spot or reserved capacity.Glossary or spot. See Allocation for the possible values.
haENUMPKHA level this price applies to. See DatabaseHaLevel for the possible values.
ha_strategyENUMPKHA strategy this price applies to. See DatabaseHaStrategy for the possible values.
unitENUMNOT NULLBilling unit of the pricing model. See PriceUnit for the possible values.
priceFLOATNOT NULLActual price of a billing unit.
price_upfrontFLOATNOT NULLPrice to be paid when setting up the resource.
price_tieredJSONNOT NULLList of pricing tiers with min/max thresholds and actual prices.
currencyVARCHAR(255)NOT NULLCurrency of the prices.
statusENUMNOT NULLStatus of the resource (active or inactive). See Status for the possible values.
observed_atDATETIMENOT NULLTimestamp of the last observation.

Foreign keys​

  • vendor_id, region_id → region (vendor_id, region_id)
  • vendor_id, database_id → database (vendor_id, database_id)
  • vendor_id → vendor (vendor_id)

Enums​

Allocation​

Server allocation options.

ValueDescription
ONDEMANDOn-demand server.
RESERVEDReserved server.
SPOTSpot/preemptible server.

DatabaseHaLevel​

High availability level for a managed database type.

ValueDescription
NONENo high availability.
SINGLE_ZONESingle-zone high availability, meaning multiple databases in the same zone with failover or multi-master.
MULTI_ZONEMulti-zone high availability, meaning multiple databases in multiple zones of the same regionregionA geographic area where a cloud vendor runs its data centers, such as Frankfurt or Northern Virginia, made up of one or more availability zones. A server type is offered in some regions only, and its price can differ by region; a region's ID, such as eu-central-1, is unique only within its vendor.Glossary with failover or multi-master.
MULTI_REGIONMulti-region high availability, meaning multiple databases in multiple regions with failover or multi-master.

DatabaseHaStrategy​

High availability replication strategy for a managed database type.

ValueDescription
NONENo high availability strategy.
PASSIVE_STANDBYPassive standby for failover, e.g. standard RDS Multi-AZ with block storage replication.
READABLE_CLUSTERReadable cluster for read scaling and failover, e.g. RDS Multi-AZ Cluster / Aurora with engine replication.
MULTI_MASTERTrue multi-master, e.g. CockroachDB / Spanner / DynamoDB Global Tables.

PriceUnit​

Supported units for the price tables.

ValueDescription
YEARPrice per year.
MONTHPrice per month.
HOURPrice per hour.
GIBPrice per gibibyte (GiB).
GBPrice per gigabyte (GB).
GB_MONTHPrice per gigabyte (GB)/month.

Status​

Last known status of a record.

The docstrings of the values are shown to end-users (e.g. in the APIAPI: Application Programming InterfaceA defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions.WikipediaGlossary and on the website), so keep those to what a status means, and document here how the statuses are set:

  • ACTIVE and INACTIVE are valid for all tables. Records returned by the vendor or defined in code are ACTIVE. Records no longer returned or defined are set to INACTIVE by pull, as well as records missing from the source by sync.
  • PLANNED_FOR_RETIREMENT and RETIRED are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by pull when the record is no longer returned by the vendor.
  • ARCHIVED is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by pull and sync, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is RETIRED, and records no longer returned by a vendor are INACTIVE.
ValueDescription
ACTIVECurrently available.
INACTIVECurrently not available, without a known retirement. May become available again.
PLANNED_FOR_RETIREMENTRetirement was announced by the vendor, but can still be ordered. Only used for servers and databases.
RETIREDRetired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases.
ARCHIVEDKept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset.