-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request rate is large. #83
Comments
You can handle this in a couple of ways:
This is where the retry policy is defined: Line 98 in f458054
|
@joelhulen |
my migration file |
@vipinsorot, the retry mechanism is already implemented. You just need to configure your Try increasing that value to something higher, like 20. As for scale, simply switching from manual to auto-scale RU/s isn't necessarily enough to overcome rate limiting in high-volume loads. You might consider increasing the max RU/s in your auto-scale settings to a much higher number only while executing the tool. |
I just saw your last message. Increase |
@joelhulen the job is existing with below msg |
updated migration json: |
Based on the message, I assume that no data was transferred, correct? If not, did you change any other settings besides |
Indeed, no data has been successfully copied over. To tackle this, I've made an adjustment by increasing the maximum Request Units per second (RU/s) to 10,000 specifically for the designated collection |
Are you able to run the application in debug mode to dig into why the data isn't copying over? From the log outputs you shared, it looks like there were no errors, per see, just that no data copied over. This could happen if it is unable to access the source data. I wonder if the max request (429) errors were coming from the source Cosmos DB database and not the destination one? Can you try scaling the source up before running the tool and see what happens? |
Yup i have already increased the RU/s to 10k for both source and sink |
Line 36 in f458054
call is updating feedIterator.HasMoreResults to false, has led to fetching a total of 0 records. |
@joelhulen it worked post refactoring the code |
Error-msg: Data transfer failed
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: TooManyRequests (429); Substatus: 3200; ActivityId: cfe3d2b9-8315-4ce4-9833-2ef94a6f7d82; Reason: (
code : TooManyRequests
message : Message: {"Errors":["Request rate is large. More Request Units may be needed, so no changes were made. Please retry this request later. Learn more: http://aka.ms/cosmosdb-error-429"]}
Source: cosmos-nosql
Sink: cosmos-nosql
release:2.1.3
The text was updated successfully, but these errors were encountered: