linz / basemaps

NZ’s authoritative and open digital basemap service for LINZ and the public.
https://basemaps.linz.govt.nz
Other
92 stars 17 forks source link

fix(shared): retry dynamodb queries more times BM-1008 #3254

Closed blacha closed 5 months ago

blacha commented 6 months ago

Motivation

Dynamo is sometimes erroring with throttling exception, we currently have retries set at 3 retires

stack: ThrottlingException: Throughput exceeds the current capacity of your table or index. 
DynamoDB is automatically scaling your table or index so please try again shortly.
If exceptions persist, check if you have a hot key: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-design.html
    at qke (/var/task/index.js:20:5520)

Modification

Increase the retry count to 5, so that it retries more before erroring.

Checklist

If not applicable, provide explanation of why.