skip to navigation
skip to content

Not Logged In

dynamic-dynamodb 1.6.0

Automatic provisioning for AWS DynamoDB tables

Latest Version: 1.11.0

# Dynamic DynamoDB

AWS DynamoDB is a great service, but it falls short when it comes to automated throughput scaling. This is where Dynamic DynamoDB enters the stage. It provides automatic read and write provisioning for DynamoDB.

All you need to do is to tell Dynamic DynamoDB at which point and how much you want to scale up or down your DynamoDB. An example is in place. Let’s say you have way more traffic on your database during sales hours 4pm - 10pm. DynamicDB can monitor the increased throughput on your DynamoDB instance (via CloudWatch) and provision more throughput as needed. When the load is reducing Dynamic DynamoDB will sence that and automatically reduce your provisioning.

See an example of how to configure Dynamic DynamoDB under **Basic usage** or checkout `dynamic-dynamodb --help`.

Features in short

- Scale up and down DynamoDB automatically
- Restrict scaling to certain time slots
- Monitor multiple DynamoDB tables at the same time
- Gives you control over how much reads and writes you want to scale up and down with
- Dynamic DynamoDB has support for max and min limits so that you always knows how much money you spend at most and how much capacity you can be guaranteed
- Support for circuit breaker API call. If your service is experiencing disturbances, Dynamic DynamoDB will not scale down your DynamoDB tables


