Comments (11)
did your data (number of users) increase over the last days?
Are you running cognito-backup backup-users
only?
I think this could be a bug in aws-sdk, because it's supposed to handle retry with back-off automatically
from cognito-backup.
A couple of users increased then, but the total number is only 20,000.
I'm running backup-users
only, some parameters are specified tough:
backup-users $POOL_ID --region ap-northeast-1 --profile $PROFILE --file backup/$TODAY.users.json
According to CHANGELOG.md, aws-sdk is 2.1125.0
, which was installed with cognito-backup.
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.1125.0-->
<!--ENTRYINSERT-->
from cognito-backup.
AFAIK the AWS SDK should automatically retry on these kind of errors: https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
not sure why it's not doing it. you don't happen to have any minimal reproducible code you can share?
from cognito-backup.
Hi!
Through trial and error, I've found that half the limit worked fine.
c.f.
hykw@4f0b5db#diff-180b3d2af89416b99563fff8c37eb8ca1ef7591fc1ddd736b5dacf740ccd3760L78
from cognito-backup.
Cool! I have now replaced the bottleneck module with aws-sdk v3's built in throttling logic, so it should in theory not require any trial and error and should automatically back-off if it gets throttled. try out the new version will you! (3.0.1)
from cognito-backup.
@mifi
Hi!
Thank you for the update. Though the backup time took longer than before, 3.0.1 worked correctly!
FYI.
I have about 46000 users in a pool.
- The former version(3.0.0) took 10 minutes
- The trial/error version took 20 minutes
- This version(3.0.1): 39 minutes
from cognito-backup.
thanks for testing this! do you have groups also that gets backed up? are most users connected to at least one group?
from cognito-backup.
I have released a new version with a flag --concurrency
. maybe you can try that when you have time (e.g. try set it to 2)
from cognito-backup.
@mifi
Hi!
Significantly improved performance!
concurrency | minutes |
---|---|
2 | 19 min |
4 | 16 min |
I have a few groups, but most of the users are connected to one of the group.
from cognito-backup.
Ok, that's great. and no errors?
from cognito-backup.
at least so far(until concurrency=4), no errors at all!
from cognito-backup.
Related Issues (16)
- Support for '--profile' AWS CLI option? HOT 1
- User Groups HOT 3
- TooManyRequestsException: Rate exceeded HOT 4
- Restore is not working HOT 5
- Can we have the restore feature? HOT 9
- Cli.js File error HOT 4
- any reason to limit the max users to 60?
- it will only transfer the group; instead, I want to transfer every user in the group. HOT 1
- I have tried cognito group backup & restore but it will transfer group names only , not user present in the group.
- More detailed restore logging HOT 2
- Would you accept a PR to disable users during restore? HOT 3
- Restoration improvements HOT 4
- TooManyRequestsException: Rate exceeded HOT 1
- Add support for specifying profile to use
- Error happens when backup HOT 3
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 cognito-backup.