pallet-aws and EC2

56 views
Skip to first unread message

Fernando Hernandez

unread,
Jun 13, 2014, 9:30:13 AM6/13/14
to palle...@googlegroups.com
Hello,

I'm trying to figure out how to set up the number of cores and RAM that each node on EC2 should have when deploying with pallet-aws.

I tried a number of ways, included what's stated in the README and it always seems to create a 'm1.small' instance.

I'm creating nodes the by creating a node-spec as follows:

(group-spec spec-name
          :node-spec (node-spec :image {  :os-family :ubuntu
                                          :os-version "14.04"
                                          :os-64-bit true
                                          :login-user "ubuntu"
                                          :image-id  "ami-c8cf3ba0" }
                                :location {:location-id "us-east-1d"}
                                :hardware { :min-cores 8  ;; should this be big enough so that it's not m1.small?
                                            :min-ram 8000 }
          :extends  stardog-spec)

And then using that group spec like this:

(converge {mygroup-spec n}
          :compute myserver-instance
          :phase mycompute-phases)

Where 'myserver-instance' is created as follows:

(instantiate-provider "pallet-ec2"
                    :identity "myaccessid"
                    :credential "mysecretkey")

Am I missing something?

Thanks,
Fernando

Hugo Duncan

unread,
Jun 13, 2014, 3:45:24 PM6/13/14
to palle...@googlegroups.com

fern...@clarkparsia.com writes:

> I'm trying to figure out how to set up the number of cores and RAM that
> each node on EC2 should have when deploying with pallet-aws.
>
> I tried a number of ways, included what's stated in the README and it
> always seems to create a 'm1.small' instance.

Which README?

pallet-aws is a little different to pallet-jclouds, in that it doesn't
do anything clever about selecting an instance size - you need to
manually specify it with `:hardware-id "m1.small"` for instance.

Hugo
signature.asc

Fernando Hernandez

unread,
Jun 25, 2014, 9:46:02 AM6/25/14
to palle...@googlegroups.com


On Friday, June 13, 2014 3:45:24 PM UTC-4, Hugo wrote:

fern...@clarkparsia.com writes:

> I'm trying to figure out how to set up the number of cores and RAM that
> each node on EC2 should have when deploying with pallet-aws.
>
> I tried a number of ways, included what's stated in the README and it
> always seems to create a 'm1.small' instance.

Which README?

 

pallet-aws is a little different to pallet-jclouds, in that it doesn't
do anything clever about selecting an instance size - you need to
manually specify it with `:hardware-id "m1.small"` for instance.

Yes, I figured that out, a few moments after I wrote my email. I also noticed that it only accepts instance-types defined in the corresponding AWS SDK.

Thanks,
Fernando
Reply all
Reply to author
Forward
0 new messages