Skip to content

spawn status: spot instances are costed at the on-demand rate; brand-new instances show $0.00 / '100% lower' effective rate #896

Closed

Description

@scttfrdmn

Version: spawn 0.128.2 (38b2d66), macOS arm64, us-west-2

spawn status demo for an instance launched with --spot, 47 s after launch:

  Elapsed:          47s
  Compute cost:     $0.00  (0s × $0.9738/hr)
  Cumulative cost:  $0.00
  Effective rate:   $0.0000/hr  (100% lower than continuous on-demand)
  On-demand rate:   $0.9738/hr compute  +  $0.0022/hr EBS storage  (us-west-2)
  ...
  Termination deadline:  2026-10-15 10:59 MST (in 59m)
Billable resources:
  instance  i-028c23f816d2eb68e    ~$0.9738/hr              m8a.4xlarge (spot)
  1. Spot is costed at on-demand. The row is labelled (spot) but uses $0.9738/hr. truffle spot m8a.4xlarge shows us-west-2 spot at about $0.36/hr, so cost and max cost are overstated by about 2.7×. For a tool whose pitch is cost control, that undersells it. Suggest using the instance's actual spot price (DescribeSpotPriceHistory for its AZ, or the price at launch), and labelling estimates accordingly.
  2. 0 s of compute at 47 s elapsed, so the effective rate is $0/hr, "100% lower than continuous on-demand". It's technically a ratio of zeros, but it reads as a bogus saving. Suggest counting compute from the running time, or showing "—" until there's a sample.
  3. Mixed time zones: TTL … (terminates 2026-10-15 17:59 UTC) and Termination deadline: 2026-10-15 10:59 MST describe the same moment in two zones on one screen. Pick one (local, with UTC in parentheses?).

Context: preparing a talk demo that shows spawn status as an instance idles and stops, so the cost and effective-rate lines are what the audience is meant to read.

Activity

  1. scttfrdmn commented on Oct 15, 2026

    @scttfrdmn
    ContributorAuthor

    One more data point for the cost lines: on a continuously running instance, the compute time stopped advancing, so the effective rate keeps falling as if the instance were idle-stopped:

    17:33  Elapsed: 33m 31s  (32m 2s compute · 33m 31s boot)   Effective rate: $0.9307/hr  (4% lower …)
    17:37  Elapsed: 37m 28s  (32m 2s compute · 37m 28s boot)   Effective rate: $0.8325/hr  (15% lower …)
    

    The instance was running throughout (EC2 state, and the spored monitor ticked every minute). Compute should be about 37 m at 17:37. If the compute figure only updates periodically, status should compute it live from the running interval. Otherwise "effective rate" shows savings that don't exist, which is exactly the number a demo audience is meant to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions