dynamodb-tracking-tables-billing-mode
--dynamodb-tracking-tables-billing-mode
is a global parameter for the Liquibase DynamoDB Pro extension. It specifies the initial billing mode for Liquibase tracking tables: DATABASECHANGELOG and DATABASECHANGELOGLOCK. This controls how you pay for database read/write operations and capacity. Valid values are PROVISIONED
and PAY_PER_REQUEST
. The default value is PAY_PER_REQUEST
.
Note: If you want to change the billing mode of the tracking tables after you create them, you must instead use the updateDynamoTable
Change Type.
Uses
Amazon DynamoDB has two pricing models for the number of read and write operations you perform on tables in your database every second:
- On-demand (
PAY_PER_REQUEST
): only pay for requests you actually make - Provisioned (
PROVISIONED
): you pay for a specific maximum number of requests per second
For more information, see Read/write capacity mode.
Liquibase automatically creates internal tracking tables like the DBCL, DBCLL, and DBCLH in your database. It uses these to run commands like update
and rollback
and record changes to the database's state.
The --dynamodb-tracking-tables-billing-mode
parameter lets you define which billing mode DynamoDB uses for read/write operations Liquibase makes to those tracking tables:
- If you can't estimate your database's expected load on the Liquibase tracking tables in advance, use
PAY_PER_REQUEST
. This way, you won't reach capacity. - If you can estimate your database's expected load on the Liquibase tracking tables in advance, use
PROVISIONED
. Then set custom capacity values for the following parameters:
Note: If you set a capacity value too low and then exceed it, DynamoDB will throttle your requests.
Syntax
You can set this parameter in the following ways:
Option | Syntax |
---|---|
Liquibase properties file (defaults file) |
|
Global flow file argument (example) |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS Environment Variable) |
|
Liquibase Environment Variables |
|
For more information, see Working with Command Parameters.