How to define ec2 instance type when deploying a charm
Kapil Thangavelu
kapil.thangavelu at canonical.com
Fri Jul 12 16:42:34 UTC 2013
instance-type and provider specific constraints can't be specified with
juju-core at this time. you can specify one of the generic constraints and
it will pick a matching instance type (ie mem=6) gets m1.large, mem=3 gets
m1.medium. Its not an exact science though due to the variety of instance
types that amazon provides with overlapping generic capabilities (m1.xlarge
vs m3.xlarge). There's some more details in bug
https://bugs.launchpad.net/juju-core/+bug/1183831
cheers,
Kapil
On Fri, Jul 12, 2013 at 12:28 PM, Carlos Saraiva <saraiva at pobox.com> wrote:
> Thanks Marco,
>
> However hard I try, I can't get instance-type to work:
>
> $ juju deploy -v mongodb shard1 --constraints "instance-type=m1.medium"
> error: invalid value "instance-type=m1.medium" for flag --constraints:
> unknown constraint "instance-type"
>
>
> --
> Carlos Saraiva
> saraiva at pobox.com
>
>
>
> On Fri, Jul 12, 2013 at 9:13 AM, Marco Ceppi <marco.ceppi at canonical.com>wrote:
>
>> Hi Carlos!
>>
>> You can use "constraints"[0] to drive what types of instances you want
>> juju to deploy to. Most juju providers accept basic values like "mem, cpu,
>> arch", but some like EC2 also accept instance-type, etc. The document
>> linked below goes over how to use constraints with juju on the command line.
>>
>> [0]: https://juju.ubuntu.com/docs/charms-constraints.html
>>
>> Thanks,
>> Marco Ceppi
>>
>>
>> On Fri, Jul 12, 2013 at 12:02 PM, Carlos Saraiva <saraiva at pobox.com>wrote:
>>
>>> Hi,
>>>
>>> Newbie here. Can someone point me to documentation that explains how to
>>> create a charm with a specific instance type?
>>>
>>> Thanks!
>>> --
>>> Carlos Saraiva
>>> saraiva at pobox.com
>>>
>>>
>>> --
>>> Juju mailing list
>>> Juju at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/juju
>>>
>>>
>>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130712/b442edd3/attachment-0001.html>
More information about the Juju
mailing list