Comments (8)
Yes I've done most of it, couldn't figure out quite why it wasn't working and at the end of the evening remembered I needed to make follow up calls to describe table to get the status. I've split out all the table updates into a new rate limited section. Unfortunately waiting for the table updates to complete will incur some additional runtime but the waiting only kicks in if you need to update more than ten tables. I think all of that makes it the most optimal.... I should get it fully complete today
from dynamodb-lambda-autoscale.
Interesting, i didn't know this limit existed. I'll patch this tonight. Thanks for raising.
from dynamodb-lambda-autoscale.
@tmitchel2 Great, looking forward to it. I will open up a pull request for fetching "all tables" as this has a limit too.
from dynamodb-lambda-autoscale.
@tmitchel2 Any success in rate limiting this? Otherwise i just change it to all synchronous.
from dynamodb-lambda-autoscale.
Sounds great. I don't see any way around the additional runtime either, otherwise you won't be able to rate limit it.
from dynamodb-lambda-autoscale.
Ok this got a bit more involved than i had hoped! Anyway, i think i have it working now and ive just checked it in. I done some testing but please give is a good go to see if its working for you. Please reopen straight away if there's an issue.
from dynamodb-lambda-autoscale.
It runs successfully if i run it on my local but it doesn't seem to finish on time when running on Lambda.
2016-07-21T01:21:35.682Z 63281c86-4ee1-11e6-83d8-e5e9318c6581
{
"errorMessage": "Connection timed out after 5000ms",
"errorType": "TimeoutError",
"stackTrace": [
"ClientRequest.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/http/node.js:56:34)",
"ClientRequest.g (events.js:260:16)",
"emitNone (events.js:67:13)",
"ClientRequest.emit (events.js:166:7)",
"TLSSocket.emitTimeout (_http_client.js:533:10)",
"TLSSocket.g (events.js:260:16)",
"emitNone (events.js:67:13)",
"TLSSocket.emit (events.js:166:7)",
"TLSSocket.Socket._onTimeout (net.js:318:8)",
"_runOnTimeout (timers.js:524:11)"
]
}
from dynamodb-lambda-autoscale.
Never mind, i had to increase the memory limit for the lambda function which resolved the issue. Work nicely now. Great job!
from dynamodb-lambda-autoscale.
Related Issues (20)
- How to scale down working HOT 1
- Minimum capacity ignored HOT 6
- [Discussion] Strategy with fixed values. HOT 5
- Incorporate throttled events into provisioning calculations
- Odd logging message & failure to increase throughput capacity HOT 1
- Add an SNS notification channel for increase / decrease throughput? HOT 7
- Table IOPS are currently being updated HOT 1
- Combine getmetricsstatistics into as few requests as possible
- Add circuit breaker logic
- Is there a setting to limit the number of downscales per day? HOT 1
- Configuration per table group HOT 4
- Would be nice to have a --dryRun feature
- Socket timeouts HOT 1
- Decreasing write capacity was disallowed without any reasons, decreasing using Management Console worked HOT 4
- Would be nice to have a provisioner that selects tables based on tags HOT 1
- Missing script build in package.json HOT 2
- AWS Officially releases native DynamoDB autoscaling HOT 13
- Lambda fails with error
- Configuration specific to env or tables HOT 4
- Allow more decreases per day as per docs HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamodb-lambda-autoscale.