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

aws_elasticache_cluster does not allow creation of multi-AZ Redis #4946

Closed
rkulagowski opened this Issue Feb 1, 2016 · 20 comments

Comments

Projects
None yet
@rkulagowski
Contributor

rkulagowski commented Feb 1, 2016

Per the documentation at https://www.terraform.io/docs/providers/aws/r/elasticache_cluster.html

the multi-az option is only available for Memcache. AWS allows for multi-AZ Redis:

https://aws.amazon.com/blogs/aws/elasticache-redis-multi-az/

@sharmaanshul2102

This comment has been minimized.

Show comment
Hide comment
@sharmaanshul2102

sharmaanshul2102 Feb 12, 2016

Contributor

@rkulagowski with redis it must belong to replication_group we can't add multi-az to redis by setting az-parameter to true

:replication_group_id (String) — The ID of the replication group to which this cache cluster should belong. If this parameter is specified, the cache cluster will be added to the specified replication group as a read replica; otherwise, the cache cluster will be a standalone primary that is not part of any replication group.
If the specified replication group is Multi-AZ enabled and the availability zone is not specified, the cache cluster will be created in availability zones that provide the best spread of read replicas across availability zones.

Note: This parameter is only valid if the Engine parameter is redis.
Contributor

sharmaanshul2102 commented Feb 12, 2016

@rkulagowski with redis it must belong to replication_group we can't add multi-az to redis by setting az-parameter to true

:replication_group_id (String) — The ID of the replication group to which this cache cluster should belong. If this parameter is specified, the cache cluster will be added to the specified replication group as a read replica; otherwise, the cache cluster will be a standalone primary that is not part of any replication group.
If the specified replication group is Multi-AZ enabled and the availability zone is not specified, the cache cluster will be created in availability zones that provide the best spread of read replicas across availability zones.

Note: This parameter is only valid if the Engine parameter is redis.
@rkulagowski

This comment has been minimized.

Show comment
Hide comment
@rkulagowski

rkulagowski Feb 16, 2016

Contributor

OK, but the replication group that you're discussing still doesn't appear to have any support in aws_elasticache_cluster

Or am I misunderstanding something? Is it possible to create a Redis cluster in multiple AZs yet?

Contributor

rkulagowski commented Feb 16, 2016

OK, but the replication group that you're discussing still doesn't appear to have any support in aws_elasticache_cluster

Or am I misunderstanding something? Is it possible to create a Redis cluster in multiple AZs yet?

@sharmaanshul2102

This comment has been minimized.

Show comment
Hide comment
@sharmaanshul2102

sharmaanshul2102 Feb 18, 2016

Contributor

Yes it's possible to have multi-az redis. I don't think terraform supports as of now. But i will try to add it on this weekend @rkulagowski

Contributor

sharmaanshul2102 commented Feb 18, 2016

Yes it's possible to have multi-az redis. I don't think terraform supports as of now. But i will try to add it on this weekend @rkulagowski

@Moeser

This comment has been minimized.

Show comment
Hide comment
@Moeser

Moeser Mar 25, 2016

I'm running into this same problem. We're trying to create a fault tolerant redis elasticache cluster through terraform, but replication_group isn't supported. Terraform supports adding a single node redis cluster, but can you really call it a cluster at that point?

Moeser commented Mar 25, 2016

I'm running into this same problem. We're trying to create a fault tolerant redis elasticache cluster through terraform, but replication_group isn't supported. Terraform supports adding a single node redis cluster, but can you really call it a cluster at that point?

@guillermo

This comment has been minimized.

Show comment
Hide comment
@guillermo

guillermo commented Apr 6, 2016

👍

@ajlanghorn

This comment has been minimized.

Show comment
Hide comment
@ajlanghorn

ajlanghorn Apr 21, 2016

Contributor

This would be an awesome improvement to Elasticache support in Terraform :)

Contributor

ajlanghorn commented Apr 21, 2016

This would be an awesome improvement to Elasticache support in Terraform :)

@boxrick

This comment has been minimized.

Show comment
Hide comment
@boxrick

boxrick May 6, 2016

This is a real showstopper and again would be awesome if it could be added!

boxrick commented May 6, 2016

This is a real showstopper and again would be awesome if it could be added!

@davidfic

This comment has been minimized.

Show comment
Hide comment
@davidfic

davidfic commented May 10, 2016

👍

@mbravorus

This comment has been minimized.

Show comment
Hide comment
@mbravorus

mbravorus Jun 8, 2016

really missing multiaz elasticache redis cluster support, adding my voice here

mbravorus commented Jun 8, 2016

really missing multiaz elasticache redis cluster support, adding my voice here

@simonrondelez

This comment has been minimized.

Show comment
Hide comment
@simonrondelez

simonrondelez commented Jun 9, 2016

👍

@erkolson

This comment has been minimized.

Show comment
Hide comment
@erkolson

erkolson Jun 10, 2016

👍 , but backport into 0.6.X 🙏 😄 ?

erkolson commented Jun 10, 2016

