-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add autoscaling policies and custom alarms to GuCDK #1823
Comments
Thanks for looking into this and opening this issue! I'm not very familiar with the differences between
This documentation, plus the fact that IIUC we could achieve the overall goal of the Slab's current CloudFormation using |
Thank you for getting back to me @jacobwinch. I will talk to the Ophan team and get their thoughts on moving to |
Great, thanks! If there is a particular reason that
I believe @waisingyiu implemented this approach for MAPI - I guess it's beyond the scope of this issue but it could be worth chatting with him about this approach if you decide to migrate.
No, I don't think there is any rush to migrate if you were already able to get something working using |
We talked about it in Standup and we decided that we will migrate to CDK with
The Slab PR is in review now so if we need to take that approach as part of migrating to CDK we will contact @waisingyiu Thank you @jacobwinch for your help |
The Ophan team is halfway through the transition from CFN Yaml to GuCDK for one of their components, The Slab, and that's when we encountered lots of code to be written in Typescript for autoscaling rules (ScaleUpPolicy, ScaleDownPolicy) and 3 Cloudwatch alarms and each one of them references one of the autoscaling rules as an action. Also I want to mention that
Lag
is a custom metric. For more details check https://github.com/guardian/ophan/blob/c6321d02bc50723f0d46efb022e2305709fc826f/cloudformation/the-slab.cfn.yaml#L155-L220It would have been easier if we are using
Step scaling
but unfortunately we are usingSimple scaling
which required lots of AWS CDK code.I paired with @akash1810 to find the best way to accomplish that and this is how we did it https://github.com/guardian/ophan/pull/5326/commits/72d00fba5b2ba2f3dfa5ef72420a65683c1a8955 but I asked if such scenarios could be done in GuCDK so that is why I wanted to add visibility to that requirement and if it is something that DevX team would consider.
The text was updated successfully, but these errors were encountered: