question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-rds] Minimize downtime during DBCluster updates

See original GitHub issue

Minimize downtime during DB Cluster updates

Current Status

The CfnDBInstance of DBCluster is currently loosely coupled. That is, if there are multiple CfnDBInstances, Instance updates will occur at the same time because there is no dependency on them on Cloudformation. Therefore, the cluster will not be available until the DBInstance update is complete.

Proposal

Adds a dependency to CfnDBInstance. As a result, one by one, RollingUpdate will be performed, and the only downtime will be the timing of the primary switch. In other words, when there are two instances, it will take only two failover times to update. (A) If we can create Dependency dynamically, it will take only a one-time failover time to update. (B)

I think primary failover times are faster than Instance updates. So I think it would be useful to include this feature. However, the update time for Stack and the maintenance time for offline updates will increase.

What do you think about this proposal? I’d like to hear your opinion.

Proposal Solution (A)

https://github.com/aws/aws-cdk/blob/d95af009a8d59393d019620aa8878098ce0aed1d/packages/%40aws-cdk/aws-rds/lib/cluster.ts#L734 Add instance.node.addDependency(previous_instance);

Proposal Solution (B)

I think we need to use aws-sdk to determine if the current Instance is primary or replica, but I haven’t thought about it in detail.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
spanierm42commented, May 19, 2022

No worries, thanks for helping me anyway 😃

1reaction
hixi-hyicommented, Mar 11, 2021

@skinny85 Yes, You know exactly what I mean.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Achieving minimum downtime for major version upgrades in ...
You want to minimize the downtime required for the upgrade process and have a faster rollback option to the older instance in case...
Read more >
Reducing downtime for SAP HANA - Red Hat
Eliminate downtime for mainte- nance events such as hardware upgrades or software updates. Support high availability and disaster recovery for.
Read more >
Maintaining an Amazon Aurora DB cluster - 亚马逊云科技
Periodically, Amazon RDS performs maintenance on Amazon RDS resources. Maintenance most often involves updates to the DB cluster's underlying hardware, ...
Read more >
aws.rds.Instance - Pulumi
By default, RDS applies updates to DB Instances in-place, which can lead to service interruptions. Low-downtime updates minimize service interruptions by ...
Read more >
Reference architectures - GitLab Docs
Zero Downtime Upgrades are available for standard Reference Architecture environments with HA (Cloud Native Hybrid is not supported at this time).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found