How do I know how many partitions a DynamoDB table is spread over?

yadutaf picture yadutaf · Jul 17, 2012 · Viewed 9.7k times · Source

Amazon's DynamoDB in designed for guaranteed performances. A customer must provision throughput for each of it's tables.

To achieve this performances, tables are transparently spread over multiple "servers" AKA "partitions".

Amazon provides us with a "best practice" guide for dimensioning and optimizing the throughput. In this guide, we are told that the provisioned throughput is evenly divided over the partitions. In other words, If the requests are not evenly distributed over the partitions, only a fraction of the reserved (and paid) throughput will be available to the application.

In the worst case scenario, it will be:

worst_throughput = provisioned_and_paid_throughput / partitions

To estimate this "worst_throughput", I need to know the total number of partitions. Where can I find it or how do I estimate it ?

Answer

Fantius picture Fantius · Jul 28, 2012

It says, "When storing data, Amazon DynamoDB divides a table's items into multiple partitions, and distributes the data primarily based on the hash key element."

What you really want to know is the throughput of a single partition. It seems like you can test that by hammering a single key.