whirr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Cole (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WHIRR-189) Hadoop on EC2 should use all available local storage
Date Fri, 15 Jun 2012 14:04:43 GMT

    [ https://issues.apache.org/jira/browse/WHIRR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295669#comment-13295669
] 

Adrian Cole edited comment on WHIRR-189 at 6/15/12 2:04 PM:
------------------------------------------------------------

one note about the patch.  

The following is incorrect:
+      // However, you can only make that call if you know that the image is
+      // EBS-backed, and there is no way to find this out (before launch) in
+      // jclouds at present

After you build a template, but before you create the nodes, you can check the image in the
resolved template.  

For example, we are already doing something similar in 

BootstrapTemplate.setSpotInstancePriceIfSpecified

basically, we can add BootstrapTemplate.mapEphemeralIfImageIsEBSBacked
   if (EC2ImagePredicates.rootDeviceType(EBS).apply(template.getImage()){
       template.getOptions().as(EC2TemplateOptions.class)
               .mapEphemeralDeviceToDeviceName("/dev/sdc", "ephemeral1");
   }

I think the above is the missing link in this patch.  I hope it helps!
                
      was (Author: adrian@jclouds.org):
    one note about the patch.  

The following is incorrect:
+      // However, you can only make that call if you know that the image is
+      // EBS-backed, and there is no way to find this out (before launch) in
+      // jclouds at present

After you build a template, but before you create the nodes, you can check the image in the
resolved template.  

For example, we are already doing something similar in 

BootstrapTemplate.setSpotInstancePriceIfSpecified

basically, we can add BootstrapTemplate.mapEphemeralIfImageIsEBSBacked
   if (EC2ImagePredicates.rootDeviceType(EBS)){
       template.getOptions().as(EC2TemplateOptions.class)
               .mapEphemeralDeviceToDeviceName("/dev/sdc", "ephemeral1");
   }

I think the above is the missing link in this patch.  I hope it helps!
                  
> Hadoop on EC2 should use all available local storage
> ----------------------------------------------------
>
>                 Key: WHIRR-189
>                 URL: https://issues.apache.org/jira/browse/WHIRR-189
>             Project: Whirr
>          Issue Type: Improvement
>          Components: service/hadoop
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-189.patch, WHIRR-189.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message