Auto scale DynamoDB
with
Dynamic DynamoDB
Sebastian Dahlgren!
@sebdah
Project overview
Throughput metrics via CloudWatch
Supports auto scaling of

tables & global secondary indexes



Live for about a year
>10.000 monthly downloads
Open source
Background
Auto scaling is important!
- Saves money

- Saves your skin
No auto scaling in DynamoDB
Basic config example
Configuration
• [global]	
  
o AWS credentials
o Check interval
o Circuit breaker
• [logging]	
  
o Logging settings
o Supports external logging config
• [table:	
  my_table]	
  
o Rules for scaling a certain table
o Maintenance windows
• [gsi:	
  my_gsi	
  table:	
  my_table]	
  
o Rules for scaling Global Secondary Indexes
Handling many tables or
dynamic table names
• Table list refreshed for every iteration
o Addition of new tables
o Removal of old tables

• Use regular expressions in your configuration
[table:	
  ^daily_data.*$]
Scaling down
• DynamoDB limits down scaling to 4 times per UTC
day
• Optimize downscaling by using

o reads-­‐lower-­‐threshold

o writes-­‐lower-­‐threshold

o always-­‐decrease-­‐rw-­‐together

o maintenance-­‐windows
SNS notifications
• Get an email when your
provisioning is updated

• Currently supports:
o scale-up
o scale-down
Circuit breaker
• Dynamic DynamoDB
can poll an URL to
check system health

• All scaling is paused if
the URL does not
return HTTP 200	
  OK
CloudFormation template
• Launches a t1.micro
instance

(<$15/mo)
• Auto Scaling Group

min: 1, max: 1
• Running Dynamic
DynamoDB in daemon
mode
• Configuration on S3
Tadaa
Image publishing service
Thank you!
sebdah / dynamic-dynamodb

More Related Content

PDF
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
PPTX
Getting Maximum Performance from Amazon Redshift: Complex Queries
PPTX
Servicios de Almacenamiento en AWS
PPTX
New AWS Services for Bioinformatics
PDF
AWS Glue - let's get stuck in!
PDF
Amazon RedShift - Ianni Vamvadelis
PPTX
Dynamo db
PDF
AWS CLOUD 2018- Amazon DynamoDB기반 글로벌 서비스 개발 방법 (김준형 솔루션즈 아키텍트)
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Maximum Performance from Amazon Redshift: Complex Queries
Servicios de Almacenamiento en AWS
New AWS Services for Bioinformatics
AWS Glue - let's get stuck in!
Amazon RedShift - Ianni Vamvadelis
Dynamo db
AWS CLOUD 2018- Amazon DynamoDB기반 글로벌 서비스 개발 방법 (김준형 솔루션즈 아키텍트)

Similar to Autoscale DynamoDB with Dynamic DynamoDB (19)

PDF
The dr overnight dba
PDF
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
PPTX
Dynamodb Presentation
PPTX
NDC Minnesota - Analyzing StackExchange data with Azure Data Lake
PDF
AWS User Group October
PPTX
AWS database services
PDF
AWS Certified Cloud Practitioner Course S11-S17
PDF
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
PPTX
Redshift overview
PDF
Deep Dive into DynamoDB
PDF
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
PDF
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
PDF
Domino Server Health - Monitoring and Managing
PPTX
Sizing MongoDB Clusters
PDF
MongoDB World 2018: Solving Your Backup Needs Using MongoDB Ops Manager, Clou...
PPT
Designing, Building, and Maintaining Large Cubes using Lessons Learned
PPTX
Azure data platform overview
PPTX
Sizing MongoDB Clusters
PDF
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
The dr overnight dba
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
Dynamodb Presentation
NDC Minnesota - Analyzing StackExchange data with Azure Data Lake
AWS User Group October
AWS database services
AWS Certified Cloud Practitioner Course S11-S17
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
Redshift overview
Deep Dive into DynamoDB
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
Domino Server Health - Monitoring and Managing
Sizing MongoDB Clusters
MongoDB World 2018: Solving Your Backup Needs Using MongoDB Ops Manager, Clou...
Designing, Building, and Maintaining Large Cubes using Lessons Learned
Azure data platform overview
Sizing MongoDB Clusters
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
Ad

Recently uploaded (20)

PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Unlock new opportunities with location data.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPT
What is a Computer? Input Devices /output devices
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Five Habits of High-Impact Board Members
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
STKI Israel Market Study 2025 version august
PDF
CloudStack 4.21: First Look Webinar slides
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Architecture types and enterprise applications.pdf
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Group 1 Presentation -Planning and Decision Making .pptx
Unlock new opportunities with location data.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
What is a Computer? Input Devices /output devices
Developing a website for English-speaking practice to English as a foreign la...
Five Habits of High-Impact Board Members
Getting started with AI Agents and Multi-Agent Systems
STKI Israel Market Study 2025 version august
CloudStack 4.21: First Look Webinar slides
A novel scalable deep ensemble learning framework for big data classification...
Benefits of Physical activity for teenagers.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Architecture types and enterprise applications.pdf
A review of recent deep learning applications in wood surface defect identifi...
WOOl fibre morphology and structure.pdf for textiles
Taming the Chaos: How to Turn Unstructured Data into Decisions
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
observCloud-Native Containerability and monitoring.pptx
NewMind AI Weekly Chronicles – August ’25 Week III
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Ad

Autoscale DynamoDB with Dynamic DynamoDB

  • 1. Auto scale DynamoDB with Dynamic DynamoDB Sebastian Dahlgren! @sebdah
  • 2. Project overview Throughput metrics via CloudWatch Supports auto scaling of
 tables & global secondary indexes
 
 Live for about a year >10.000 monthly downloads Open source
  • 3. Background Auto scaling is important! - Saves money
 - Saves your skin No auto scaling in DynamoDB
  • 5. Configuration • [global]   o AWS credentials o Check interval o Circuit breaker • [logging]   o Logging settings o Supports external logging config • [table:  my_table]   o Rules for scaling a certain table o Maintenance windows • [gsi:  my_gsi  table:  my_table]   o Rules for scaling Global Secondary Indexes
  • 6. Handling many tables or dynamic table names • Table list refreshed for every iteration o Addition of new tables o Removal of old tables
 • Use regular expressions in your configuration [table:  ^daily_data.*$]
  • 7. Scaling down • DynamoDB limits down scaling to 4 times per UTC day • Optimize downscaling by using
 o reads-­‐lower-­‐threshold
 o writes-­‐lower-­‐threshold
 o always-­‐decrease-­‐rw-­‐together
 o maintenance-­‐windows
  • 8. SNS notifications • Get an email when your provisioning is updated
 • Currently supports: o scale-up o scale-down
  • 9. Circuit breaker • Dynamic DynamoDB can poll an URL to check system health
 • All scaling is paused if the URL does not return HTTP 200  OK
  • 10. CloudFormation template • Launches a t1.micro instance
 (<$15/mo) • Auto Scaling Group
 min: 1, max: 1 • Running Dynamic DynamoDB in daemon mode • Configuration on S3
  • 12. Thank you! sebdah / dynamic-dynamodb