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

Updates for javabuilder-demo to go live #393

Merged
merged 18 commits into from
May 24, 2023
Merged

Updates for javabuilder-demo to go live #393

merged 18 commits into from
May 24, 2023

Conversation

molly-moen
Copy link
Contributor

@molly-moen molly-moen commented May 24, 2023

  • Increase provisioned concurrency to 5
  • Increase reserved concurrency to 50
  • Update our "high concurrency" alarm to have a different threshold and action for demo. In demo, we will alarm if we reach 45 concurrent executions for 10 minutes. This alarm will go to #infra-javabuilder rather than page the DOTD. I created a new SNS topic for this.

I wanted to update the alarm to be based on a percentage of reserved concurrency, but I couldn't figure out a way to do that in a combination of CloudWatch and CloudFormation.

@@ -1 +1 @@
2.7.7
2.7.8
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was needed for the ci/cd pipeline to build correctly for a dev instance, so I think it will be needed for prod as well. We've done similar changes in the past to keep up the the AWS version of ruby.

@@ -3,8 +3,8 @@
"BaseDomainName": "code.org",
"SubdomainName": "javabuilder-demo",
"BaseDomainNameHostedZonedID": "Z2LCOI49SCXUGU",
"ProvisionedConcurrentExecutions": "1",
"ReservedConcurrentExecutions": "5",
"ProvisionedConcurrentExecutions": "5",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went with 5 here somewhat arbitrarily, lmk if we have another number we want to go with.

Copy link
Contributor

@ebeastlake ebeastlake left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me. I defer to @cat5inthecradle for the final word on the threshold numbers!

Copy link
Contributor

@cat5inthecradle cat5inthecradle left a comment

Choose a reason for hiding this comment

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

You can't just name a PR "Final Updates" and think it's going to go through smoothly 🤣

Numbers look good from my perspective, and always easy to tweak. I have some feedback on the use of conditions instead of parameters for handling different environments. We should prefer parameters wherever possible. I think the desire to use conditionals here is partly because we have to work around the tech debt of manually-provisioned SNS topics.

EDIT: to be clear, my requested change is to get rid of IsDemoCondition and not add any environment-detecting logic to the template in this PR.

@@ -63,6 +63,7 @@ Globals:
Tracing: Active
Conditions:
IsDevCondition: !Equals [!Ref BaseDomainName, "dev-code.org"]
IsDemoCondition: !Equals [!Ref SubdomainName, "javabuilder-demo"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I see you continued the existing pattern here, but we should try to keep this template environment-agnostic, and I would much rather refactor the design to allow us to eliminate the IsDevCondition rather than add a new IsEnvironmentCondition

You're using IsDemoCondition in two places, so I'll make comments directly there.

Copy link
Contributor

@cat5inthecradle cat5inthecradle May 24, 2023

Choose a reason for hiding this comment

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

PR to start eliminating IsDevCondition, definitely a non-school-year project ;)
#394

cicd/3-app/javabuilder/template.yml.erb Outdated Show resolved Hide resolved
cicd/3-app/javabuilder/template.yml.erb Outdated Show resolved Hide resolved
@molly-moen molly-moen changed the title Final Updates for javabuilder-demo Updates for javabuilder-demo to go live May 24, 2023
@molly-moen
Copy link
Contributor Author

You can't just name a PR "Final Updates" and think it's going to go through smoothly 🤣

😆 I renamed it to avoid cursing myself further

@molly-moen molly-moen merged commit 652c19c into main May 24, 2023
@molly-moen molly-moen deleted the molly-demo-alarm branch May 24, 2023 19:40
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

Successfully merging this pull request may close these issues.

3 participants