-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
support MySQL 2nd gen to set up HA #5567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM- I'll upstream this so the fix gets applied to the google-beta
docs as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I was unable to configure this in MySQL failing for the same reason as the linked issue. Can you share your repro?
Here is terraform plan result .
And here is terraform apply result.
It failed when I created failover replica instance. |
That's a failure for me as well, through both Terraform and the console. Can you share the actual config you're using? It's possible I'm missing some required setting on my instance. |
@rileykarson
Couldn't you create MySQL HA instances by GCP console? |
As @ozashu mentioned it looks like there is an API restriction and in order to use a terraform-google-modules/terraform-google-sql-db#71 (comment) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
#5286
Confirmed that MySQL(Cloud SQL) 2nd generation 5.7 is also able to set up for high availability.
The documentation needs to be fixed as:Availability type - (Optional) This specifies whether a PostgreSQL instance should be set up for high availability (
REGIONAL
) or single zone (ZONAL
). It can be also applied for MySQL 2nd Gen. For MySQL, it should be set up for high availability (REGIONAL
)without creating Failover replica instance using terraform apply command.