👍 , but backport into 0.6.X 🙏 😄 ?

@AndrewFarley

This comment has been minimized.

Show comment
Hide comment
@AndrewFarley

AndrewFarley Jul 21, 2016

+1 still not possible in terraform

AndrewFarley commented Jul 21, 2016

+1 still not possible in terraform

@mponti

This comment has been minimized.

Show comment
Hide comment
@mponti

mponti Jul 22, 2016

Could definitely use this!

mponti commented Jul 22, 2016

Could definitely use this!

@stack72

This comment has been minimized.

Show comment
Hide comment
@stack72

stack72 Jul 27, 2016

Contributor

Closing this as a duplicate of #4361

I am going to track the progress on this in that ticket going forward.

Contributor

stack72 commented Jul 27, 2016

Closing this as a duplicate of #4361

I am going to track the progress on this in that ticket going forward.

@stack72 stack72 closed this Jul 27, 2016

@agomezvidal

This comment has been minimized.

Show comment
Hide comment
@agomezvidal

agomezvidal Feb 22, 2017

Hi,

It is feasible to configure " Multi-AZ enabled read abd write redis cluster"? At this moment looks it is not possible via terraform. Can you provide some feedback?

Thanks in advance

agomezvidal commented Feb 22, 2017

Hi,

It is feasible to configure " Multi-AZ enabled read abd write redis cluster"? At this moment looks it is not possible via terraform. Can you provide some feedback?

Thanks in advance

@mbravorus

This comment has been minimized.

Show comment
Hide comment
@mbravorus

mbravorus Feb 22, 2017

@agomezvidal for 0.8.7, according to https://www.terraform.io/docs/providers/aws/r/elasticache_cluster.html it appears that MultiAZ is possible only for memcached clusters so far. So, we are waiting for implementation of the same for Redis.

mbravorus commented Feb 22, 2017

@agomezvidal for 0.8.7, according to https://www.terraform.io/docs/providers/aws/r/elasticache_cluster.html it appears that MultiAZ is possible only for memcached clusters so far. So, we are waiting for implementation of the same for Redis.

@igaskin-gpsw

This comment has been minimized.

Show comment
Hide comment
@igaskin-gpsw

igaskin-gpsw Mar 17, 2017

@agomezvidal @mbravorus MultiAZ is supported with Redis by using elasticache-replication-group. Support for it was added in #8275.

Check out the docs: https://www.terraform.io/docs/providers/aws/r/elasticache_replication_group.html

igaskin-gpsw commented Mar 17, 2017

@agomezvidal @mbravorus MultiAZ is supported with Redis by using elasticache-replication-group. Support for it was added in #8275.

Check out the docs: https://www.terraform.io/docs/providers/aws/r/elasticache_replication_group.html

@jasonkuehl

This comment has been minimized.

Show comment
Hide comment
@jasonkuehl

jasonkuehl Jun 5, 2018

@stack72 This ticket is a different issue #4361

Right now if you try to build Redis with Multi-AZ you'll get the following error

"engine "redis" does not support num_cache_nodes >1 "

This ticket is not yet resolved.

jasonkuehl commented Jun 5, 2018

@stack72 This ticket is a different issue #4361

Right now if you try to build Redis with Multi-AZ you'll get the following error

"engine "redis" does not support num_cache_nodes >1 "

This ticket is not yet resolved.

@bflad

This comment has been minimized.

Show comment
Hide comment
@bflad

bflad Jun 6, 2018

Contributor

@jasonkuehl AWS has some very confusing terminology between the console and API. Terraform implements the API naming as its generally more consistent longterm and translates more easily between the CLI, CloudFormation, and other AWS SDKs.

Its only possible to create a single Redis node with the aws_elasticache_cluster resource. The naming is unfortunate as "cluster" in the API only refers to singlular Redis nodes but supports multiple Memcached nodes in multi-AZ. The aws_elasticache_replication_group resource ("replication group" in the API) is what provides multi-AZ Redis support by enabling multiple Redis "clusters" (again, singular nodes) to talk to each other.

Contributor

bflad commented Jun 6, 2018

@jasonkuehl AWS has some very confusing terminology between the console and API. Terraform implements the API naming as its generally more consistent longterm and translates more easily between the CLI, CloudFormation, and other AWS SDKs.

Its only possible to create a single Redis node with the aws_elasticache_cluster resource. The naming is unfortunate as "cluster" in the API only refers to singlular Redis nodes but supports multiple Memcached nodes in multi-AZ. The aws_elasticache_replication_group resource ("replication group" in the API) is what provides multi-AZ Redis support by enabling multiple Redis "clusters" (again, singular nodes) to talk to each other.

@jasonkuehl

This comment has been minimized.

Show comment
Hide comment
@jasonkuehl

jasonkuehl Jun 7, 2018

@bflad AH ok. Im going to test this out right away. Thanks for the reply!

Jason.

jasonkuehl commented Jun 7, 2018

@bflad AH ok. Im going to test this out right away. Thanks for the reply!

Jason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment