You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the behavior:
setup a cluster with var.replica_scale_enabled turned on, with var.replica_scale_min set to one you will always have a replica even when not needed (a scale event might need to be triggered once for the autoscale policy to take effect). Setting var.replica_scale_min to zero will remove the writer node as well as the read replica
Code Snippet to Reproduce
Expected behavior
When var.create_cluster is set to true the instance count should use the var.replica_scale_min as it does now, unless that is zero/less than 1, at which point the value should be set to 1 as a fallback
Actual behavior
Directly drawing from var.replica_scale_min, forcing a minimum of 1 read replica, which means 2 nodes is the minimum if auto scaling is desired
Additional context
This would be a nice money saving feature for the module.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Due to the instance count being taken directly from var.replica_scale_min the writer node also gets deleted when minimum read replicas is set to zero
Versions
Reproduction
Steps to reproduce the behavior:
setup a cluster with var.replica_scale_enabled turned on, with var.replica_scale_min set to one you will always have a replica even when not needed (a scale event might need to be triggered once for the autoscale policy to take effect). Setting var.replica_scale_min to zero will remove the writer node as well as the read replica
Code Snippet to Reproduce
Expected behavior
When var.create_cluster is set to true the instance count should use the var.replica_scale_min as it does now, unless that is zero/less than 1, at which point the value should be set to 1 as a fallback
Actual behavior
Directly drawing from var.replica_scale_min, forcing a minimum of 1 read replica, which means 2 nodes is the minimum if auto scaling is desired
Additional context
This would be a nice money saving feature for the module.
The text was updated successfully, but these errors were encountered: