Skip to content

Commit f106e32

Browse files
authored
fix: use code editor for auto scale configuration (#633)
1 parent 5529f79 commit f106e32

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
@@ -250,7 +250,12 @@
250250
"key": "member_host_flavor"
251251
},
252252
{
253-
"key": "auto_scaling"
253+
"key": "auto_scaling",
254+
"custom_config": {
255+
"type": "code_editor",
256+
"grouping": "deployment",
257+
"original_grouping": "deployment"
258+
}
254259
},
255260
{
256261
"key": "service_endpoints",
@@ -566,7 +571,12 @@
566571
"key": "member_host_flavor"
567572
},
568573
{
569-
"key": "auto_scaling"
574+
"key": "auto_scaling",
575+
"custom_config": {
576+
"type": "code_editor",
577+
"grouping": "deployment",
578+
"original_grouping": "deployment"
579+
}
570580
},
571581
{
572582
"key": "deletion_protection"

solutions/fully-configurable/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,28 @@ variable "auto_scaling" {
329329
})
330330
})
331331
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-mongodb/blob/main/solutions/fully-configurable/DA-types.md#autoscaling)"
332-
default = null
332+
default = {
333+
disk = {
334+
capacity_enabled = false
335+
free_space_less_than_percent = 10
336+
io_above_percent = 90
337+
io_enabled = false
338+
io_over_period = "15m"
339+
rate_increase_percent = 10
340+
rate_limit_mb_per_member = 3670016
341+
rate_period_seconds = 900
342+
rate_units = "mb"
343+
}
344+
memory = {
345+
io_above_percent = 90
346+
io_enabled = false
347+
io_over_period = "15m"
348+
rate_increase_percent = 10
349+
rate_limit_mb_per_member = 114688
350+
rate_period_seconds = 900
351+
rate_units = "mb"
352+
}
353+
}
333354
}
334355

335356
#############################################################################

solutions/security-enforced/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,28 @@ variable "auto_scaling" {
264264
})
265265
})
266266
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-mongodb/blob/main/solutions/fully-configurable/DA-types.md#autoscaling)"
267-
default = null
267+
default = {
268+
disk = {
269+
capacity_enabled = false
270+
free_space_less_than_percent = 10
271+
io_above_percent = 90
272+
io_enabled = false
273+
io_over_period = "15m"
274+
rate_increase_percent = 10
275+
rate_limit_mb_per_member = 3670016
276+
rate_period_seconds = 900
277+
rate_units = "mb"
278+
}
279+
memory = {
280+
io_above_percent = 90
281+
io_enabled = false
282+
io_over_period = "15m"
283+
rate_increase_percent = 10
284+
rate_limit_mb_per_member = 114688
285+
rate_period_seconds = 900
286+
rate_units = "mb"
287+
}
288+
}
268289
}
269290

270291
#############################################################################

0 commit comments

Comments
 (0)