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

Migrate from using ELB to ALB Load Balancer Type for DCR #9310

Closed
Tracked by #8351 ...
ioannakok opened this issue Oct 25, 2023 · 3 comments · Fixed by #9955
Closed
Tracked by #8351 ...

Migrate from using ELB to ALB Load Balancer Type for DCR #9310

ioannakok opened this issue Oct 25, 2023 · 3 comments · Fixed by #9955
Assignees
Milestone

Comments

@ioannakok
Copy link
Contributor

ioannakok commented Oct 25, 2023

In DCR we are currently using ELB (Classic Load Balancer) which will probably be deprecated in the near future.

/**
* TODO - migrate this ELB (classic load balancer) to an ALB (application load balancer)
* @see https://github.com/guardian/cdk/blob/512536bd590b26d9fcac5d39329e8217103d7859/src/constructs/loadbalancing/elb.ts#L24-L46
*
* GOTCHA: The load balancer name appends `-ELB` when the `app = "rendering"` for backwards compatibility
* We removed this to avoid the `LoadBalancerName.length > 32`. This will be fixable once we migrate to ALBs.
*/
const loadBalancerName = app === 'rendering' ? `${stack}-${stage}-${app}-ELB` : `${stack}-${stage}-${app}`;
const loadBalancer = new GuClassicLoadBalancer(

The DevX recommendation is to use GuClassicLoadBalancer only when migrating an existing stack and need to retain the load balancer. This was done in #8566

This ticket is to migrate from using ELB to ALB Load Balancer Type. As load balancer is a stateful resource and replacement is unexpected, we need to follow the DevX Migration Guide.

Useful docs

Metric

What metric should we use to evaluate this change?

@alinaboghiu alinaboghiu moved this from Triage to Planned in WebX Team Oct 26, 2023
@github-project-automation github-project-automation bot moved this to Triage in WebX Team Oct 26, 2023
@ioannakok ioannakok changed the title Migrate from using ELB to ALB Load Balancer Type Migrate from using ELB to ALB Load Balancer Type for DCR Oct 26, 2023
@alinaboghiu alinaboghiu moved this from Planned to In progress in WebX Team Oct 30, 2023
@cemms1 cemms1 moved this from In progress to Planned in WebX Team Nov 1, 2023
@abeddow91 abeddow91 self-assigned this Nov 1, 2023
@ioannakok ioannakok moved this from Planned to Backlog in WebX Team Nov 21, 2023
@alinaboghiu alinaboghiu moved this from Backlog to Planned in WebX Team Dec 13, 2023
@JamieB-gu JamieB-gu removed their assignment Dec 14, 2023
@github-project-automation github-project-automation bot moved this from This Sprint to Done in WebX Team Jan 4, 2024
@cemms1
Copy link
Contributor

cemms1 commented Jan 4, 2024

Reopening as we still need to do the switch in frontend guardian/frontend#26789 before traffic starts using the new article load balancer

@cemms1 cemms1 reopened this Jan 4, 2024
@github-project-automation github-project-automation bot moved this from Done to Triage in WebX Team Jan 4, 2024
@cemms1
Copy link
Contributor

cemms1 commented Jan 4, 2024

Moving this to blocked as we want to wait until scaling optimisations are included before we start pointing traffic to the new app

See release plan for details https://docs.google.com/document/d/1EK-tS0NP0yhuuEl_kM9mBPvmwaWH3r3UTcsVLy-WXm0/edit?usp=sharing

@cemms1 cemms1 moved this from Triage to Blocked in WebX Team Jan 4, 2024
@cemms1 cemms1 moved this from Blocked to Review in WebX Team Jan 16, 2024
@cemms1
Copy link
Contributor

cemms1 commented Jan 19, 2024

Closing as this has been done in guardian/frontend#26821 and VPC config adjusted suitably in https://github.com/guardian/platform/pull/1575

@cemms1 cemms1 closed this as completed Jan 19, 2024
@github-project-automation github-project-automation bot moved this from Review to Done in WebX Team Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants