Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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 ?

like image 467
yadutaf Avatar asked Jul 17 '12 18:07

yadutaf


1 Answers

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.

like image 173
Fantius Avatar answered Oct 13 '22 00:10

Fantius