StarCluster - Mailing List Archive

Re: [Starcluster] Spot Instances

From: Marc Resnick <no email>
Date: Fri, 23 Jul 2010 12:47:05 -0400

Hey Austin,

You can start a cluster of spot instances by using the -b option with
your starcluster start command, along with the price.

(starcluster)dhcp-18-111-111-170:~ mresnick$ starcluster start testspot -b .03

Some price statistics can be seen as such:

(starcluster)dhcp-18-111-111-170:~ mresnick$ starcluster spothistory m1.small
StarCluster - ( (v. 0.9999)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to

>>> Current price: $0.03
>>> Max price: $0.09
>>> Average price: $0.03

Once you've placed requests, you can view them:

(starcluster)dhcp-18-111-111-170:~ mresnick$ starcluster listspots

If you kill the starcluster start command before your instances come
up, you can use that command to check on them. They're up when they
get an instance ID.

Alternatively, you can open up the starcluster shell and use:

In [1]: ec2.request_spot_instances?
Type: instancemethod
Base Class: <type 'instancemethod'>
String Form: <bound method EasyEC2.request_spot_instances of
<starcluster.awsutils.EasyEC2 object at 0x101ab1c90>>
Namespace: Interactive
File: /Users/mresnick/pycode/StarCluster/starcluster/
Definition: ec2.request_spot_instances(self, price, image_id,
instance_type='m1.small', count=1, launch_group=None, key_name=None,
availability_zone_group=None, security_groups=None, placement=None,
    <no docstring>

Be sure to specify a key_name, or you'll have no control of the instances.


On Fri, Jul 23, 2010 at 12:36 PM, Austin Godber <> wrote:
> Is there any documentation on using spot instances?  I only see things
> in the release notes and code.
> Austin
> _______________________________________________
> Starcluster mailing list
Received on Fri Jul 23 2010 - 12:47:27 EDT
This archive was generated by hypermail 2.3.0.


Sort all by: