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

Adrian Cole commented on WHIRR-260:
-----------------------------------

sorry.  there is no guide outside the source code and amazon's documentation,
     
http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/index.html?query-apis.html

I generally recommend looking at the test cases for usage example, or posting 
to the jclouds-dev google group, as I'm better at following-up there, and also 
others can benefit from the questions.  The more interesting test case to view 
is SpotInstanceClientLiveTest, which uses the api directly and 
AWSEC2ComputeServiceLiveTest.testExtendedOptionsAndLogin() which uses the spot 
price option on the portable interface.

In the code, AWSEC2CreateNodesInGroupThenAddToSet actually manages creating the 
spot instance request.  The way jclouds manages this is that it looks for both 
regular reservations and also spot requests when listing nodes.  The 
convergence of these 2 is what you'll see in a listNodes command 
(AWSEC2ListNodesStrategy ex. does these multiple listings in parallel)


If there's an error on the parameters requesting nodes, you'll receive an 
HttpResponseException in the 400 range from ec2 itself.  The other condition 
you should be aware of is when the spot request goes through, but perhaps takes 
longer to provision the nodes than the jclouds default timeout 
(jclouds.compute.timeout.node-running), something I've not seen happen.

I've added some of these notes here, and feel free to revise: 
http://code.google.com/p/jclouds/wiki/EC2 

Backtype were the first users of the Spot Price feature, last year.  I can 
connect you, if you want some behavioral experience with this in the wild.  
Cheers!
-A




> Support Spot Instances
> ----------------------
>
>                 Key: WHIRR-260
>                 URL: https://issues.apache.org/jira/browse/WHIRR-260
>             Project: Whirr
>          Issue Type: New Feature
>            Reporter: Adrian Cole
>            Assignee: Andrei Savu
>             Fix For: 0.6.0
>
>         Attachments: WHIRR-260.patch, WHIRR-260.patch
>
>
> note java support is via jclouds, scheduled for beta-10 release
> https://github.com/jclouds/jclouds-examples/tree/master/ec2-computeservice-spot

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to