Skip to content

Commit

Permalink
feat(Cloud Databases): Deprecate auto_scaling cpu attribute (#4599)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhemard authored Jun 6, 2023
1 parent 1f89e1a commit 80d708a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
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

0 comments on commit 80d708a

Please sign in to comment.