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

feat(examples): Demonstrate how to send an email alarm when EFS burst credits below a threshold #373

Merged
merged 5 commits into from
Apr 1, 2021

Conversation

ddneilson
Copy link
Contributor

@ddneilson ddneilson commented Mar 31, 2021

When EFS is deployed in bursting throughput mode it will consume credits whenever throughput is
greater than a baseline throughput dictated by the amount of data stored in EFS. If the average
throughput over time is greater than the baseline, then burst credits will continuously decrease
until they eventually run out.

This adds to the Basic example some CDK code that demonstrates the good practice of setting up
an email alarm when the available burst credits drops below some thresholds; giving the operator
time to increase the amount of data stored on the EFS to increase baseline throughput.

Bonus: Fixes some math errors in the PadEfsStorage lambda function.

Testing

  1. Deployed the Basic Typescript app up to the ServiceTier. Checked Lambda logs to ensure that the files are writing via the padder.
  2. Deployed a modified version of (1) with different thresholds and then used the RCS container host to write files to the EFS until I breached threshold. Email alarm was received.
  3. cdk synth of the Python example modifications.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

… credits below a threshold

When EFS is deployed in bursting throughput mode it will consume credits whenever throughput is
greater than a baseline throughput dictated by the amount of data stored in EFS. If the average
throughput over time is greater than the baseline, then burst credits will continuously decrease
until they eventually run out.

This adds to the Basic example some CDK code that demonstrates the good practice of setting up
an email alarm when the available burst credits drops below some thresholds; giving the operator
time to increase the amount of data stored on the EFS to increase baseline throughput.

Bonus: Fixes some math errors in the PadEfsStorage lambda function.
@ddneilson ddneilson requested review from jusiskin and jericht March 31, 2021 19:55
@ddneilson ddneilson linked an issue Mar 31, 2021 that may be closed by this pull request
2 tasks
@jusiskin jusiskin added the contribution/core This is a PR that came from AWS. label Mar 31, 2021
Copy link
Contributor

@jericht jericht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple nits, otherwise this looks good!

@ddneilson ddneilson requested a review from jericht March 31, 2021 21:58
@ddneilson ddneilson merged commit cc5d372 into aws:mainline Apr 1, 2021
@ddneilson ddneilson deleted the efs_burst_alarms branch April 1, 2021 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show how to create a CloudWatch alarm for EFS burst credits
3 participants