-
-
Notifications
You must be signed in to change notification settings - Fork 575
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
fix: Specify the number of read replicas as one less that total (#190) #193
fix: Specify the number of read replicas as one less that total (#190) #193
Conversation
@emillbrandt Hey, thank you for the PR! Would you mind resolving the conflict here? |
This is a breaking change to my mind. I wonder how bad is this breaking change for users who are using this module already. If this PR is merged they will suddenly have 1 more instance, right? This is not what people expect. @bryantbiggs What do you think? |
@svenlito Done |
yes I agree @antonbabenko - this would fall under breaking change I think since it will create 1 additional instance in everyones cluster. its not as severe, but still a potentially disruptive change. maybe we hold off for a bit, there are a few things that we know of that we would like to fix at the next breaking change (i.e. - terraform-aws-rds-aurora/main.tf Line 10 in a109e82
|
Agree, let's put this on hold and make a bigger release with the changes you just described. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
replica_scale_min
andreplica_count
are used incorrectly as the total cluster node count.Motivation and Context
#190
Currently setting read replicas to 0 deletes the writer instance.
Once extra auto scaling read replicas gets created with the auto-scaling policy, wasting money.
Breaking Changes
None.
How Has This Been Tested?
Created a cluster with zero read replicas, one writer and zero read replicas were created
Created a cluster with one read replicas, one writer and one read replicas were created
Created a cluster with two read replicas, one writer and two read replicas were created