Skip to content

Commit 4386ee0

Browse files
authored
fix: use code editor for auto scaling configuration (#451)
1 parent f4dd52b commit 4386ee0

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
@@ -254,7 +254,12 @@
254254
"key": "member_host_flavor"
255255
},
256256
{
257-
"key": "auto_scaling"
257+
"key": "auto_scaling",
258+
"custom_config": {
259+
"type": "code_editor",
260+
"grouping": "deployment",
261+
"original_grouping": "deployment"
262+
}
258263
},
259264
{
260265
"key": "configuration",
@@ -597,7 +602,12 @@
597602
"key": "member_host_flavor"
598603
},
599604
{
600-
"key": "auto_scaling"
605+
"key": "auto_scaling",
606+
"custom_config": {
607+
"type": "code_editor",
608+
"grouping": "deployment",
609+
"original_grouping": "deployment"
610+
}
601611
},
602612
{
603613
"key": "configuration",

solutions/fully-configurable/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,28 @@ variable "auto_scaling" {
323323
})
324324
})
325325
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-rabbitmq/blob/main/solutions/standard/DA-types.md#autoscaling)"
326-
default = null
326+
default = {
327+
disk = {
328+
capacity_enabled = false
329+
free_space_less_than_percent = 10
330+
io_above_percent = 90
331+
io_enabled = false
332+
io_over_period = "15m"
333+
rate_increase_percent = 10
334+
rate_limit_mb_per_member = 3670016
335+
rate_period_seconds = 900
336+
rate_units = "mb"
337+
}
338+
memory = {
339+
io_above_percent = 90
340+
io_enabled = false
341+
io_over_period = "15m"
342+
rate_increase_percent = 10
343+
rate_limit_mb_per_member = 114688
344+
rate_period_seconds = 900
345+
rate_units = "mb"
346+
}
347+
}
327348
}
328349

329350
##############################################################################

solutions/security-enforced/variables.tf

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,28 @@ variable "auto_scaling" {
257257
})
258258
})
259259
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-rabbitmq/blob/main/solutions/standard/DA-types.md#autoscaling)"
260-
default = null
260+
default = {
261+
disk = {
262+
capacity_enabled = false
263+
free_space_less_than_percent = 10
264+
io_above_percent = 90
265+
io_enabled = false
266+
io_over_period = "15m"
267+
rate_increase_percent = 10
268+
rate_limit_mb_per_member = 3670016
269+
rate_period_seconds = 900
270+
rate_units = "mb"
271+
}
272+
memory = {
273+
io_above_percent = 90
274+
io_enabled = false
275+
io_over_period = "15m"
276+
rate_increase_percent = 10
277+
rate_limit_mb_per_member = 114688
278+
rate_period_seconds = 900
279+
rate_units = "mb"
280+
}
281+
}
261282
}
262283

263284
#############################################################################

0 commit comments

Comments
 (0)