Skip to content

Instantly share code, notes, and snippets.

@radleta
Last active January 25, 2017 14:17
Show Gist options
  • Save radleta/f87eef4256b735de9206271ed8f0d0bc to your computer and use it in GitHub Desktop.
Save radleta/f87eef4256b735de9206271ed8f0d0bc to your computer and use it in GitHub Desktop.
Example of dynamic-dynamodb.conf
[global]
region: us-east-1
# Important: The combination of the below check interval and num-read-checks-before-scale-down
# or num-write-checks-before-scale-down should never cause more than 24 decreases
# in a given 24 hour period due to DynamoDB restriction of only 24 decreases per
# 24 hours.
check-interval: 60
[logging]
log-level: info
log-file: /var/log/dynamic-dynamodb.log
[default_options]
lookback-window-start: 5
lookback-window-period: 0
throttled-reads-upper-threshold: 1
throttled-writes-upper-threshold: 1
enable-reads-up-scaling: true
enable-reads-down-scaling: true
reads-upper-threshold: 80
reads-lower-threshold: 40
increase-reads-with: 50
decrease-reads-with: 40
increase-reads-unit: percent
decrease-reads-unit: percent
min-provisioned-reads: 5
max-provisioned-reads: 2500
# writes-upper-alarm-threshold: 0
# writes-lower-alarm-threshold: 0
enable-writes-up-scaling = true
enable-writes-down-scaling = true
writes-upper-threshold: 80
writes-lower-threshold: 40
increase-writes-with: 50
decrease-writes-with: 40
increase-writes-unit: percent
decrease-writes-unit: percent
min-provisioned-writes: 5
max-provisioned-writes: 2500
allow-scaling-down-reads-on-0-percent: true
allow-scaling-down-writes-on-0-percent: true
always-decrease-rw-together: true
# Important: Setup the below to get notified on scaling changes.
#sns-topic-arn: arn:aws:sns:us-east-1:000000000000:dynamic-dynamodb
#sns-message-types: scale-up, scale-down, high-throughput-alarm, low-throughput-alarm
# Important: We're only allowed 24 decreases in a 24 hour period. The below should
# not be any lower than once an hour.
num-read-checks-before-scale-down: 60
num-write-checks-before-scale-down: 60
[table: ^Beta-]
min-provisioned-reads: 3
max-provisioned-reads: 500
min-provisioned-writes: 5
max-provisioned-writes: 500
[gsi: .* table: ^Beta-]
min-provisioned-reads: 3
max-provisioned-reads: 500
min-provisioned-writes: 3
max-provisioned-writes: 500
[table: ^Production-]
[gsi: .* table: ^Production-]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment