Skip to content
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

DA.6 Increase write re-tries on timestream client of aggregator engine #52

Open
Tracked by #3
neebs12 opened this issue Nov 11, 2022 · 0 comments
Open
Tracked by #3
Assignees

Comments

@neebs12
Copy link
Contributor

neebs12 commented Nov 11, 2022

@jakedevar - I can do this if you dont have capacity, just a minor modification to the data aggregator code when writing to timestream. This is to lessen the chance that throttling error is encountered by timestream - so we artificially increase the write client retries

Previous code:

const client = new TimestreamWriteClient({region: HOME_REGION});

New code in constellation-container-src/constellation-data-aggregator/services/writeToTimeStream.js

const client = new TimestreamWriteClient({
  region: HOME_REGION,
  maxAttempts: 10
});

image

Reference: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-timestream-query/interfaces/timestreamqueryclientconfig.html

Note: Without true ThrottlingException handling, this is only a temporary measure https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-timestream-write/classes/throttlingexception.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants