Skip to content

Commit 49d7d2b

Browse files
authored
fix: use code editor for auto scale configuration (#336)
1 parent 540010d commit 49d7d2b

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
@@ -259,7 +259,12 @@
259259
"key": "member_host_flavor"
260260
},
261261
{
262-
"key": "auto_scaling"
262+
"key": "auto_scaling",
263+
"custom_config": {
264+
"type": "code_editor",
265+
"grouping": "deployment",
266+
"original_grouping": "deployment"
267+
}
263268
},
264269
{
265270
"key": "configuration",
@@ -600,7 +605,12 @@
600605
"key": "member_host_flavor"
601606
},
602607
{
603-
"key": "auto_scaling"
608+
"key": "auto_scaling",
609+
"custom_config": {
610+
"type": "code_editor",
611+
"grouping": "deployment",
612+
"original_grouping": "deployment"
613+
}
604614
},
605615
{
606616
"key": "configuration",

solutions/fully-configurable/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,28 @@ variable "auto_scaling" {
360360
})
361361
})
362362
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-mysql/blob/main/solutions/fully-configurable/DA-types.md#autoscaling)"
363-
default = null
363+
default = {
364+
disk = {
365+
capacity_enabled = false
366+
free_space_less_than_percent = 10
367+
io_above_percent = 90
368+
io_enabled = false
369+
io_over_period = "15m"
370+
rate_increase_percent = 10
371+
rate_limit_mb_per_member = 3670016
372+
rate_period_seconds = 900
373+
rate_units = "mb"
374+
}
375+
memory = {
376+
io_above_percent = 90
377+
io_enabled = false
378+
io_over_period = "15m"
379+
rate_increase_percent = 10
380+
rate_limit_mb_per_member = 114688
381+
rate_period_seconds = 900
382+
rate_units = "mb"
383+
}
384+
}
364385
}
365386

366387
#############################################################################

solutions/security-enforced/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,28 @@ variable "auto_scaling" {
297297
})
298298
})
299299
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-mysql/blob/main/solutions/fully-configurable/DA-types.md#autoscaling)"
300-
default = null
300+
default = {
301+
disk = {
302+
capacity_enabled = false
303+
free_space_less_than_percent = 10
304+
io_above_percent = 90
305+
io_enabled = false
306+
io_over_period = "15m"
307+
rate_increase_percent = 10
308+
rate_limit_mb_per_member = 3670016
309+
rate_period_seconds = 900
310+
rate_units = "mb"
311+
}
312+
memory = {
313+
io_above_percent = 90
314+
io_enabled = false
315+
io_over_period = "15m"
316+
rate_increase_percent = 10
317+
rate_limit_mb_per_member = 114688
318+
rate_period_seconds = 900
319+
rate_units = "mb"
320+
}
321+
}
301322
}
302323

303324
#############################################################################

0 commit comments

Comments
 (0)