Skip to content
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

feat(Cloud Databases): Deprecate auto_scaling cpu attribute #4599

Merged
merged 1 commit into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ibm/service/database/data_source_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ func DataSourceIBMDatabaseInstance() *schema.Resource {
Type: schema.TypeList,
Description: "CPU Auto Scaling",
Computed: true,
Deprecated: "This field is deprecated, auto scaling cpu is unsupported by IBM Cloud Databases",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"rate_increase_percent": {
Expand Down
1 change: 1 addition & 0 deletions ibm/service/database/resource_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ func ResourceIBMDatabaseInstance() *schema.Resource {
"cpu": {
Type: schema.TypeList,
Description: "CPU Auto Scaling",
Deprecated: "This field is deprecated, auto scaling cpu is unsupported by IBM Cloud Databases",
Optional: true,
Computed: true,
MaxItems: 1,
Expand Down
8 changes: 0 additions & 8 deletions website/docs/d/database.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ In addition to all argument references list, you can access the following attrib
- `auto_scaling` (List)Configure rules to allow your database to automatically increase its resources. Single block of autoscaling is allowed at once.

Nested scheme for `auto_scaling`:
- `cpu` (List)Autoscaling CPU.

Nested scheme for `cpu`:
- `rate_increase_percent`- (Integer) Auto scaling rate in increase percent.
- `rate_limit_count_per_member`- (Integer) Auto scaling rate limit in count per number.
- `rate_period_seconds`- (Integer) Auto scaling rate in period seconds.
- `rate_units` - (String) Auto scaling rate in units.

- `disk` (List) Disk auto scaling.

Nested scheme for `disk`:
Expand Down
14 changes: 1 addition & 13 deletions website/docs/r/database.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ resource "ibm_database" "autoscale" {
location = "us-south"
service_endpoints = "private"
auto_scaling {
cpu {
rate_increase_percent = 20
rate_limit_count_per_member = 20
rate_period_seconds = 900
rate_units = "count"
}
disk {
capacity_enabled = true
free_space_less_than_percent = 15
Expand Down Expand Up @@ -606,19 +600,13 @@ Review the argument reference that you can specify for your resource.
- `auto_scaling` (List , Optional) Configure rules to allow your database to automatically increase its resources. Single block of autoscaling is allowed at once.

- Nested scheme for `auto_scaling`:
- `cpu` (List , Optional) Single block of CPU is allowed at once by CPU autoscaling.
- Nested scheme for `cpu`:
- `rate_increase_percent` - (Optional, Integer) Auto scaling rate in increase percent.
- `rate_limit_count_per_member` - (Optional, Integer) Auto scaling rate limit in count per number.
- `rate_period_seconds` - (Optional, Integer) Period seconds of the auto scaling rate.
- `rate_units` - (Optional, String) Auto scaling rate in units.

- `disk` (List , Optional) Single block of disk is allowed at once in disk auto scaling.
- Nested scheme for `disk`:
- `capacity_enabled` - (Optional, Bool) Auto scaling scalar enables or disables the scalar capacity.
- `free_space_less_than_percent` - (Optional, Integer) Auto scaling scalar capacity free space less than percent.
- `io_above_percent` - (Optional, Integer) Auto scaling scalar I/O utilization above percent.
- `io_enabled` - (Optional, Bool) Auto scaling scalar I/O utilization enabled.`
- `io_over_period` - (Optional, String) Auto scaling scalar I/O utilization over period.
- `rate_increase_percent` - (Optional, Integer) Auto scaling rate increase percent.
- `rate_limit_mb_per_member` - (Optional, Integer) Auto scaling rate limit in megabytes per member.
- `rate_period_seconds` - (Optional, Integer) Auto scaling rate period in seconds.
Expand Down