Project documentation is hosted at [](

Basic usage

This example will configure Dynamic DynamoDB to:

- Scale up your DynamoDB table when the consumed reads 90% of the total provisioned reads
- Scale up your DynamoDB table when the consumed writes 90% of the total provisioned writes
- Scale up your reads with 50%
- Scale up your writes with 40%
- Scale down your DynamoDB table when the consumed reads 30% of the total provisioned reads
- Scale down your DynamoDB table when the consumed writes 40% of the total provisioned writes
- Scale down your reads with 40%
- Scale down your writes with 70%
- Check for changes every 5 minutes


    dynamic-dynamodb --table-name my-table \
                     --reads-upper-threshold 90 \
                     --reads-lower-threshold 30 \
                     --increase-reads-with 50 \
                     --decrease-reads-with 40 \
                     --writes-upper-threshold 90 \
                     --writes-lower-threshold 40 \
                     --increase-writes-with 40 \
                     --decrease-writes-with 70 \
                     --check-interval 300

Please note that using configuration files instead of command line options will give you even more control over the service.

Installation instructions

The easiest way to install Dynamic DynamoDB is through PyPI:

    pip install dynamic-dynamodb

Reporting bugs

Please help me by providing feedback and bug reports. You can file bugs in the project's [GitHub Issues page](

Provide as much details as possible to make bug fixing as swift as possible.

Git strategy

This project uses [git-flow]( for handling branching and releasing in Git. See the following [blog post]( for more details on how it works.

Release information

**1.6.0 (2013-11-21)**

- Documented project in Sphinx - [](
- Fixed [Failure on non-matching regular expressions #69](
- Fixed bug [cleanup logs in case of noop updates #71]( - Thanks [@tmorgan](

**1.5.8 (2013-10-18)**

- Fixed bug [Under some circumstances Dynamic DynamoDB crashes when table is deleted #68](

**1.5.7 (2013-10-17)**

- Closed [Support for running dynamic-dynamodb with supervisord #66]( with [Pull Request #67]( Thanks @pragnesh!

**1.5.6 (2013-10-06)**

- [Fixed issue where DDB didn't support increasing capacity two times #65](

**1.5.5 (2013-08-31)**

- [Change log level of informational message](

**1.5.4 (2013-08-29)**

- [Added missing `key_name` parameter](

**1.5.3 (2013-08-27)**

- [Added missing sleep statement fixes](

**1.5.2 (2013-08-27)**

- [Issue with `always-decrease-rw-together` option](
- [ListTables permission required](

The AWS `ListTables` permission is no longer a hard requirement. It's only needed if you're using regular expressions to configure your DynamoDB tables.

**1.5.1 (2013-08-22)**

- [No module named core]( (fixed by [#54](

Fixed bug in the 1.5.0 release.

**1.5.0 (2013-08-22)**

- [Support for regular expressions in config](

Thanks [@pragnesh]( for adding this feature!

**1.4.0 (2013-08-14)**

- [Retrying failed DynamoDB connections](

**1.3.6 (2013-07-21)**

- [int() argument must be a string or a number, not 'NoneType' (#50)](

**1.3.5 (2013-06-17)**

- [increase_writes_unit parameter is used while it should be decrease_writes_unit (#47)](

**1.3.4 (2013-06-13)**

- [An attempt to update provisioning is made even if the requested values are equal to the tables current values (#46)](

**1.3.3 (2013-06-08)**

- [Increasing to a minimum provisioned throughput value doesn't take into account the current table's throughput (#45)](
- [dynamic-dynamodb --version causes AttributeError in cli (#44)](

**1.3.2 (2013-05-14)**

- [increase_reads_in_percent calculations are incorrect (#40)](

**1.3.1 (2013-05-10)**

- [Fix Python 2.6 support (#39)](

**1.3.0 (2013-05-01)**

This Dynamic DynamoDB release makes it possible to use multiple Dynamic DynamoDB instances in parallel in daemon mode. Simply use the `--instance` flag to separate the difference instances with a unique name. Then control them as usual with the `--daemon` flag.

- [Allow to run multiple instances in parallel (#37)](

**1.2.5 (2013-04-29)**

- [Handle ResourceInUseException better (#36)](
- [Add --log-level option to command line (#34)](

**1.2.4 (2013-04-26)**

- [Mix up between percent and units (#35)](
- Broken build fixed

**1.2.0 (2013-04-20)**

- [Add support for dead-man's-switch API call (#25)](

**1.1.0 (2013-04-17)**

- [Update provisioning in units not just percentage (#22)](
- [Increase in percent does not add to current provisioning properly (#33)](
- [Enhance configuration option validation (#32)](

**1.0.1 (2013-04-17)**

- Minor fix: Ugly output removed

**1.0.0 (2013-04-16)**

The 1.0.0 release is a leap forward when it comes to module structure and extendability. Please remember that this is still released in beta in PyPI, so all bug reports are very welcome. File any odd behavior or bugs in [GitHub Issues](

- [Restructure the Dynamic DynamoDB code base (#30)](
- [Support multiple tables in one configuration file (#19)](
- [Change pid file name (#31)](
- [Handle combinations of configuration file and command line options better (#24)](

**0.5.0 (2013-04-12)**

- [Add --log-file command line option (#20)](
- [Allow scale down at 0% consumed count (#17)](
- ["only downscale reads AND writes" option would be useful (#23)](

**0.4.2 (2013-04-11)**

- [Unhandled exception: ValidationException (#28)](
- [Handle DynamoDB provisioning exceptions cleaner (#29)](

**0.4.1 (2013-04-10)**

- [No logging in --daemon mode (#21)](

**0.4.0 (2013-04-06)**

- [Support for daemonizing Dynamic DynamoDB (#11)](
- [Enhanced logging options (#4)](
- [Add --version flag to dynamic-dynamodb command (#18)](

**0.3.5 (2013-04-05)**

- [Handle missing table exceptions (#12)](
- Bug fix: [No upscaling happening when scaling limit is exceeded (#16)](

**0.3.4 (2013-04-05)**

- Bug fix: [Min/max limits seems to be read improperly from configuration files (#15)](

**0.3.3 (2013-04-05)**

- Bug fix: [Mixup of read and writes provisioing in scaling (#14)](

**0.3.2 (2013-04-05)**

- Bug fix: [Improper scaling under certain circumstances (#13)](

**0.3.1 (2013-04-04)**

- Bug fix: [ValueError: Unknown format code 'd' for object of type 'str' (#10)](

**0.3.0 (2013-03-27)**

This release contains support for configuration files, custom AWS access keys and configurable maintenance windows. The maintenance feature will restrict Dynamic DynamoDB to change your provisioning only during specific time slots.

- [Add support for configuration files (#6)](
- [Configure AWS credentials on command line (#5)](
- [Support for maintenance windows (#1)](

**0.2.0 (2013-03-24)**
- First public release

**0.1.1 (2013-03-24)**
- Initial release

Releasing to PyPI

    make release


This project is maintained by [Sebastian Dahlgren]( ([GitHub]( | [Twitter]( | [LinkedIn](


Copyright 2013 Sebastian Dahlgren

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
File Type Py Version Uploaded on Size
dynamic-dynamodb-1.6.0.tar.gz (md5) Source 2013-11-21 34KB
  • Downloads (All Versions):
  • 274 downloads in the last day
  • 1007 downloads in the last week
  • 16626 downloads in the last month