machine icon indicating copy to clipboard operation
machine copied to clipboard

Can't create Amazon EC2 IO1 volume

Open christianbundy opened this issue 8 years ago • 10 comments

When you set --amazonec2-volume-type io1, it errors out:

Error creating machine: Error in driver during machine creation: Error launching instance: InvalidParameterCombination: The parameter iops must be specified for io1 volumes.

christianbundy avatar Mar 14 '16 17:03 christianbundy

+1

etano avatar Mar 23 '16 16:03 etano

Would be nice to have provisioned IOPS flag. Not many other options for disk-constrained processes, other than spinning up machine yourself and manually setting it up.

fgassert avatar Jul 27 '16 18:07 fgassert

Any plans to implement this? We use a high amount of iops1 but don't require a lot of space in our auto-scaled runners.

chillosu avatar Oct 29 '17 13:10 chillosu

I was able to patch this myself (Lazily) by adding this line: Iops: aws.Int64(2000), to this file: https://github.com/docker/machine/blob/master/drivers/amazonec2/amazonec2.go

on line: 616

Then recompiling as per the instructions here: https://github.com/docker/machine/blob/master/CONTRIBUTING.md

This works, but it means it will always be set and you MUST use io1 as the volume type (Or any other volume type that takes an IOPS parameter). This met our use case so we were fine with it.

MattHoy avatar Jun 08 '18 20:06 MattHoy

Is this actual a planned feature?

mgamsjager avatar Nov 11 '19 15:11 mgamsjager

would be really awesome, downloading big docker layers in a gp2 volume type is pretty slow, not because of bandwidth, but because the 'extracting' stage

kamadorueda avatar Nov 21 '19 15:11 kamadorueda

Searching out this error brought me here. Is there any resolution to this ? Can the iops parameter to be specified in any way from cli ?

codinghedgehog-python avatar Nov 18 '20 21:11 codinghedgehog-python

was this every solved ?

Semmix avatar Dec 01 '20 19:12 Semmix

@Semmix I don't think so 'coz I even asked people on StackOverflow and nobody chimed in despite the question had dozen views. Personally, I attached the volume manually from the web interface and I'm controlling the instance through SSH. It's far from ideal but as of now Docker-Machine still has this limitation. It makes me wonder though what other developers do when they work with Docker Machine and need to attach different volume. Do they all do what I did or they came up with better workaround .....

codinghedgehog-python avatar Dec 01 '20 20:12 codinghedgehog-python

i used this : Option to allow user defined IOPS #4771 Had to recompile it on the target machine, it unbelievable that such an easy fix is being overlooked for over 2 years. i assume its just not maintained anymore or something.

Semmix avatar Dec 02 '20 17:12 Semmix