-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to enable cluster mode #212
Comments
@rymancl it looks like AWS disallows changing of this parameter. I suspect the only way to do this is to delete the cluster and restore from a snapshot with cluster mode enabled. |
@rymancl or at least you can not manually change it. Maybe if you add another instance to the "cluster" then AWS will change that parameter to true behind the scenes. |
That's true, but as of redis 7.0 AWS allows you to do in place moves from cluster mode disabled to cluster mode enabled. Docs here
The bug I believe is that the module is trying to set that parameter when it shouldn't be. I assume AWS will set it for you. |
Ah I see. Try a targeted apply (assuming these are dev/sandbox resources) to Maybe the ideal solution would be for this module to not set it at all and assume that AWS manages it, depending on the outcome of the above. |
I tested by modifying that piece of code that tries to set the parameter. dynamic "parameter" {
for_each = var.parameter
content {
name = parameter.value.name
value = tostring(parameter.value.value)
}
} This allows the apply to proceed.
I believe this error was because my current cluster only had one node, so cluster mode could not be enabled until another node was brought up. After it was available, I applied again. The
Regardless, the cluster is still showing cluster mode disabled, and has no configuration endpoint. I tried setting This apply errored with:
This made me curious, so I tried via the console. I notice that there is an intermediate step you must take before moving to cluster mode enabled called "compatible". Interesting. Before trying this, I wanted to play with the parameter group more. I went back to the TF docs and found this note: Interesting. I double checked I was setting a I undo my code changes to the parameter group and upgrade my module to v1.0.0 so that I can I try setting the new The plan for this showed destroying the custom parameter group and updating the replication group to use the parameter group with cluster-mode on. (Still have the issue of empty DNS record at this point). This apply errored because the parameter group was in use; it tries to delete before performing the update to the replication group.
At this point, I'm unsure if I can proceed without manual intervention.
At this point, I'm not sure how to proceed with the module. Other docs: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html |
Describe the Bug
I am trying to switch an existing cluster with
cluster_mode_enabled = false
(default) tocluster_mode_enabled = true
.As part of this change, I have also made the following changes:
cluster_size
automatic_failover_enabled = true
cluster_mode_num_node_groups = 1
cluster_mode_replicas_per_node_group = 1
Proposed plan:
Apply error:
According to AWS, this parameter cannot be modified:
Expected Behavior
Successfully enable cluster mode on Redis
Steps to Reproduce
See above
Screenshots
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: