Skip to content

feat: add support of Blue/Green Deployment #1355

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

Merged
merged 4 commits into from
Jun 4, 2025
Merged

Conversation

sergiyvamz
Copy link
Contributor

@sergiyvamz sergiyvamz commented Apr 10, 2025

Summary

add support of Blue/Green Deployment for the following DB types:

  • Aurora Mysql cluster
  • Aurora Postgres cluster
  • RDS Mysql Instance
  • RDS Postgres Instance

Description

Additional Reviewers

@karenc-bq
@aaron-congo

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

@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch 2 times, most recently from f09bc7c to d814776 Compare April 10, 2025 22:34
Copy link

github-actions bot commented Apr 10, 2025

Qodana Community for JVM

1 new problem were found

Inspection name Severity Problems
Nullability and data flow problems 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2023.3.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch 7 times, most recently from ef090b5 to 31140a7 Compare April 16, 2025 17:05
@dvdgsng
Copy link
Contributor

dvdgsng commented Apr 22, 2025

Interesting. Will this PR eventually fix the lacking support for Blue-Green-Deployments?

@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch 3 times, most recently from 9af9a0b to 420b9da Compare May 21, 2025 22:55
@sergiyvamz sergiyvamz changed the title [WIP] multiaz tests support add support of Bluee/Green Deployment May 21, 2025
@sergiyvamz sergiyvamz changed the title add support of Bluee/Green Deployment add support of Blue/Green Deployment May 21, 2025
@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch 3 times, most recently from 929a8ff to 4bb7aff Compare May 23, 2025 00:12
@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch 3 times, most recently from 2ca9ed2 to 203a063 Compare May 28, 2025 23:43
@hsuamz hsuamz changed the title add support of Blue/Green Deployment feat: add support of Blue/Green Deployment May 29, 2025
@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch 2 times, most recently from 3df733a to b0edda0 Compare May 30, 2025 17:39
@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch from b0edda0 to 0093fd4 Compare June 3, 2025 00:54
sergiyvamz and others added 3 commits June 2, 2025 17:55
qodana
blue new connections
add RDS PG support; fixes
fix IAM and routing
green change node name
APG support
switchover rollback
fix unit tests
codestyle
tags
separate host list provider per monitor
review todo
fixes for Aurora
refactoring
IAM fixes; summary
fixes; BG switchover summary; IAM node changed name
resources tier down
fix integration test suite
bgdId
smart waiting
routing verified
bg monitors
IAM reroute to IP and a proper token
useBlueNode flag in BG status
iam, dialect identification
Blue/Green Deployments for MultiAz clusters
@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch from 0093fd4 to 2871fdf Compare June 3, 2025 00:55
@sergiyvamz sergiyvamz force-pushed the bg-multiaz-support branch from 55814e2 to cfa792f Compare June 4, 2025 00:16
@sergiyvamz sergiyvamz enabled auto-merge (squash) June 4, 2025 00:16
Comment on lines +35 to +41
protected final String hostAndPort; // if value is provided then host is mandatory and port is optional.
protected final BlueGreenRole role;

public BaseConnectRouting(@Nullable String hostAndPort, @Nullable BlueGreenRole role) {
this.hostAndPort = hostAndPort == null ? null : hostAndPort.toLowerCase();
this.role = role;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move these and the toString override to BaseRouting? Both this class BaseExecuteRouting have the same implementation.

@sergiyvamz sergiyvamz merged commit b5543df into main Jun 4, 2025
7 checks passed
@sergiyvamz sergiyvamz deleted the bg-multiaz-support branch June 4, 2025 01:14
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.

5 participants