Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Add throttle metrics to describeTableConsumedCapacityAsync #29

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

tylfin
Copy link
Contributor

@tylfin tylfin commented Oct 10, 2016

From Amazon: "It is possible to have short spikes in consumed [READ/WRITE] capacity which do not show up [because] it is an average. So be careful when adjusting table [READ/WRITE] capacity to pay attention to the Throttled [READ/WRITE] Requests..."

Had a use-case for this type of functionality in my production system. Figured it would be useful for others and wanted to give back. Thanks for the awesome package!

@tmitchel2
Copy link
Member

Hey thanks this looks like a great addition! Im working hard on another project at the moment but once i get some free time ill look to merge it.

Add ThrottleEventsDescription type
Add async getThrottledEventsAsync
Add ThrottledEvents to TableConsumedCapacityDescription type
@breath103
Copy link

👍 love to see this get merged

@estahn
Copy link
Contributor

estahn commented Nov 7, 2016

Any update on this?

@tmitchel2 tmitchel2 merged commit f4a6da2 into channl:master Nov 7, 2016
tmitchel2 added a commit that referenced this pull request Nov 7, 2016
… getting applied the throttledWrite value
@tmitchel2
Copy link
Member

Sorry about the wait, merged now. I did find a few flow type errors and a bug where writes were getting applied to reads. @tylfin could you review my changes.

@tylfin
Copy link
Contributor Author

tylfin commented Nov 7, 2016

Looks great, thanks @tmitchel2

@schodemeiss
Copy link

So, now this is in, is there anything I need to add to my provisioner to use it?

@tylfin
Copy link
Contributor Author

tylfin commented Dec 2, 2016

@schodemeiss This PR just makes the throttledReads/Writes available. You need to determine in your config when to scale (best place is here https://github.com/channl/dynamodb-lambda-autoscale/blob/master/src/Provisioner.js#L34).

When you're running into massive throttles and need to scale, it usually means you have a hot-key issue. These issues tend to get worse over time if you're not pruning, so ensure you have the correct DynamoDB schema architecture before throwing money at the problem.

@tylfin tylfin deleted the throttleMetric branch December 2, 2016 16:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants