Remix.run Logo
raro11 6 hours ago

Tried it. Docker wasn't preinstalled so asked Claude to do it and make sure it's running (supervisord or the likes isn't preinstalled).

It neatly did so and "registered" it as a sprite service. Then I exited my session, waiting for the sprite to go idle, but I don't think it ever does.. Still have it active. Don't know how to idle it.

Can't tell for sure if this means I'm losing credits as there is no billing usage shown anywhere.

Also waiting for the moment where I can launch a sprite from another's checkpoint.

chrismccord 6 hours ago | parent | next [-]

We had a bug where some sprites would fail to properly suspend while entering their suspended state. You're not eating into credits so no worries there. We've been rolling out a fix across the fleet today so you should be seeing proper status soon.

karmajunkie 4 hours ago | parent [-]

This is great news! If we upgraded our sprite already how long should it take to suspend? I noticed the upgrade earlier and installed it but my sprite is still running.

karmajunkie 4 hours ago | parent [-]

ahh finally success—a fresh sprite goes to sleep as it should. unfortunately the original one i created doesn't, so I guess I'm going to have to kill that one off.

panarky 5 hours ago | parent | prev | next [-]

There's no way to stop sprites from the CLI.

Supposedly they auto-stop when inactive.

But I've tried multiple times and they don't stop, and it's not just Docker that prevents them from stopping.

I created a new sprite and installed ffmpeg. Then exited. Next day I run `sprite ls` and it's been running continuously for 23 hours.

No way to tell if I'm being billed for it or not.

And the per-hour pricing is extremely expensive.

So for now it's `sprite destroy -s spritename`.

Maybe I'll check it out again in a few months after the fly team has iterated on this a few times.

tptacek 5 hours ago | parent | next [-]

Sprites are active when:

* They're servicing an incoming HTTP request.

* You're interacting with a console.

They're hair-trigger inactive otherwise. They don't bill CPU unless they're active. The idea is that there isn't really any uncertainty about when it's running; when you stop interacting with it it stops metering.

This is a new shape for a cloud computing thingy and there'll be snags this week with it, but we don't make our money by billing people for stuff they don't want. We've always gone out of our way not to nickel-and-dime casual users and we're trying hard to find new ways to lean into that here.

(Destroying a Sprite you're done with is a perfectly reasonable move; they're disposable.)

panarky 5 hours ago | parent | next [-]

No console activity, no HTTP requests, but it doesn't stop.

Can't find any place in CLI or web UI to see how many minutes are charged for CPU, memory, storage.

    $ sprite ls
    Sprites in organization <redacted>:

    ┌────┬───────┬────────┐
    │NAME│STATUS │CREATED │
    ├────┼───────┼────────┤
    │duh │running│ 23h ago│
    └────┴───────┴────────┘

    Total: 1 sprite(s)
akrauss 3 hours ago | parent | prev | next [-]

> Sprites are active when: * They're servicing an incoming HTTP request. * You're interacting with a console.

They are advocated as Linux machines. How about daemons then, or cron jobs? What semantics can we expect from them?

gcr 2 hours ago | parent | prev | next [-]

What does "when you stop interacting with it" mean? Closing all TCP connections? When CPU usage drops to below some threshold?

karmajunkie 4 hours ago | parent | prev | next [-]

I think the idling feature still needs some work. I created one over the weekend that hasn't idled once, and I've run several tests with sprites that have nothing in them—just `sprite create` and log out, just to see what happens (which unfortunately is nothing, left alone it keeps on running as well.)

I love the idea and most of the execution, I've really enjoyed getting my first sprite configured just the way I want it. It just needs the idling feature to work as advertised before I think I can use it as cost-effectively as it promises.

4 hours ago | parent | prev | next [-]
[deleted]
Freebytes 4 hours ago | parent | prev [-]

There needs to be a way to see how much it is being used then and not simply the life of the Sprite.

blackqueeriroh 2 hours ago | parent [-]

You can. There’s a usage dashboard

mrkurt 4 hours ago | parent | prev | next [-]

For what it's worth, CPU pricing is based on CPU util. A sprite sitting idle CPU costs almost nothing, even when "active".

boundlessdreamz 5 hours ago | parent | prev [-]

Yeah. My sprites never idled inspite of having nothing running in them and had to be destroyed. Ideally there should be two settings

1. A timeout after the last console session is exited 2. Force idle using the CLI

panarky 5 hours ago | parent [-]

Just tried it again. Creation took a very long time, then errored.

    $ sprite version
    sprite version v0.0.1-rc30

    $ sprite create quk

     Error creating sprite: failed to create sprite: Post "https://api.sprites.dev/v1/sprites": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

But despite the error, the sprite was apparently created, and it runs continuously.

    $ sprite ls
    Sprites in organization <redacted>:

    ┌────┬───────┬────────┐
    │NAME│STATUS │CREATED │
    ├────┼───────┼────────┤
    │quk │running│14m ago │
    └────┴───────┴────────┘

    Total: 1 sprite(s)
mrkurt 4 hours ago | parent | prev | next [-]

Ok so, "running" sprite status has had some cache consistency issues. You're not being charged for idle sprites, but they may show as "running" even when you're not using them. The UX has improved, and it reliably shows what you expect. Some of the existing sprites need an environment upgrade, but you'll see those improve over the next few days.

ktaraszk 5 hours ago | parent | prev [-]

Just use container-os as your runtime image: https://hub.docker.com/r/miget/container-os

and you should be good

zrail 5 hours ago | parent [-]

Could you explain more about how this helps and how one might use a different runtime image on Sprites?

redcmd 5 hours ago | parent [-]

I don't think you can choose the runtime image on Sprites, not sure what they are referring to here.