-
Notifications
You must be signed in to change notification settings - Fork 2k
Add support for read pool auto scale #15308
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
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.
I'm assuming I didn't do this part correctly.
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
3dd8a2e
to
f5f9725
Compare
@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
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.
could you open a seperate PR with the dependency updates? link this PR in the description and say its blocking this
Yes I have linked #15312 in description |
#15312 has now been merged. |
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.
need the go.mod/sum changes removed from this pr now!
9d95ab1
to
e624f6a
Compare
Done! |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_sql_database_instance" "primary" {
node_count = # value needed
settings {
read_pool_auto_scale_config {
disable_scale_in = # value needed
enabled = # value needed
max_node_count = # value needed
min_node_count = # value needed
scale_in_cooldown_seconds = # value needed
scale_out_cooldown_seconds = # value needed
target_metrics {
metric = # value needed
target_value = # value needed
}
}
}
}
Missing doc report (experimental)The following resources have fields missing in documents.
|
Tests analyticsTotal tests: 131 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
FWIW I'm aware TestAccSqlDatabaseInstance_MysqlReadPoolEnableDisableSuccess is failing (before this PR) and will send out a separate fix |
3d20c51
to
e72f8ac
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_sql_database_instance" "primary" {
node_count = # value needed
settings {
read_pool_auto_scale_config {
disable_scale_in = # value needed
enabled = # value needed
max_node_count = # value needed
min_node_count = # value needed
scale_in_cooldown_seconds = # value needed
scale_out_cooldown_seconds = # value needed
target_metrics {
metric = # value needed
target_value = # value needed
}
}
}
}
Missing doc report (experimental)The following resources have fields missing in documents.
|
Tests analyticsTotal tests: 131 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
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! Failing test has an existing ticket and is unrelated.
Verified that missing fields are accounted for, not captured properly due to being supplied to SQL DB tests via string formatting.
Edge scenarios are handled correctly via lines like
return make([]interface{}, 0) // Explicitly return empty slice
Thanks for the contribution and detailed docs!
f20c0f0
Add Support for new Read Pool Auto Scale Config
Furthermore, since auto scaling will involve node_count being automatically updated, adds support for how to handle this field when auto scaling is enabled. Depends on #15312
go/mrp-autoscale-tf
Release Note Template for Downstream PRs (will be copied)