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

"cgcloud" grow-cluster missing --ebs-volume-size option #152

Open
tetron opened this issue Apr 25, 2016 · 3 comments
Open

"cgcloud" grow-cluster missing --ebs-volume-size option #152

tetron opened this issue Apr 25, 2016 · 3 comments

Comments

@tetron
Copy link

tetron commented Apr 25, 2016

As a result, it's impossible (or at least, not obvious) to add workers to an existing cluster that need large amounts of space for file staging & temporary files.

@hannes-ucsc
Copy link
Contributor

This is difficult. One use case for grow-cluster is to grow a cluster to a previous size, for example after all spot workers were wiped out during a price increase. One would expect the replacement nodes to attach to the existing volumes as opposed to creating new volumes. To support this naively, we'd have to ignore --ebs-volume-size for replacement nodes and only apply it to new nodes and hence new volumes. The more advanced way of solving this would be to "resize" the volumes before attaching them. That would be pretty involved. You'd have to copy the volume and grow the file system inside it. You could only grow, not shrink.

See also #37

@hannes-ucsc
Copy link
Contributor

… and when I say "new node" I mean a node that doesn't replace a previously existing node. The correct definition is "an instance with a cluster ordinal that was never assigned to another instance in this cluster".

@tetron
Copy link
Author

tetron commented Apr 25, 2016

Actually, I wasn't thinking about existing disks/nodes, so perhaps the --ebs-volune-size option doesn't make sense. However, currently if you have two nodes with EBS volumes and want to use "grow-cluster" to add two more, the new nodes will not have EBS volumes attached. So maybe it should be configuring volumes based on the initial configuration when the cluster is created?

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

No branches or pull requests

2 participants