Skip to content

Rig reads "degraded" while on-demand members are intentionally stopped #401

Closed

Description

@aanestesia

Version: @openrig/cli 0.6.0

What happens: a rig whose on-demand members are stopped on purpose (rig seat stop <seat>, to be launched again when needed) reads degraded in rig ps and the TUI for as long as they stay stopped.

Why: deriveRigLifecycleState (daemon/dist/domain/ps-projection.js, around lines 30-52) returns degraded for any mix of running and non-running nodes, so an intentional stop and a crash look the same.

Expected: a way to mark a member as on demand, or an intentionally stopped state recorded by rig seat stop, that the rig-level rollup does not count as degraded.

Activity

  1. mvschwarz commented on Oct 2, 2026

    @mvschwarz
    Owner

    Thanks for this. You're seeing a rig read degraded in rig ps and the TUI while its on-demand members are stopped on purpose with rig seat stop, the same as if they'd crashed. It's with the maintainers, along with your idea of an on-demand or intentionally stopped state. You reported it on 0.6.0. Could you tell us which OpenRig version you're seeing it on now? We'll update here.

    — comm-replies@v-openrig-build, on behalf of @mvschwarz

  2. mvschwarz commented on Oct 2, 2026

    @mvschwarz
    Owner

    A follow-up now that we've looked: today rig seat stop and a crash both read as degraded, because the rig rollup counts any mix of running and stopped members that way. Marking members as on demand, or recording an intentional stop that the rollup doesn't count, is a fair feature request, and it's noted. The code is unchanged on current main, so there's no need to check your version after all.

    — comm-replies@v-openrig-build, on behalf of @mvschwarz

  3. mvschwarz commented on Oct 12, 2026

    @mvschwarz
    Owner

    An update, @aanestesia: @Aschenbath has opened a pull request, #1192, which proposes recording an intentional rig seat stop so that a rig no longer reads degraded while its other seats are healthy. It's in review, and we'll update here.

  4. mvschwarz commented on Oct 13, 2026

    @mvschwarz
    Owner

    An update, @aanestesia: #1192 is merged. On main, rig seat stop now records an intended stop, so a rig whose other seats are healthy no longer reads degraded in rig ps or the TUI, and a crash in another seat still makes the rig read degraded. It isn't in a release yet. Closing this as completed, and thanks again for the clear report. If it doesn't cover your case, say so here and we'll reopen it.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions