Skip to content

Commit d7273d8

Browse files
authored
fix: use code editor for auto scale configuration (#718)
1 parent 68e400e commit d7273d8

File tree

3 files changed

+56
-4
lines changed

3 files changed

+56
-4
lines changed

ibm_catalog.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,12 @@
268268
"key": "member_host_flavor"
269269
},
270270
{
271-
"key": "auto_scaling"
271+
"key": "auto_scaling",
272+
"custom_config": {
273+
"type": "code_editor",
274+
"grouping": "deployment",
275+
"original_grouping": "deployment"
276+
}
272277
},
273278
{
274279
"key": "configuration",
@@ -617,7 +622,12 @@
617622
"key": "member_host_flavor"
618623
},
619624
{
620-
"key": "auto_scaling"
625+
"key": "auto_scaling",
626+
"custom_config": {
627+
"type": "code_editor",
628+
"grouping": "deployment",
629+
"original_grouping": "deployment"
630+
}
621631
},
622632
{
623633
"key": "configuration",

solutions/fully-configurable/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,28 @@ variable "auto_scaling" {
358358
})
359359
})
360360
description = "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-postgresql/blob/main/solutions/fully-configurable/DA-types.md#autoscaling)"
361-
default = null
361+
default = {
362+
disk = {
363+
capacity_enabled = false
364+
free_space_less_than_percent = 10
365+
io_above_percent = 90
366+
io_enabled = false
367+
io_over_period = "15m"
368+
rate_increase_percent = 10
369+
rate_limit_mb_per_member = 3670016
370+
rate_period_seconds = 900
371+
rate_units = "mb"
372+
}
373+
memory = {
374+
io_above_percent = 90
375+
io_enabled = false
376+
io_over_period = "15m"
377+
rate_increase_percent = 10
378+
rate_limit_mb_per_member = 114688
379+
rate_period_seconds = 900
380+
rate_units = "mb"
381+
}
382+
}
362383
}
363384

364385
#############################################################################

solutions/security-enforced/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,28 @@ variable "auto_scaling" {
295295
})
296296
})
297297
description = "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-postgresql/tree/main/solutions/fully-configurable/DA-types.md)"
298-
default = null
298+
default = {
299+
disk = {
300+
capacity_enabled = false
301+
free_space_less_than_percent = 10
302+
io_above_percent = 90
303+
io_enabled = false
304+
io_over_period = "15m"
305+
rate_increase_percent = 10
306+
rate_limit_mb_per_member = 3670016
307+
rate_period_seconds = 900
308+
rate_units = "mb"
309+
}
310+
memory = {
311+
io_above_percent = 90
312+
io_enabled = false
313+
io_over_period = "15m"
314+
rate_increase_percent = 10
315+
rate_limit_mb_per_member = 114688
316+
rate_period_seconds = 900
317+
rate_units = "mb"
318+
}
319+
}
299320
}
300321

301322
#############################################################################

0 commit comments

Comments
 (0)