Skip to content
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

provider/aws: Ability to reduce nodes in an ElastiCache cluster #3809

Merged

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Nov 8, 2015

Fixes #3604

Assuptions:

We always remove the higher numbered nodes from the cache cluster

I.e. If we are changing from a 2 node cluster to a 1 node cluster then we remove node_id 0002
If we are changing from a 5 node cluster to a 3 node cluster then we remove node_ids 0005 and 0004

@stack72 stack72 changed the title provider/aws: Ability to reduce nodes in an ElastiCache cluster [WIP] provider/aws: Ability to reduce nodes in an ElastiCache cluster Nov 8, 2015
@stack72 stack72 force-pushed the f-aws-elasticache-cache-nodes-reduction branch from 282840a to 73480cd Compare November 9, 2015 13:15
@stack72 stack72 changed the title [WIP] provider/aws: Ability to reduce nodes in an ElastiCache cluster provider/aws: Ability to reduce nodes in an ElastiCache cluster Nov 9, 2015
@@ -173,13 +208,11 @@ resource "aws_security_group" "bar" {
cidr_blocks = ["0.0.0.0/0"]
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a decent amount of whitespace noise here, could you revisit that?

@jen20
Copy link
Contributor

jen20 commented Dec 2, 2015

Hi @stack72, other than the minor whitespace issue this looks good to me. While fixing that, if you want to squash the commits that would be good as well :-)

@stack72 stack72 force-pushed the f-aws-elasticache-cache-nodes-reduction branch from 73480cd to 849c692 Compare December 2, 2015 21:00
@stack72 stack72 force-pushed the f-aws-elasticache-cache-nodes-reduction branch from 849c692 to 2882d01 Compare December 2, 2015 21:08
@stack72
Copy link
Contributor Author

stack72 commented Dec 2, 2015

@jen20 done and done :)

@jen20
Copy link
Contributor

jen20 commented Dec 10, 2015

LGTM!

jen20 added a commit that referenced this pull request Dec 10, 2015
…eduction

provider/aws: Ability to reduce nodes in an ElastiCache cluster
@jen20 jen20 merged commit 2fecc72 into hashicorp:master Dec 10, 2015
@jen20
Copy link
Contributor

jen20 commented Dec 10, 2015

I think we should drop a note into the docs as well pointing out the strategy used when reducing the number of nodes - I'll land a PR for that now.

@ghost
Copy link

ghost commented Apr 29, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not possible to decrease the number of cache nodes in elasticache cluster
2 participants